/* ==========================================================================
   Dra. Karla Sánchez — Sistema de diseño "Constelación editorial"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=Petit+Formal+Script&display=swap');

:root {
  /* Tipografía */
  --font-heading: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Petit Formal Script', cursive;

  /* Paleta */
  --color-cream: #FBF6EC;
  --color-cream-soft: #F2EADA;
  --color-cream-line: #E6DCC7;
  --color-navy: #1E2C63;
  --color-navy-soft: #2B3B7A;
  --color-midnight: #101733;
  --color-coral: #C1481F;
  --color-coral-dark: #9E3A18;
  --color-gold: #D8A648;
  --color-gold-soft: #E9CD91;
  --color-stone: #8C8577;
  --color-stone-soft: #CFC8B8;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-cream-text-on-dark: #E7E2D6;

  /* Radios (nunca pill) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;

  /* Sombras funcionales únicamente */
  --shadow-card: 0 18px 40px -18px rgba(16, 23, 51, 0.35);
  --shadow-btn-coral: 0 10px 24px -8px rgba(193, 72, 31, 0.5);
  --shadow-btn-whatsapp: 0 10px 24px -8px rgba(29, 168, 81, 0.5);
  --shadow-float: 0 8px 24px rgba(16, 23, 51, 0.3);

  --container-max: 1180px;

  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5.5rem;
  --space-2xl: 8rem;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-midnight);
  background: var(--color-cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--color-cream); }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 var(--space-sm); }

ul { margin: 0; padding: 0; list-style: none; }

.script-tag {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--color-gold);
  display: inline-block;
}

.on-dark .script-tag { color: var(--color-gold); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-coral);
  margin: 0 0 var(--space-xs);
  display: block;
}

.on-dark .eyebrow { color: var(--color-gold-soft); }

.text-muted { color: var(--color-stone); }
.on-dark .text-muted { color: var(--color-stone-soft); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-coral);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section--dark {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-midnight) 100%);
  color: var(--color-cream-text-on-dark);
  overflow: hidden;
}

.section--light {
  background: var(--color-cream);
  overflow: hidden;
}

/* Cortes diagonales entre secciones oscuras y claras */
.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  padding-bottom: calc(var(--space-xl) + 56px);
}
.diagonal-top {
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-xl) + 56px);
}
.diagonal-both {
  clip-path: polygon(0 56px, 100% 0, 100% calc(100% - 56px), 0 100%);
  padding-top: calc(var(--space-xl) + 56px);
  padding-bottom: calc(var(--space-xl) + 56px);
}

@media (max-width: 640px) {
  .diagonal-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); padding-bottom: calc(var(--space-lg) + 32px); }
  .diagonal-top { clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--space-lg) + 32px); }
  .diagonal-both { clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%); padding-top: calc(var(--space-lg) + 32px); padding-bottom: calc(var(--space-lg) + 32px); }
}

/* Hero compacto en móvil: que el above-the-fold quepa sin scroll (foto incluida) */
@media (max-width: 640px) {
  .hero { padding-top: 1rem; padding-bottom: 1.5rem; }
  .hero .split { display: flex; flex-direction: column; gap: 0.4rem; }
  .hero .split > *:nth-child(1) { order: 2; }
  .hero .split > *:nth-child(2) { order: 1; }

  .hero-photo-wrap { max-width: 108px; margin: 0 auto; }
  .hero .blob-frame { padding: 4% 8%; }
  .hero .blob-photo { aspect-ratio: 1 / 1; }

  .hero-badge { margin-bottom: 0.15rem; font-size: 1rem; text-align: center; display: block; }
  .hero .eyebrow { margin-bottom: 0.2rem; font-size: 0.62rem; text-align: center; }
  .hero h1 { font-size: 1.32rem; margin-bottom: 0.3rem; line-height: 1.18; text-align: center; }
  .hero p { margin-bottom: 0.4rem; font-size: 0.82rem !important; text-align: center; }
  .hero-credentials { margin: 0.3rem 0; gap: 0.2rem 0.6rem; font-size: 0.68rem; justify-content: center; }
  .hero .btn-row { gap: 0.4rem; justify-content: center; }
  .hero .btn-row .btn { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
  .hero-reviews { margin: 0.25rem 0; padding-top: 0.25rem; gap: 0.3rem 0.8rem; justify-content: center; }
  .hero-reviews .review-pill { font-size: 0.68rem; }
  .hero-cedulas { margin-top: 0.15rem; font-size: 0.55rem; line-height: 1.25; text-align: center; }
  .hero { padding-bottom: 1rem; }
}

/* Grid asimétrico reutilizable */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; }
  .split--reverse { grid-template-columns: 0.85fr 1.15fr; }
  .split--reverse > *:first-child { order: 2; }
}

.stack { display: flex; flex-direction: column; }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn--coral {
  background: var(--color-coral);
  color: #fff;
  box-shadow: var(--shadow-btn-coral);
}
.btn--coral:hover { background: var(--color-coral-dark); }

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: var(--shadow-btn-whatsapp);
}
.btn--whatsapp:hover { background: var(--color-whatsapp-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn--outline:hover { background: rgba(30,44,99,0.06); }

.on-dark .btn--outline {
  border-color: var(--color-cream-line);
  color: var(--color-cream);
}
.on-dark .btn--outline:hover { background: rgba(255,255,255,0.08); }

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  padding: 0.6rem 0.2rem;
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 4px;
}
.on-dark .btn--ghost { color: var(--color-cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn-small {
  padding: 0.6rem 1.05rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-cream-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand img { height: 48px; width: auto; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-navy);
  line-height: 1.2;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.main-nav ul {
  display: flex;
  gap: 1.6rem;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a[aria-current="page"] { color: var(--color-coral); }
.main-nav a:not([aria-current="page"]):hover { color: var(--color-coral); }

.nav-cta { display: flex; gap: 0.6rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--color-navy);
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .main-nav ul { display: none; }
  .nav-cta .btn span.long { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav.is-open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-cream);
    padding: 1.25rem 1.5rem 1.75rem;
    border-bottom: 1px solid var(--color-cream-line);
    gap: 1rem;
    box-shadow: var(--shadow-card);
  }
}

@media (min-width: 881px) {
  .menu-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.hero-badge {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--color-gold-soft);
  display: block;
  margin-bottom: var(--space-sm);
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: var(--space-sm) 0;
  font-size: 0.88rem;
  color: var(--color-stone-soft);
}
.hero-credentials li { display: flex; align-items: center; gap: 0.4rem; }
.hero-credentials svg { width: 1.05em; height: 1.05em; color: var(--color-gold); flex-shrink: 0; }

.hero-reviews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin: var(--space-md) 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(231, 226, 214, 0.18);
}

.review-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.review-pill .stars { color: var(--color-gold); letter-spacing: 1px; font-size: 0.95rem; }
.review-pill strong { color: var(--color-cream); }

.hero-cedulas {
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--color-stone-soft);
  letter-spacing: 0.02em;
}

.hero-photo-wrap {
  position: relative;
}

/* ==========================================================================
   Blobs orgánicos para fotografía
   ========================================================================== */

.blob-frame {
  position: relative;
  isolation: isolate;
  padding: 6% 4%;
}

.blob-frame::before {
  content: '';
  position: absolute;
  inset: 4%;
  background: var(--color-navy);
  border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%;
  z-index: 0;
}

.blob-frame.blob-alt::before {
  background: var(--color-gold-soft);
  border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%;
}

.blob-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 46% 54% 56% 44% / 50% 44% 56% 50%;
  box-shadow: var(--shadow-card);
}

.blob-frame.blob-round .blob-photo { border-radius: 50% 45% 55% 48% / 52% 48% 52% 48%; }
.blob-frame.blob-wide .blob-photo { aspect-ratio: 5 / 4; }

.blob-decoration-star {
  position: absolute;
  color: var(--color-gold);
  z-index: 2;
}

/* ==========================================================================
   Motivo de constelación (obligatorio)
   ========================================================================== */

.constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.constellation .star {
  animation: star-twinkle 3.6s ease-in-out infinite;
  transform-origin: center;
}
.constellation .star:nth-of-type(1) { animation-delay: 0s; }
.constellation .star:nth-of-type(2) { animation-delay: 0.7s; }
.constellation .star:nth-of-type(3) { animation-delay: 1.5s; }
.constellation .star:nth-of-type(4) { animation-delay: 2.1s; }
.constellation .star:nth-of-type(5) { animation-delay: 0.4s; }
.constellation .star:nth-of-type(6) { animation-delay: 1.9s; }

@keyframes star-twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.constellation .trail {
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  stroke-dashoffset: 1;
  pathLength: 1;
}

.constellation .trail {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.2s ease-out;
}
.constellation.in-view .trail { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .constellation .star { animation: none; opacity: 0.85; }
  .constellation .trail { transition: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   Doodles decorativos (línea fina)
   ========================================================================== */

.doodle {
  position: absolute;
  color: var(--color-gold);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.doodle.stone { color: var(--color-stone); }
.doodle svg { width: 100%; height: 100%; display: block; }

/* Bajo 900px el layout de dos columnas se apila; los doodles dispersos
   podrían caer encima de fotos y texto, así que se ocultan y solo
   quedan visibles en pantallas donde sí hay espacio en blanco real. */
@media (max-width: 900px) {
  .doodle { display: none; }
}

/* ==========================================================================
   Tarjetas
   ========================================================================== */

.card {
  background: var(--color-cream-soft);
  border: 1px solid var(--color-cream-line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  z-index: 1;
}

.card--elevated {
  box-shadow: var(--shadow-card);
  background: #fff;
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card--link h3 {
  color: var(--color-navy);
}

.card-icon {
  width: 46px;
  height: 46px;
  color: var(--color-coral);
  margin-bottom: var(--space-sm);
}
.card-icon svg { width: 100%; height: 100%; }

/* Grids de servicios: evitar el grid repetitivo de 3 columnas parejas */
.service-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}
@media (min-width: 720px) {
  .service-grid--asym {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}
@media (min-width: 720px) {
  .service-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-grid--three .card:nth-child(2) {
    transform: translateY(-14px);
  }
}

/* ==========================================================================
   Testimonios
   ========================================================================== */

.review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: var(--space-sm) 0 var(--space-md);
}
.review-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(231,226,214,0.2);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
}
.review-badge .stars { color: var(--color-gold); font-size: 1rem; letter-spacing: 1px; }
.review-badge strong { font-family: var(--font-heading); font-size: 1.1rem; }

.testimonial-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}
@media (min-width: 720px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .testimonial-grid .testimonial-card.featured {
    transform: translateY(-18px);
  }
}
.testimonial-card.featured { border-color: var(--color-gold); }

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(231,226,214,0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-gold);
  line-height: 1;
}
.testimonial-card p { color: var(--color-cream-text-on-dark); margin: 0; }
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-stone-soft);
  margin-top: auto;
}
.testimonial-meta .source { display: flex; align-items: center; gap: 0.35rem; }
.testimonial-meta svg { width: 1.1em; height: 1.1em; }

.platform-icon { height: 16px; width: auto; display: inline-block; vertical-align: middle; }
.review-badge .platform-icon, .review-pill .platform-icon { height: 18px; margin-right: 0.15rem; }
.testimonial-date { font-size: 0.76rem; color: var(--color-stone-soft); }
.on-light .testimonial-date { color: var(--color-stone); }

/* Sobre fondo claro (página de testimonios completa) */
.testimonial-card.on-light {
  background: #fff;
  border-color: var(--color-cream-line);
  box-shadow: var(--shadow-card);
}
.testimonial-card.on-light p { color: var(--color-midnight); }
.testimonial-card.on-light .testimonial-meta { color: var(--color-stone); }

/* ==========================================================================
   Cifras / Confianza
   ========================================================================== */

.stat-grid {
  display: grid;
  gap: var(--space-lg) var(--space-md);
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  z-index: 1;
}
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: left;
  position: relative;
}
.stat .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-cream);
  display: block;
}
.stat .stat-label {
  font-size: 0.85rem;
  color: var(--color-stone-soft);
}

/* ==========================================================================
   Tabs (formación / experiencia / cursos)
   ========================================================================== */

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-cream-line);
}
.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-stone);
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn[aria-selected="true"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-coral);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.timeline-item {
  display: flex;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px dashed var(--color-cream-line);
}
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-cream-soft);
  border: 1px solid var(--color-gold-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-coral);
}
.timeline-icon svg { width: 20px; height: 20px; }
.timeline-body h4 { margin-bottom: 0.2rem; }
.timeline-body .place { color: var(--color-stone); font-size: 0.9rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; position: relative; z-index: 1; }
.faq-item {
  border: 1px solid var(--color-cream-line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.faq-question .icon-plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-question .icon-plus::before,
.faq-question .icon-plus::after {
  content: '';
  position: absolute;
  background: var(--color-coral);
  transition: transform 0.2s ease;
}
.faq-question .icon-plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-question .icon-plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item[data-open="true"] .icon-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.3rem;
}
.faq-answer > div { padding-bottom: 1.2rem; color: var(--color-stone); }

/* ==========================================================================
   Ubicación
   ========================================================================== */

.location-grid {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 900px) {
  .location-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-cream-line);
  box-shadow: var(--shadow-card);
  min-height: 320px;
}
.location-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.info-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.info-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-row .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-cream-soft);
  border: 1px solid var(--color-gold-soft);
  color: var(--color-coral);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-row .icon svg { width: 20px; height: 20px; }
.info-row h4 { margin-bottom: 0.2rem; }
.info-row p { margin: 0; color: var(--color-stone); }

/* ==========================================================================
   Aseguradoras / pagos
   ========================================================================== */

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; position: relative; z-index: 1; align-items: center; }
.chip {
  border: 1px solid var(--color-cream-line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}
.payment-icon {
  height: 26px;
  width: auto;
  background: #fff;
  border: 1px solid var(--color-cream-line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
}

/* Ver más opiniones */
.is-hidden { display: none !important; }
.load-more-wrap { display: flex; justify-content: center; margin-top: var(--space-lg); }

/* ==========================================================================
   CTA final / banner
   ========================================================================== */

.cta-banner {
  text-align: left;
  position: relative;
  z-index: 1;
}
.cta-banner .btn-row { margin-top: var(--space-md); }
.cta-phone-note {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-stone-soft);
}

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform 0.18s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-midnight);
  color: var(--color-stone-soft);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.footer-brand img {
  height: 56px;
  margin-bottom: var(--space-sm);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem;
  box-shadow: var(--shadow-card);
}
.footer-brand p { max-width: 320px; font-size: 0.92rem; }

.footer-col h4 {
  color: var(--color-cream);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-gold-soft); }

.footer-social { display: flex; gap: 0.8rem; margin-top: var(--space-sm); }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(231,226,214,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social img.platform-icon { height: 26px; width: 26px; object-fit: contain; }
.footer-social a:hover { background: rgba(231,226,214,0.1); }

.footer-legal {
  border-top: 1px solid rgba(231,226,214,0.15);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--color-stone-soft);
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}
.footer-legal p { margin: 0; max-width: 720px; }

/* ==========================================================================
   Placeholder de foto/dato pendiente
   ========================================================================== */

.pending-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-stone-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--color-stone);
  background: var(--color-cream-soft);
  text-align: center;
  padding: var(--space-md);
}
.pending-photo svg { width: 42px; height: 42px; }

.pending-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(216,166,72,0.16);
  color: var(--color-coral-dark);
  border: 1px solid var(--color-gold-soft);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-content { max-width: 620px; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.relative { position: relative; z-index: 1; }

.page-hero {
  padding: var(--space-lg) 0 var(--space-xl);
}
.page-hero .eyebrow { color: var(--color-gold-soft); }

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--color-stone-soft);
  margin-bottom: var(--space-sm);
}
.breadcrumbs a:hover { color: var(--color-gold-soft); }
.breadcrumbs span { margin: 0 0.4rem; }
