/*
Theme Name: CASA WIBA Link Bio
Theme URI: https://linktr.ee/casawiba
Author: Fabián Bustos
Description: Catálogo de propiedades estilo Airbnb para CASA WIBA. Grilla responsiva de tarjetas con foto, detalles, valoración y botón Ver en Airbnb. Editable desde el Customizer.
Version: 2.0.0
Requires at least: 5.0
Requires PHP: 7.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casawiba-linkbio
*/

:root {
  --ab-red: #FF385C;
  --ab-red-dark: #E00B41;
  --ab-text: #222222;
  --ab-text-soft: #6A6A6A;
  --ab-bg: #FFFFFF;
  --ab-panel: #F7F7F7;
  --ab-border: #DDDDDD;
  --ab-star: #FFB400;
  --ab-radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--ab-bg);
  color: var(--ab-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.cw-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

/* encabezado centrado */
.cw-header { text-align: center; margin-bottom: 36px; }

.cw-avatar {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.cw-name {
  margin-top: 16px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cw-bio {
  margin: 8px auto 0;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ab-text-soft);
}

/* redes sociales */
.cw-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cw-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ab-border);
  color: var(--ab-text);
  background: var(--ab-bg);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cw-social a:hover {
  transform: scale(1.08);
  color: var(--ab-red);
  border-color: var(--ab-red);
}
.cw-social svg { width: 22px; height: 22px; fill: currentColor; }

/* grilla responsiva de tarjetas */
.cw-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.cw-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ab-text);
  background: var(--ab-bg);
  border: 1px solid #EBEBEB;
  border-radius: var(--ab-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cw-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.cw-link-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cw-link-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 6px;
}

.cw-link-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.cw-link-sub {
  font-size: 0.9rem;
  color: var(--ab-text-soft);
}

/* fila precio / valoración */
.cw-link-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 600;
}
.cw-link-rating { color: var(--ab-star); font-weight: 700; white-space: nowrap; }

/* botón */
.cw-link-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--ab-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 16px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.cw-link:hover .cw-link-btn { background: var(--ab-red-dark); }

.cw-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ab-text-soft);
}

/* Accesibilidad */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
a:focus-visible {
  outline: 3px solid var(--ab-text);
  outline-offset: 3px;
  border-radius: var(--ab-radius);
}
.cw-social a:focus-visible { border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 480px) {
  .cw-wrap { padding: 36px 16px 44px; }
  .cw-links { grid-template-columns: 1fr; }
}
