/* ==========================================================================
   DRA. DIANA MUÑOZ — NEFRÓLOGA
   Hoja de estilos — mobile-first, diseño premium minimalista.

   Índice:
   1. Tokens de diseño (paleta, tipografía, espaciado, sombras)
   2. Reset / base
   3. Utilidades y layout
   4. Botones
   5. Header / navegación
   6. Hero
   7. Barra de confianza
   8. Secciones genéricas + cards
   9. Quién soy / Formación
   10. Cuándo acudir (checklist)
   11. Proceso (pasos)
   12. Sedes / mapa
   13. FAQ (accordion)
   14. Reseñas
   15. CTA final
   16. Footer
   17. WhatsApp flotante
   18. Animaciones / scroll reveal
   19. Responsive (tablet / desktop)
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. TOKENS DE DISEÑO
   Paleta extraída directamente del brand board de la Dra. Diana Muñoz.
   ------------------------------------------------------------------------- */
:root{
  /* Paleta de marca */
  --emerald:      #0E5554;   /* Deep Emerald  — color primario, headers, CTAs de fondo oscuro */
  --forest:       #234B45;   /* Forest Green  — degradados, hover */
  --sage:         #A5B5A5;   /* Sage          — acentos suaves, líneas */
  --gold:         #C89849;   /* Soft Gold     — CTA principal, fondos, acentos premium (NO usar como texto sobre fondo claro: contraste insuficiente) */
  --gold-light:   #E6CB9C;   /* Light Gold    — fondos suaves, hover de gold, texto dorado sobre fondo oscuro */
  --gold-deep:    #8A6323;   /* Gold profundo — texto dorado legible sobre fondo claro (AA, 5.1:1) */
  --ivory:        #FAF9F6;   /* Warm Ivory    — fondo general */
  --charcoal:     #5F6565;   /* Charcoal Gray — texto secundario */

  /* Texto */
  --ink:          #142A26;   /* casi negro con matiz verde, para títulos */
  --text-body:    #3E4A47;
  --text-on-dark: #F3F1EA;

  /* Tipografía */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent:  'Playfair Display', Georgia, serif;

  /* Espaciado (escala 4px) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Radios y sombras — look premium, bordes suaves, sombras difusas */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(20, 42, 38, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 42, 38, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 42, 38, 0.16);
  --shadow-gold: 0 10px 30px rgba(200, 152, 73, 0.35);

  /* Contenedor */
  --container-w: 1180px;

  /* Transiciones */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .45s;
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 88px; }
body{
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-body);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; height: auto; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2{ font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3{ font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 700; }
p{ margin: 0 0 var(--sp-4); }
.center{ text-align: center; }

/* Foco visible accesible, marca dorada */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--emerald); color: #fff; padding: 12px 20px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* -------------------------------------------------------------------------
   3. UTILIDADES Y LAYOUT
   ------------------------------------------------------------------------- */
.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.section{ padding: var(--sp-8) 0; }
.section-alt{ background: linear-gradient(180deg, #FFFFFF, var(--ivory)); }
.section-dark{
  background: linear-gradient(160deg, var(--emerald), var(--forest));
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3{ color: #fff; }
.section-dark .checklist li{ color: var(--text-on-dark); }

.eyebrow{
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1rem;
  letter-spacing: .02em;
  margin-bottom: var(--sp-2);
}
/* Sobre fondos oscuros (verde), el dorado claro sí tiene buen contraste */
.section-dark .eyebrow, .formacion .eyebrow, .reviews-section .eyebrow{ color: var(--gold-light); }

.section-lead{
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  color: var(--charcoal);
  font-size: 1.05rem;
}
.section-dark .section-lead{ color: #DCE7E3; }

.accent-phrase{
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.15rem;
  margin-bottom: var(--sp-5);
}

/* -------------------------------------------------------------------------
   4. BOTONES
   Microinteracción: elevación + sombra suave al hover/tap, sin rebote brusco.
   ------------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn .ico{ width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn-lg{ padding: 18px 34px; font-size: 1.02rem; }
.btn-sm{ padding: 10px 18px; font-size: .85rem; }

.btn-primary{
  background: linear-gradient(135deg, var(--gold), #B8853A);
  color: #1B2E29;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 36px rgba(200,152,73,.45); }
.btn-primary:active{ transform: translateY(-1px); }

.btn-ghost{
  background: transparent;
  color: var(--emerald);
  border-color: rgba(14,85,84,.28);
}
.btn-ghost:hover{ background: rgba(14,85,84,.06); border-color: var(--emerald); }

.btn-outline{
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}
.btn-outline:hover{ background: var(--emerald); color: #fff; }

.btn-outline-light{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-outline-light:hover{ background: #fff; color: var(--emerald); }

/* -------------------------------------------------------------------------
   5. HEADER / NAVEGACIÓN
   Sticky, con leve sombra al hacer scroll (gestionado por JS: clase .is-scrolled)
   ------------------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,246,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,42,38,.06);
  transition: box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-scrolled{ box-shadow: var(--shadow-sm); }
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 14px var(--sp-5);
}
.brand{ display:flex; align-items:center; }
.brand-logo{ height: 42px; width: auto; }

.main-nav{ display: none; }
.main-nav ul{ display: flex; gap: var(--sp-6); }
.main-nav a{
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after{
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--dur) var(--ease);
}
.main-nav a:hover::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: var(--sp-3); }
.lang-toggle{
  background: transparent; border: 1.5px solid rgba(20,42,38,.2);
  color: var(--ink); border-radius: 999px; padding: 8px 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  transition: border-color var(--dur), color var(--dur);
}
.lang-toggle:hover{ border-color: var(--emerald); }
.header-cta{ display: none; }

.nav-toggle{
  background: none; border: none; padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav-toggle span{
  width: 24px; height: 2px; background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil desplegable */
.main-nav.is-open{
  display: block;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: var(--sp-5);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.main-nav.is-open ul{ flex-direction: column; gap: var(--sp-4); }

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero{ padding: var(--sp-6) 0 var(--sp-8); background: var(--ivory); }

/* Texto real oculto visualmente pero disponible para SEO y lectores de
   pantalla — la imagen del banner ya lleva el mensaje visual. */
.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Banner del hero: la imagen es la pieza visual completa (foto + copy +
   botón ya diseñados). Se muestra a sangre, sin card ni sombra, tal como
   el mockup de marca — con un enlace real e invisible sobre el botón
   dibujado en la imagen para que sí sea funcional y trackeable. */
.hero-banner{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero-banner img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.hero-banner-cta{
  position: absolute;
  left: 63%; top: 50%;
  width: 27%; height: 12%;
  border-radius: 999px;
}
.hero-banner-cta:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.hero-below{
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  text-align: center;
}
.hero-trust-center{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-3) var(--sp-6);
}
.hero-trust li{
  font-size: .85rem; color: var(--charcoal); font-weight: 600;
  padding-left: 24px; position: relative;
}
.hero-trust li::before{
  content: '✓';
  position: absolute; left: 0; top: -1px;
  color: var(--gold-deep); font-weight: 800;
}
.hero-secondary-link{
  font-size: .9rem; font-weight: 700; color: var(--emerald);
  border-bottom: 1.5px solid rgba(14,85,84,.3);
  padding-bottom: 2px;
  transition: border-color var(--dur), color var(--dur);
}
.hero-secondary-link:hover{ border-color: var(--emerald); color: var(--gold-deep); }

/* -------------------------------------------------------------------------
   7. BARRA DE CONFIANZA
   ------------------------------------------------------------------------- */
.trust-bar{ background: #fff; border-top: 1px solid rgba(20,42,38,.06); border-bottom: 1px solid rgba(20,42,38,.06); }
.trust-bar-inner{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-5);
}
.trust-item{ display: flex; flex-direction: column; gap: 4px; }
.trust-item strong{ font-size: .82rem; color: var(--ink); font-weight: 700; }
.trust-item span{ font-size: .76rem; color: var(--charcoal); }

/* -------------------------------------------------------------------------
   8. CARDS GENÉRICAS
   ------------------------------------------------------------------------- */
.cards-grid{ display: grid; grid-template-columns: 1fr; gap: var(--sp-5); margin-top: var(--sp-7); }

.card{
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 1px solid rgba(20,42,38,.05);
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-ico{
  width: 52px; height: 52px;
  color: var(--gold-deep);
  margin-bottom: var(--sp-4);
}
.card-ico svg{ width: 100%; height: 100%; }
.card h3{ margin-bottom: var(--sp-2); }
.card p{ color: var(--charcoal); font-size: .92rem; margin-bottom: 0; }

.service-card{
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--emerald);
}
.service-card h3{ margin-bottom: var(--sp-2); font-size: 1.05rem; }
.service-card p{ color: var(--charcoal); font-size: .88rem; margin-bottom: var(--sp-3); }
.service-cta{
  display: inline-block;
  font-size: .82rem; font-weight: 700; color: var(--gold-deep);
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur), color var(--dur);
}
.service-cta:hover{ border-color: var(--gold-deep); color: var(--emerald); }

/* -------------------------------------------------------------------------
   8b. NOTAS DE PROCESO — qué traer + política de confirmación
   Objetivo: subir el compromiso de quien agenda (sube probabilidad de
   asistencia) y filtrar mensajes de quien todavía no tiene nada listo,
   sin cerrarles la puerta si aún no tienen estudios.
   ------------------------------------------------------------------------- */
.proceso-notes{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5);
  margin-top: var(--sp-7);
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.proceso-note{
  background: #fff; border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--emerald);
}
.proceso-note h3{ font-size: .95rem; margin-bottom: var(--sp-3); }
.proceso-note ul{ display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-3); }
.proceso-note li{
  font-size: .88rem; color: var(--charcoal); font-weight: 500;
  padding-left: 22px; position: relative;
}
.proceso-note li::before{
  content: '•'; position: absolute; left: 4px; top: 0;
  color: var(--gold-deep); font-weight: 800;
}
.proceso-note p{ font-size: .86rem; color: var(--charcoal); margin-bottom: 0; }
.proceso-note p:last-child{ margin-bottom: 0; }
.proceso-note strong{ color: var(--ink); }

/* -------------------------------------------------------------------------
   9. QUIÉN SOY / FORMACIÓN
   ------------------------------------------------------------------------- */
.about-grid{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: center;
}
.about-media img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5/4; object-fit: cover;
}
.about-copy p{ color: var(--text-body); }

.formacion{ background: linear-gradient(160deg, var(--emerald), var(--forest)); color: var(--text-on-dark); padding: var(--sp-8) 0; }
.formacion-grid{ display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: center; }
.formacion-img{
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  aspect-ratio: 3/4; object-fit: cover;
  border: 4px solid rgba(255,255,255,.12);
  max-width: 340px;
  margin: 0 auto;
}
.formacion-copy h2{ color: #fff; }
.formacion-copy p{ color: #DCE7E3; }
.formacion-badges{ display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.formacion-badges li{
  font-size: .86rem; font-weight: 600; color: #fff;
  padding: 10px 16px;
  background: rgba(255,255,255,.08);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}

/* -------------------------------------------------------------------------
   9b. DIABETES E HIPERTENSIÓN — sección dedicada
   ------------------------------------------------------------------------- */
.section-highlight{ background: linear-gradient(180deg, var(--ivory), #F2EBDA); }
.dh-grid{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: start;
}
.dh-badge{
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: var(--radius-md);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--emerald);
  margin-bottom: var(--sp-6);
}
.dh-badge svg{ width: 28px; height: 28px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
.dh-badge p{ margin: 0; font-size: .9rem; color: var(--charcoal); line-height: 1.5; }
.dh-badge strong{ color: var(--ink); }
.dh-checklist-card{
  background: #fff; border-radius: var(--radius-md);
  padding: var(--sp-6); box-shadow: var(--shadow-md);
}
.dh-checklist-card h3{ margin-bottom: var(--sp-4); font-size: 1.05rem; }

/* -------------------------------------------------------------------------
   10. CUÁNDO ACUDIR — checklist
   ------------------------------------------------------------------------- */
.checklist{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
  max-width: 760px; margin: var(--sp-7) auto;
}
.checklist li{
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .98rem; font-weight: 500;
  background: rgba(255,255,255,.06);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
}
.checklist li::before{
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; margin-top: 2px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Variante clara del checklist (usada dentro de la tarjeta de diabetes/hipertensión) */
.checklist-light{ margin: 0; max-width: none; }
.checklist-light li{
  background: var(--ivory);
  color: var(--text-body);
  font-size: .92rem;
}
.checklist-light li::before{ background: var(--gold-deep); }

/* -------------------------------------------------------------------------
   11. PROCESO
   ------------------------------------------------------------------------- */
.steps{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-6);
  margin-top: var(--sp-7);
  counter-reset: step;
}
.step{ position: relative; padding-left: 64px; }
.step-num{
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), #B8853A);
  color: #1B2E29; font-weight: 800; font-size: 1.1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-gold);
}
.step h3{ margin-bottom: var(--sp-2); }
.step p{ color: var(--charcoal); margin-bottom: 0; font-size: .92rem; }

/* -------------------------------------------------------------------------
   12. SEDES / MAPA
   ------------------------------------------------------------------------- */
.sedes-grid{ display: grid; grid-template-columns: 1fr; gap: var(--sp-6); margin-top: var(--sp-7); }
.sede-card{
  background: #fff; border-radius: var(--radius-md);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
}
.sede-card h3{ margin-bottom: var(--sp-2); }
.sede-note{ color: var(--gold-deep); font-weight: 700; font-size: .82rem; margin-bottom: var(--sp-4); }
.map-embed{
  position: relative; width: 100%; padding-top: 62%;
  border-radius: var(--radius-sm); overflow: hidden; margin-bottom: var(--sp-4);
  background: var(--sage);
}
.map-embed iframe{
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.sede-card-alt{
  background: linear-gradient(160deg, var(--emerald), var(--forest));
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.sede-card-alt h3{ color: #fff; }
.sede-card-alt p{ color: #DCE7E3; }

/* -------------------------------------------------------------------------
   13. FAQ — ACCORDION
   ------------------------------------------------------------------------- */
.accordion{ max-width: 760px; margin: var(--sp-7) auto 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.accordion-item{
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.accordion-trigger{
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  background: none; border: none; text-align: left;
  padding: var(--sp-5); font-weight: 700; font-size: .98rem; color: var(--ink);
}
.accordion-icon{
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-light); color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  transition: transform var(--dur) var(--ease);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon{ transform: rotate(45deg); }
.accordion-panel{
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.accordion-panel p{ padding: 0 var(--sp-5) var(--sp-5); color: var(--charcoal); font-size: .92rem; margin: 0; }

/* -------------------------------------------------------------------------
   14. RESEÑAS
   ------------------------------------------------------------------------- */
.reviews-section{ text-align: center; }
.review-badge{ max-width: 520px; margin: var(--sp-6) auto 0; }
.stars-row{ display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: var(--sp-4); }
.stars-row svg{ width: 26px; height: 26px; color: var(--gold-light); }
.review-badge p{ color: #DCE7E3; margin-bottom: var(--sp-5); }

/* -------------------------------------------------------------------------
   15. CTA FINAL
   ------------------------------------------------------------------------- */
.cta-final{
  background: radial-gradient(circle at 30% 20%, var(--gold-light) 0%, var(--ivory) 55%);
  padding: var(--sp-9) 0;
}
.cta-final h2{ max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-final p{ max-width: 520px; margin: 0 auto var(--sp-6); color: var(--charcoal); font-size: 1.05rem; }
.cta-final-alt{
  margin: var(--sp-4) 0 0; font-size: .85rem; color: var(--charcoal);
}
.cta-final-alt a{
  font-weight: 700; color: var(--emerald);
  border-bottom: 1.5px solid rgba(14,85,84,.3);
  transition: border-color var(--dur), color var(--dur);
}
.cta-final-alt a:hover{ color: var(--gold-deep); border-color: var(--gold-deep); }

/* -------------------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------------------- */
.site-footer{ background: var(--ink); color: #C7D2CE; padding: var(--sp-8) 0 0; }
.footer-grid{
  display: grid; grid-template-columns: 1fr; gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.footer-brand p{ font-size: .86rem; color: #9DAEA9; margin: var(--sp-3) 0; }
.footer-social{ display: flex; gap: var(--sp-3); }
.footer-social a{
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), border-color var(--dur);
}
.footer-social a svg{ width: 16px; height: 16px; fill: #C7D2CE; transition: fill var(--dur); }
.footer-social a:hover{ background: var(--gold); border-color: var(--gold); }
.footer-social a:hover svg{ fill: var(--ink); }
.footer-col h4{ color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-4); }
.footer-col p{ font-size: .84rem; color: #9DAEA9; margin-bottom: var(--sp-3); }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--sp-5);
  text-align: center;
  font-size: .78rem;
  color: #77857F;
}
.footer-bottom p{ margin: 0 0 4px; }
.footer-bottom p:last-child{ margin-bottom: 0; }
.footer-cofepris-bottom{ font-size: .74rem; color: #626F69; }

/* -------------------------------------------------------------------------
   17. WHATSAPP FLOTANTE
   Microinteracción: pulso suave para llamar la atención sin ser invasivo.
   ------------------------------------------------------------------------- */
.whatsapp-float{
  position: fixed;
  bottom: 20px; right: 20px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
  z-index: 90;
  transition: transform var(--dur) var(--ease);
}
.whatsapp-float svg{ width: 30px; height: 30px; fill: #fff; }
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float::before{
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366;
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse{
  0%{ transform: scale(1); opacity: .55; }
  100%{ transform: scale(1.9); opacity: 0; }
}

/* -------------------------------------------------------------------------
   18. ANIMACIONES / SCROLL REVEAL
   ------------------------------------------------------------------------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].in-view{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior: auto; }
  [data-reveal]{ opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   19. RESPONSIVE — TABLET (>=700px) Y DESKTOP (>=1024px)
   ------------------------------------------------------------------------- */
@media (min-width: 700px){
  .cards-grid-4{ grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .proceso-notes{ grid-template-columns: repeat(2, 1fr); }
  .sedes-grid{ grid-template-columns: repeat(2, 1fr); }
  .trust-bar-inner{ grid-template-columns: repeat(4, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px){
  .main-nav{ display: block; }
  .header-cta{ display: inline-flex; }
  .nav-toggle{ display: none; }

  .hero-inner{ grid-template-columns: 1.05fr .95fr; }
  .about-grid{ grid-template-columns: .9fr 1.1fr; }
  .formacion-grid{ grid-template-columns: .55fr 1fr; }
  .dh-grid{ grid-template-columns: 1fr .85fr; }

  .cards-grid-4{ grid-template-columns: repeat(4, 1fr); }
  .cards-grid-3{ grid-template-columns: repeat(3, 1fr); }
  .sedes-grid{ grid-template-columns: repeat(3, 1fr); }

  .steps{ grid-template-columns: repeat(4, 1fr); }
  .step{ padding-left: 0; padding-top: 64px; }
  .step-num{ left: 0; top: 0; }

  .footer-grid{ grid-template-columns: 1.2fr .8fr .8fr .8fr; }

  .section{ padding: var(--sp-9) 0; }
}

@media (min-width: 1280px){
  :root{ --container-w: 1240px; }
}
