/* ============================================================
   GLOBAL.CSS — Grupo Urológico REIMS
   ============================================================
   Este archivo controla TODO lo que es compartido en el sitio:
   · Tokens de color, fuente y espaciado
   · Reset y estilos base del body
   · Clases de tipografía reutilizables (.titulo-seccion,
     .subtitulo, .descripcion, .etiqueta, .cita, etc.)
   · Estilos del nav (header) y del footer

   Para cambiar algo en TODO el sitio: edita aquí.
   Para cambiar algo solo en una página: déjalo en el <style>
   de esa página.
   ============================================================ */


/* ─── FUENTES ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');


/* ─── TOKENS DE DISEÑO ────────────────────────────────────── */
/* Cambiar aquí afecta colores/fuentes en todo el sitio       */
:root {
  /* Colores */
  --navy:        #133951;
  --navy-deep:   #0D2A3D;
  --blue-mid:    #748FAF;
  --clay:        #BD5C00;
  --clay-hover:  #9E4D00;
  --gold-soft:   #F8E8B8;
  --bg:          #F3F2F0;
  --surface:     #FFFFFF;
  --muted:       #8A9DB5;
  --divider:     rgba(116,143,175,0.22);
  --body-text:   #333333;

  /* Fuentes */
  --font-disp:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Montserrat', sans-serif;
  --font-serif:  'Cormorant Garamond', Georgia, serif;

  /* Sombras */
  --shadow-sm:   0 1px 4px rgba(19,57,81,0.07), 0 1px 2px rgba(19,57,81,0.05);
  --shadow-md:   0 4px 14px rgba(19,57,81,0.10);
  --shadow-lg:   0 12px 36px rgba(19,57,81,0.13);

  /* Animaciones */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);

  /* ── TIPOGRAFÍA — editar aquí cambia tamaños en todo el sitio ──
     clamp(min, preferido, max) = fluido según viewport           */
  --size-titulo:          clamp(2rem, 4vw, 3rem);       /* .titulo-seccion */
  --size-subtitulo:       clamp(1.5rem, 2.5vw, 2rem);   /* .subtitulo      */
  --size-titular:         1.375rem;                      /* .titular        */
  --size-descripcion:     1rem;                          /* .descripcion    */
  --size-descripcion-lg:  1.125rem;                      /* .descripcion-lg */
  --size-etiqueta:        0.6875rem;                     /* .etiqueta       */

  --weight-titulo:        400;
  --weight-subtitulo:     400;
  --weight-descripcion:   500;
  --weight-etiqueta:      700;

  --leading-titulo:       1.15;
  --leading-subtitulo:    1.3;
  --leading-descripcion:  1.75;
}


/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }


/* ─── ESCALA TIPOGRÁFICA ──────────────────────────────────── */
h1 {
  font-family: var(--font-disp); font-style: normal;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 300; line-height: 1.04; letter-spacing: -0.015em;
  color: var(--navy);
}
h2 {
  font-family: var(--font-disp); font-style: normal;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy);
}
h3 {
  font-family: var(--font-disp); font-style: normal;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400; line-height: 1.3;
  color: var(--navy);
}
h4 {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600; line-height: 1.3;
  color: var(--navy);
}
h5 {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
h6 {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
h1 strong, h2 strong, h3 strong { font-weight: 500; }

p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500; line-height: 1.75;
  color: var(--body-text);
}

/* Accent — texto en clay */
.accent { color: var(--clay); }


/* ════════════════════════════════════════════════════════════
   CLASES DE TIPOGRAFÍA REUTILIZABLES
   Usar estas clases en cualquier página del sitio.
   Para cambiar el look de todos los títulos/textos: editar
   las variables --size-* y --weight-* en :root arriba.
   ════════════════════════════════════════════════════════════ */

/* Título de sección — el H2 grande de cada sección */
.titulo-seccion {
  font-family: var(--font-disp);
  font-size: var(--size-titulo);
  font-weight: var(--weight-titulo);
  line-height: var(--leading-titulo);
  color: var(--navy);
  font-style: normal;
}

/* Subtítulo — H3, segundo nivel de jerarquía */
.subtitulo {
  font-family: var(--font-disp);
  font-size: var(--size-subtitulo);
  font-weight: var(--weight-subtitulo);
  line-height: var(--leading-subtitulo);
  color: var(--navy);
  font-style: normal;
}

/* Titular — título de card o ítem de lista */
.titular {
  font-family: var(--font-disp);
  font-size: var(--size-titular);
  font-weight: var(--weight-subtitulo);
  line-height: var(--leading-subtitulo);
  color: var(--navy);
  font-style: normal;
}

/* Descripción — párrafo general de cuerpo */
.descripcion {
  font-family: var(--font-body);
  font-size: var(--size-descripcion);
  font-weight: var(--weight-descripcion);
  line-height: var(--leading-descripcion);
  color: var(--body-text);
}

/* Descripción grande — lead paragraph o intro destacado */
.descripcion-lg {
  font-family: var(--font-body);
  font-size: var(--size-descripcion-lg);
  font-weight: var(--weight-descripcion);
  line-height: var(--leading-descripcion);
  color: var(--body-text);
}

/* Etiqueta — texto pequeño en mayúsculas tipo "eyebrow" */
.etiqueta {
  font-family: var(--font-body);
  font-size: var(--size-etiqueta);
  font-weight: var(--weight-etiqueta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.etiqueta--acento { color: var(--clay); }
.etiqueta--gold   { color: var(--gold-soft); }
.etiqueta--blanca { color: rgba(255,255,255,0.55); }

/* Cita — blockquote con borde */
.cita {
  font-family: var(--font-disp);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.6;
  color: var(--blue-mid);
  padding-left: 1.5rem;
  border-left: 3px solid var(--clay);
}

/* Helpers de color */
.texto-navy   { color: var(--navy); }
.texto-clay   { color: var(--clay); }
.texto-muted  { color: var(--muted); }
.texto-blanco { color: #fff; }


/* ════════════════════════════════════════════════════════════
   NAV (HEADER)
   Para modificar el nav en todo el sitio: editar aquí.
   ════════════════════════════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto;
  padding: 0 40px;
  height: 96px;
}

.nav__logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav__logo img { height: 62px; width: auto; }
.nav__logo-text {
  font-family: var(--font-disp);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); line-height: 1.4;
  display: flex; flex-direction: column;
}
.nav__logo-text span { font-weight: 400; letter-spacing: 0.12em; opacity: 0.6; }

.nav__links {
  display: flex; align-items: stretch; gap: 0;
  margin-left: 16px;
  align-self: stretch;
}
.nav__item { position: relative; display: flex; align-items: center; }

.nav__link {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); opacity: 0.65;
  padding: 8px 9px; border-radius: 6px;
  transition: opacity 0.2s, background 0.2s;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav__link:hover { opacity: 1; background: rgba(19,57,81,0.06); }

.nav__link svg.chevron {
  width: 10px; height: 10px; opacity: 0.5;
  transition: transform 0.2s;
}
.nav__dropdown {
  position: absolute; top: 100%; left: 0;
  background: white; border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--divider);
  padding: 14px 0 10px; min-width: 230px;
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.nav__item:hover .nav__link svg.chevron,
.nav__item.is-open .nav__link svg.chevron { transform: rotate(180deg); }

.nav__item.is-open .nav__dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav__dropdown a {
  display: block; padding: 10px 20px;
  font-size: 12px; font-weight: 500;
  color: var(--navy); opacity: 0.7;
  letter-spacing: 0.04em;
  transition: opacity 0.15s, background 0.15s;
}
.nav__dropdown a:hover { opacity: 1; background: var(--bg); }

.btn-cta-nav {
  background: white; color: var(--clay);
  border: 1.5px solid var(--clay);
  font-family: var(--font-disp);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 6px;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-left: 10px; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.btn-cta-nav:hover {
  background: var(--clay); color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(189,92,0,0.28);
}

.nav__hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 6px; cursor: pointer;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.25s;
}
.nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  box-shadow: var(--shadow-lg);
  padding: 8px 20px 24px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  z-index: 190;
}
.nav__mobile.is-open { display: block; }
.nav__mobile-link {
  display: block;
  padding: 14px 4px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--navy);
  border-bottom: 1px solid var(--divider);
  text-transform: uppercase;
}
.nav__mobile-link:last-of-type { border-bottom: none; }
.nav__mobile-group { border-bottom: 1px solid var(--divider); }
.nav__mobile-group-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--navy); cursor: pointer;
}
.nav__mobile-group-title svg {
  width: 16px; height: 16px; opacity: 0.5;
  transition: transform 0.2s; flex-shrink: 0;
}
.nav__mobile-group.is-open .nav__mobile-group-title svg { transform: rotate(180deg); }
.nav__mobile-sub {
  display: none;
  padding: 0 0 8px 16px;
}
.nav__mobile-group.is-open .nav__mobile-sub { display: block; }
.nav__mobile-sub a {
  display: block;
  padding: 10px 4px;
  font-size: 13px; font-weight: 400;
  color: var(--navy); opacity: 0.7;
  border-bottom: 1px solid var(--divider);
}
.nav__mobile-sub a:last-child { border-bottom: none; }
.nav__mobile-cta { margin-top: 20px; }
.nav__mobile-cta a {
  display: flex; justify-content: center; align-items: center;
  background: var(--clay); color: white;
  padding: 14px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
   Para modificar el footer en todo el sitio: editar aquí.
   ════════════════════════════════════════════════════════════ */

footer,
.site-footer {
  background: var(--navy-deep);
  padding: 64px 64px 40px;
}
.footer__inner {
  max-width: 1100px; margin: 0 auto;
}

/* Afiliaciones */
.footer__asoc {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__asoc-label {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 20px;
}
.footer__asoc-logos {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 28px 40px;
}
.footer__asoc-logos img {
  height: 32px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.4; object-fit: contain;
  transition: opacity 0.2s;
}
.footer__asoc-logos img:hover { opacity: 0.75; }

/* Grid */
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Marca */
.footer__brand-logo {
  height: 48px; width: auto; margin-bottom: 18px;
  filter: brightness(0) invert(1); opacity: 0.85;
}
.footer__brand-desc {
  font-size: 13px; font-weight: 300; line-height: 1.7;
  color: #ffffff; max-width: 260px;
}

/* Columnas */
.footer__col-title {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #ffffff; margin-bottom: 22px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col ul a {
  font-size: 13px; font-weight: 300;
  color: #ffffff; transition: opacity 0.2s;
}
.footer__col ul a:hover { opacity: 0.75; }

/* Contacto */
.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12px; font-weight: 400; line-height: 1.55;
  color: #ffffff; transition: opacity 0.2s;
}
.footer__contact-item:hover { opacity: 0.75; }
.footer__contact-item svg { flex-shrink: 0; margin-top: 3px; }
.footer__contact-wa {
  display: inline-flex; align-items: center;
  background: #25D366; color: white;
  padding: 9px 16px; border-radius: 6px;
  font-weight: 600; gap: 8px;
  transition: background 0.2s, transform 0.2s;
  margin-top: 4px; align-self: flex-start;
}
.footer__contact-wa:hover { background: #20ba5a; transform: translateY(-1px); opacity: 1; }

/* Barra inferior */
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: 11.5px; font-weight: 300; color: #ffffff; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
  font-size: 11.5px; font-weight: 300;
  color: #ffffff; transition: opacity 0.2s;
}
.footer__legal a:hover { opacity: 0.65; }

/* WhatsApp FAB */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-fab svg { width: 28px; height: 28px; }


/* ─── RESPONSIVE NAV + FOOTER ─────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links    { display: none; }
  .nav__hamburger{ display: flex; }
  .btn-cta-nav   { display: none; }
  .nav__inner    { padding: 0 20px; }
  footer, .site-footer { padding: 48px 32px 32px; }
  .footer__top   { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  footer, .site-footer { padding: 48px 24px 32px; }
  .footer__top   { grid-template-columns: 1fr; gap: 32px; }
  .wa-fab        { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ════════════════════════════════════════════════════════════
   INDEX PAGE
   ════════════════════════════════════════════════════════════ */

/* Animaciones */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes floatBadge { from { transform:translateY(0); } to { transform:translateY(-8px); } }
@keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(46,204,113,0.4); } 50% { box-shadow:0 0 0 6px rgba(46,204,113,0); } }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.reveal { opacity:0; animation: fadeUp 0.75s var(--ease-out) forwards; }
.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.18s; }
.reveal-d3 { animation-delay: 0.30s; }
.reveal-d4 { animation-delay: 0.44s; }
.reveal-d5 { animation-delay: 0.60s; }

/* Section header compartido */
.section-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #333333;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.section-label::before {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--clay);
}
.section-label::after {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--clay);
}
.section-serif {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400; color: #333333;
  margin-top: 10px; line-height: 1.6;
}

/* Botones */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--clay); color: white;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 6px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--clay-hover); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(189,92,0,0.3); }
.btn-primary svg { width: 14px; height: 14px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); opacity: 0.55;
  transition: opacity 0.2s, gap 0.25s;
}
.btn-ghost:hover { opacity: 1; gap: 16px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--navy);
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 24px; border: 2px solid var(--navy); border-radius: 6px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: var(--navy); color: white; transform: translateY(-2px); }

.btn-cta-white {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--clay); color: white;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 32px; border-radius: 6px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-cta-white:hover { background: var(--clay-hover); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(189,92,0,0.4); }

.btn-google {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--divider);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; padding: 14px 28px; border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.btn-google:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #4285F4; color: #4285F4; }
.btn-google svg { flex-shrink: 0; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 96px; overflow: hidden;
}
.hero__bg-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  max-width: none; z-index: 0;
  transition: opacity 1.2s ease;
}
.hero__video-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1.2);
  width: 100vw; height: 56.25vw;
  min-height: 110vh; min-width: 180vh;
  pointer-events: none; z-index: 1;
  object-fit: cover; opacity: 0;
  transition: opacity 1s ease;
}
.hero__video-bg.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(13,42,61,0.82) 0%, rgba(13,42,61,0.60) 55%, rgba(13,42,61,0.25) 100%);
}
.hero__left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 80px 72px; max-width: 720px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 32px;
}
.hero__eyebrow::before { content:''; display:block; width:28px; height:2px; background:var(--clay); }
.hero__eyebrow::after  { content:''; display:block; width:28px; height:2px; background:var(--clay); }
.hero__h1 { color: #fff; margin-bottom: 8px; }
.hero__sub {
  font-size: clamp(14px, 1.4vw, 18px); font-weight: 400;
  color: #fff; margin-bottom: 28px; margin-top: 6px; line-height: 1.4;
}
.hero__desc { font-size: 15px; font-weight: 300; line-height: 1.75; color: #fff; max-width: 420px; margin-bottom: 48px; }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.18); }
.stat-num { font-family: var(--font-disp); font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.stat-label { font-size: 11px; font-weight: 500; color: #fff; margin-top: 5px; line-height: 1.45; letter-spacing: 0.04em; text-transform: uppercase; }
.hero__location {
  font-size: 13px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-soft); margin-top: 14px; margin-bottom: 32px;
  display: flex; align-items: center; gap: 10px;
}
.hero__location::before, .hero__location::after { content:''; display:block; width:20px; height:1px; background:rgba(248,232,184,0.5); }
.hero__slogan-band {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: rgba(255,255,255,0.93); backdrop-filter: blur(10px);
  padding: 30px 40px; text-align: center;
}
.hero__slogan { font-family: var(--font-disp); font-size: clamp(21px, 2.2vw, 30px); font-weight: 300; color: var(--navy); letter-spacing: 0.03em; line-height: 1; }
.hero__badge {
  position: absolute; bottom: 48px; left: 72px; z-index: 3;
  background: rgba(255,255,255,0.10); backdrop-filter: blur(12px);
  color: white; padding: 18px 24px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2); box-shadow: var(--shadow-lg);
  animation: floatBadge 4s ease-in-out infinite alternate;
}
.hero__badge-label { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px; }
.hero__badge-value { font-family: var(--font-disp); font-size: 16px; font-weight: 400; color: white; line-height: 1.3; }
.hero__chip {
  position: absolute; top: 44px; right: 48px; z-index: 3;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 100px;
  padding: 10px 18px 10px 12px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
}
.hero__chip-dot { width: 8px; height: 8px; background: #2ECC71; border-radius: 50%; flex-shrink: 0; animation: pulse 2.4s ease infinite; }
.hero__chip-text { font-size: 11px; font-weight: 600; color: white; letter-spacing: 0.04em; }

/* ─── S2 BIFURCACIÓN ────────────────────────────────────────── */
.bifurcacion { padding: 110px 64px; background: var(--bg); }
.bifurcacion__header { text-align: center; margin-bottom: 64px; }
.bifurcacion__header .section-label { justify-content: center; }
.bifurcacion__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.bifurcacion__grid--second { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 1100px; margin: 24px auto 0; }
.bifur-card {
  background: var(--surface); border-radius: 16px; padding: 40px 32px 36px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.bifur-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--clay); transform:scaleX(0); transform-origin:left; transition:transform 0.35s var(--ease-out); }
.bifur-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bifur-card:hover::before { transform: scaleX(1); }
.bifur-card__icon { margin-bottom: 28px; }
.bifur-card__icon img, .bifur-card__icon svg { height: 100px; width: auto; }
.bifur-card__tag { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); margin-bottom: 12px; }
.bifur-card__title { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 14px; }
.bifur-card__desc { font-size: 15px; font-weight: 300; line-height: 1.7; color: #333333; margin-bottom: 32px; }
.bifur-card__link { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); transition: gap 0.2s; }
.bifur-card__link:hover { gap: 14px; }
.bifur-card__link svg { width: 14px; height: 14px; }

/* ─── S3 DIFERENCIADORES ─────────────────────────────────────── */
.diferenciadores { padding: 110px 64px; background: var(--surface); }
.diferenciadores__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.dif-left { position: sticky; top: 110px; }
.dif-left .section-serif { max-width: 360px; }
.dif-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: 16px; overflow: hidden; }
.dif-item { padding: 36px 32px; background: var(--bg); border-bottom: 1px solid var(--divider); transition: background 0.25s; }
.dif-item:last-child { border-bottom: none; }
.dif-item:hover { background: #E4ECF3; }
.dif-item__icon { margin-bottom: 20px; }
.dif-item__icon img { height: 100px; width: auto; }
.dif-item__tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); margin-bottom: 8px; }
.dif-item__title { margin-bottom: 12px; }
.dif-item__body { font-size: 14.5px; font-weight: 300; color: #333333; line-height: 1.72; }

/* ─── ESPECIALISTA (usada en otras páginas también) ──────────── */
.especialista { padding: 110px 64px; background: var(--bg); }
.especialista__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.especialista__photo-wrap { position: relative; }
.especialista__photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; border-radius: 16px; box-shadow: var(--shadow-lg); }
.especialista__photo-wrap::before { content:''; position:absolute; top:-16px; left:-16px; width:calc(100% + 32px); height:calc(100% + 32px); border:2px solid var(--divider); border-radius:20px; z-index:-1; }
.especialista__photo-wrap::after { content:''; position:absolute; bottom:32px; right:-20px; width:80px; height:80px; background:var(--clay); border-radius:12px; z-index:-1; opacity:0.15; }
.especialista__eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #333333; margin-bottom: 10px; }
.especialista__name { margin-bottom: 4px; }
.especialista__title { font-size: 15px; font-weight: 400; color: #333333; margin-bottom: 36px; }
.credentials { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.credential { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--surface); border-radius: 10px; transition: transform 0.25s; }
.credential:hover { transform: translateX(6px); }
.credential__dot { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; object-fit: contain; }
.credential__text { font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--navy); }
.credential__text span { display: block; font-size: 12px; font-weight: 300; color: #333333; margin-top: 2px; }
.especialista__quote { font-size: 15px; font-weight: 400; color: var(--navy); line-height: 1.75; padding-left: 22px; border-left: 3px solid var(--clay); margin-bottom: 36px; }

/* ─── S4 CHECK UP ──────────────────────────────────────────── */
.checkup { padding: 110px 64px; background: #E8F0F6; position: relative; overflow: hidden; }
.checkup::before { content:''; position:absolute; inset:0; background-image:radial-gradient(circle, rgba(19,57,81,0.05) 1px, transparent 1px); background-size:32px 32px; pointer-events:none; }
.checkup__inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; }
.checkup .section-label { justify-content: center; }
.checkup .section-label::before { display: none; }
.checkup .section-label::after { content:''; display:block; width:28px; height:2px; background:var(--clay); }
.checkup__body { font-size: 16px; font-weight: 300; line-height: 1.78; color: #333333; margin-bottom: 18px; }
.checkup__actions { margin-top: 44px; display: flex; justify-content: center; }

/* ─── S5 TESTIMONIOS ───────────────────────────────────────── */
.testimonios { padding: 110px 64px; background: var(--surface); }
.testimonios__inner { max-width: 1100px; margin: 0 auto; }
.testimonios__header { margin-bottom: 48px; }
/*
 * Ajuste de iframe de reviews:
 * --clip-top  = altura del menú/header del sitio WP a recortar
 * --clip-bot  = padding/footer sobrante abajo a recortar
 * Cuando tengas una página blank en WP pon ambos en 0.
 */
.testimonios__iframe-wrap {
  --clip-top: 0px;    /* header WP ya oculto via JS — sin recorte */
  --clip-bot: 0px;    /* ajustar si queda padding sobrante abajo */
  --content-h: 300px; /* altura visible del widget de reviews — ajustar al gusto */

  width: 100%;
  height: var(--content-h);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(19,57,81,0.08);
  background: #fff;
  position: relative;
}
.testimonios__iframe-wrap iframe {
  display: block;
  width: 100%;
  /* El iframe ocupa lo visible + lo recortado arriba y abajo */
  height: calc(var(--content-h) + var(--clip-top) + var(--clip-bot));
  margin-top: calc(-1 * var(--clip-top));
  border: none;
  position: relative;
}
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; gap: 24px; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.testimonio-card { flex: 0 0 calc(50% - 12px); background: var(--bg); border-radius: 20px; padding: 28px; }
.testimonio-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testimonio-card__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonio-card__meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.testimonio-card__name { font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.testimonio-card__date { font-size: 12px; color: var(--navy); opacity: 0.5; }
.testimonio-card__google-icon { flex-shrink: 0; }
.testimonio-card__stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testimonio-card__text { font-size: 14px; font-weight: 400; color: var(--navy); line-height: 1.75; }
.carousel__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; }
.carousel__arrows { display: flex; gap: 10px; }
.carousel__arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--divider); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s; color: var(--navy); }
.carousel__arrow:hover { background: var(--navy); border-color: var(--navy); color: white; transform: scale(1.06); }
.carousel__arrow svg { width: 16px; height: 16px; pointer-events: none; }
.testimonios__note { margin-top: 36px; padding: 16px 22px; background: var(--gold-soft); border-radius: 10px; font-size: 13px; color: var(--navy); opacity: 0.75; text-align: center; }
.testimonios__cta { margin-top: 36px; text-align: center; }

/* ─── S6 BLOG ──────────────────────────────────────────────── */
.blog { padding: 110px 64px; background: var(--bg); }
.blog__inner { max-width: 1100px; margin: 0 auto; }
.blog__header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.blog__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { background: var(--surface); border-radius: 16px; overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card__media { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg); }
.blog-card__body { padding: 28px 26px 26px; }
.blog-card__cat { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); margin-bottom: 10px; }
.blog-card__title { font-size: 16px; margin-bottom: 12px; line-height: 1.35; }
.blog-card__date { font-size: 11.5px; font-weight: 300; color: #333333; }
.blog-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); transition: gap 0.2s; }
.blog-card__link:hover { gap: 12px; }
.blog__note { text-align: center; margin-top: 40px; font-size: 14px; font-weight: 300; color: #333333; }

/* ─── S7 CTA CIERRE ────────────────────────────────────────── */
.cta-cierre { padding: 110px 64px; background: var(--navy); position: relative; overflow: hidden; }
.cta-cierre::before { content:''; position:absolute; top:-100px; right:-100px; width:500px; height:500px; background:radial-gradient(circle, rgba(248,232,184,0.06), transparent 70%); pointer-events:none; }
.cta-cierre__inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; }
.cta-cierre .section-label { justify-content: center; color: var(--gold-soft); }
.cta-cierre .section-label::before { background: var(--clay); }
.cta-cierre__title { color: white; margin-bottom: 18px; }
.cta-cierre__sub { font-size: 16px; font-weight: 300; line-height: 1.7; color: #fff; margin-bottom: 48px; }
.cta-cierre__actions { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-cierre__dato { font-size: 13px; font-weight: 300; color: #fff; margin-top: 28px; letter-spacing: 0.06em; }

/* ─── ASOCIACIONES ─────────────────────────────────────────── */
.asociaciones { padding: 90px 64px; background: var(--navy-deep); position: relative; overflow: hidden; }
.asociaciones::before { content:''; position:absolute; inset:0; background-image:radial-gradient(circle at 20% 50%, rgba(116,143,175,0.08) 0%, transparent 60%), radial-gradient(circle at 80% 50%, rgba(189,92,0,0.06) 0%, transparent 60%); pointer-events:none; }
.asociaciones__inner { max-width: 1100px; margin: 0 auto; text-align: center; position: relative; }
.asociaciones .section-label { justify-content: center; color: var(--gold-soft); }
.asociaciones .section-label::before { background: var(--clay); }
.asociaciones__title { color: #fff; margin-bottom: 12px; }
.asociaciones__sub { font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.65); margin-bottom: 60px; }
.asociaciones__logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 48px 64px; }
.asociaciones__logo-item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.asociaciones__logo-item img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: 0.75; transition: opacity 0.25s; object-fit: contain; }
.asociaciones__logo-item:hover img { opacity: 1; }
.asociaciones__logo-name { font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.dif-item__logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.dif-item__logos img { height: 28px; width: auto; opacity: 0.55; object-fit: contain; transition: opacity 0.2s; }
.dif-item__logos img:hover { opacity: 0.9; }

/* ─── FOOTER ASOCIACIONES ──────────────────────────────────── */
.footer__asoc { padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__asoc-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer__asoc-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 28px 40px; }
.footer__asoc-logos img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.4; object-fit: contain; transition: opacity 0.2s; }
.footer__asoc-logos img:hover { opacity: 0.75; }

/* ─── RESPONSIVE (index) ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__left { padding: 80px 32px 100px; }
  .bifurcacion, .diferenciadores, .especialista,
  .checkup, .testimonios, .blog, .cta-cierre, .asociaciones { padding-left: 32px; padding-right: 32px; }
  .bifurcacion__grid { grid-template-columns: 1fr 1fr; }
  .bifurcacion__grid--second { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .diferenciadores__inner, .especialista__inner { grid-template-columns: 1fr; }
  .dif-left { position: static; }
  .blog__grid { grid-template-columns: 1fr 1fr; }
  .asociaciones__logos { gap: 32px 40px; }
}
@media (max-width: 640px) {
  .hero__stats { gap: 24px; }
  .bifurcacion__grid { grid-template-columns: 1fr; }
  .bifurcacion__grid--second { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }
  .testimonio-card { flex: 0 0 100%; }
  .blog__header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ─── GRID PROCEDIMIENTOS ────────────────────────────────── */
.proc-grid-sec {
  padding: 96px 64px 104px;
  background: var(--bg);
}
.proc-grid-sec__header {
  text-align: center;
  margin-bottom: 52px;
}
.proc-grid-sec__header .section-label { justify-content: center; }

.proc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
}

/* Card — estilo vertical tipo "advantages" */
.proc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--w, 260px);
  min-height: 240px;
  background: #fff;
  border: 1px solid rgba(19,57,81,0.08);
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: 0 2px 10px rgba(19,57,81,0.06);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
  gap: 20px;
}
.proc-card:hover {
  border-color: rgba(189,92,0,0.30);
  box-shadow: 0 8px 28px rgba(189,92,0,0.10);
  transform: translateY(-3px);
}

/* Fila superior: título izquierda + icono derecha */
.proc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.proc-card__name {
  font-family: var(--font-disp);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
  flex: 1;
}

.proc-card__ico {
  width: 70px; height: 70px;
  max-width: 70px; max-height: 70px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: flex-start;
  opacity: 0.88;
}

/* Categorías — parte inferior, solo texto clay con | */
.proc-card__cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.proc-cat {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}
.proc-cat + .proc-cat::before {
  content: '';
  margin: 0;
}
/* Separador | solo en el carrusel */
.proc-marquee .proc-cat + .proc-cat::before {
  content: ' | ';
  color: var(--clay);
  opacity: 0.5;
  margin: 0 3px;
}

@media (max-width: 900px) {
  .proc-grid-sec { padding: 72px 32px 80px; }
  .proc-card { width: calc(50% - 6px) !important; }
}
@media (max-width: 560px) {
  .proc-card { width: 100% !important; }
}

/* ─── CARRUSEL 2 FILAS — PROCEDIMIENTOS ─────────────────── */
.proc-marquee {
  padding: 64px 0 72px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proc-marquee__row {
  overflow: hidden;
  cursor: grab;
}
.proc-marquee__row:active { cursor: grabbing; }

.proc-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  /* Las tarjetas dentro del carrusel tienen ancho fijo */
}

/* Las proc-card dentro del carrusel tienen ancho fijo natural */
.proc-marquee .proc-card {
  width: 320px !important;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* el drag lo maneja el row, los links se activan vía JS */
}
.proc-marquee .proc-card * {
  pointer-events: none;
  -webkit-user-drag: none;
  draggable: false;
}
/* Reactivar pointer-events solo cuando NO se está arrastrando */
.proc-marquee__row:not(.is-dragging) .proc-card {
  pointer-events: auto;
}
