/*
Theme Name: Valens MD
Theme URI: https://valensmd.com
Author: Valens MD
Description: Modern, clean theme for Valens MD — Personalized Metabolic Health, Longevity & Wellness Medicine
Version: 1.8.0
License: GNU General Public License v2 or later
Text Domain: valensmd
Tags: health, wellness, medical, clean, modern, responsive
*/

/* ============================================================
   DESIGN TOKENS — Paleta extraída del logo Valens MD
   Navy: #1B2D5E  |  Green: #3DB449
   ============================================================ */
:root {
  /* ── Brand Navy (VALENS) ── */
  --navy:           #1B2D5E;
  --navy-mid:       #2D4A8C;
  --navy-light:     #4A6DB5;
  --navy-soft:      #E8ECF6;
  --navy-pale:      #F3F5FB;

  /* ── Brand Green (MD / hoja) ── */
  --green:          #3DB449;
  --green-dark:     #2A8A35;
  --green-light:    #5DC86A;
  --green-soft:     #E8F7EA;
  --green-pale:     #F3FBF4;

  /* ── Alias semánticos ── */
  --color-primary:        var(--green);
  --color-primary-dark:   var(--green-dark);
  --color-primary-light:  var(--green-light);
  --color-primary-soft:   var(--green-soft);
  --color-primary-pale:   var(--green-pale);

  --color-secondary:      var(--navy);
  --color-secondary-mid:  var(--navy-mid);
  --color-secondary-soft: var(--navy-soft);
  --color-secondary-pale: var(--navy-pale);

  /* ── Neutros ── */
  --color-white:      #FFFFFF;
  --color-off-white:  #FAFBFE;
  --color-bg:         #F5F7FC;
  --color-surface:    #FFFFFF;
  --color-border:     #DDE3F0;
  --color-border-light: #EEF1F9;

  /* ── Texto ── */
  --color-text:         #1B2D5E;   /* navy como heading */
  --color-text-body:    #3D4F6E;   /* navy suave para cuerpo */
  --color-text-muted:   #7A89A8;   /* gris azulado para secondary */

  /* ── Overlays ── */
  --overlay-navy-heavy: rgba(27, 45, 94, 0.78);
  --overlay-navy-mid:   rgba(27, 45, 94, 0.55);
  --overlay-navy-light: rgba(27, 45, 94, 0.22);
  --overlay-green-mid:  rgba(42, 138, 53, 0.60);
  --overlay-white-soft: rgba(255, 255, 255, 0.82);

  /* ── Sombras ── */
  --shadow-xs: 0 1px 4px rgba(27,45,94,.06);
  --shadow-sm: 0 2px 8px rgba(27,45,94,.08), 0 1px 3px rgba(27,45,94,.04);
  --shadow-md: 0 6px 20px rgba(27,45,94,.10), 0 2px 6px rgba(27,45,94,.05);
  --shadow-lg: 0 14px 44px rgba(27,45,94,.12), 0 4px 12px rgba(27,45,94,.06);
  --shadow-xl: 0 24px 64px rgba(27,45,94,.15);
  --shadow-green: 0 8px 28px rgba(61,180,73,.30);

  /* ── Tipografía ── */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* ── Formas ── */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* ── Motion ── */
  --ease-out:   cubic-bezier(.4,0,.2,1);
  --transition: .3s var(--ease-out);

  /* ── Layout ── */
  --max-width:    1200px;
  --section-py:   96px;
  --container-px: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
p { line-height: 1.75; }

/* ============================================================
   TIPOGRAFÍA FLUIDA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-text);
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
  width: 100%;
}

.section { padding-block: var(--section-py); }
.section--light  { background: var(--color-bg); }
.section--pale   { background: var(--color-secondary-pale); }
.section--green  { background: var(--color-primary-pale); }
.section--dark   { background: var(--navy); color: var(--color-white); }

/* ============================================================
   ETIQUETAS & ENCABEZADOS DE SECCIÓN
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-label--light {
  color: var(--green-light);
  background: rgba(93,200,106,.15);
}
.section-label--navy {
  color: var(--navy-mid);
  background: var(--navy-soft);
}

.section-title {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  color: var(--color-text);
  margin-bottom: 16px;
}
.section-title--light { color: var(--color-white); }

.section-subtitle {
  font-size: clamp(.9375rem, 1.8vw, 1.0625rem);
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.8;
}

.section-header { margin-bottom: clamp(40px, 6vw, 64px); }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--green);
  color: var(--color-white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--color-white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--color-white);
}

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-green:hover {
  background: var(--green);
  color: var(--color-white);
  box-shadow: var(--shadow-green);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--color-white);
}

.btn-lg { padding: 16px 38px; font-size: .9375rem; }
.btn-sm { padding: 9px 20px; font-size: .75rem; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Logo contenedor ── */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  max-height: 64px;
  overflow: visible;
}

/* Aplica a CUALQUIER link/imagen dentro del logo */
.site-logo a,
.site-logo .custom-logo-link,
.site-logo .logo-static-link,
.site-logo .logo-text-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

/* ── REGLA NUCLEAR: toda imagen dentro del logo, máx 64px alto ── */
.site-logo img,
.site-logo .custom-logo,
.site-logo .custom-logo-link img {
  display: block !important;
  height: 64px !important;
  max-height: 64px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  /* Logo es blanco — visible sobre la imagen hero */
  filter: brightness(0) invert(1) !important;
  transition: filter .3s ease, opacity var(--transition);
}

/* Cuando el header es sólido (después de scroll), pasar a navy */
.site-header.scrolled .site-logo img,
.site-header.scrolled .site-logo .custom-logo,
.site-header.scrolled .site-logo .custom-logo-link img {
  filter: brightness(0) saturate(100%) invert(14%) sepia(50%) saturate(700%) hue-rotate(196deg) brightness(90%) !important;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
  transition: color var(--transition);
}

.logo-text .logo-md {
  color: var(--green-light);
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: .5625rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
  margin-top: 2px;
}

.site-header.scrolled .logo-text { color: var(--navy); }
.site-header.scrolled .logo-text .logo-md { color: var(--green); }
.site-header.scrolled .logo-tagline { color: var(--color-text-muted); }

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: .775rem;
  font-weight: 500;
  letter-spacing: .03em;
  /* Hero es claro → links en navy desde el inicio */
  color: var(--color-text-body);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--navy); background: var(--navy-soft); }

.site-header.scrolled .nav-link { color: var(--color-text-body); }
.site-header.scrolled .nav-link:hover { color: var(--navy); background: var(--navy-soft); }

.nav-cta {
  margin-left: 6px;
  background: var(--green) !important;
  color: var(--color-white) !important;
  padding: 9px 20px !important;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
  box-shadow: var(--shadow-green) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  z-index: 1002;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.site-header.scrolled .menu-toggle span { background: var(--navy); }

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Overlay mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27,45,94,.5);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-overlay.open { opacity: 1; }

/* ============================================================
   HERO — fondo claro con imagen de salud visible en transparencia
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Fondo base cuando no hay imagen — gradiente suave blanco/verde/azul */
  background: linear-gradient(155deg,
    #f0f7ff 0%,
    #eaf6ec 30%,
    #f5f8ff 60%,
    #e8f5e9 100%
  );
}

/* Fondo del hero — gradiente izquierda→derecha para legibilidad del texto */
.hero-bg {
  position: absolute;
  inset: 0;
  /* Fallback sin imagen: gradiente suave blanco-verde */
  background:
    linear-gradient(155deg,
      rgba(240,247,255,.92) 0%,
      rgba(234,246,236,.80) 30%,
      rgba(245,248,255,.75) 60%,
      rgba(232,245,233,.82) 100%
    );
  background-size: cover;
  background-position: center center;
  will-change: transform;
}

/* Decoración: borde verde suave en la parte inferior del hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--navy-mid), var(--green));
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 140px 80px;
  max-width: 680px;
}

/* Badge — sobre fondo claro */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(61,180,73,.25);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 22px;
  box-shadow: 0 2px 12px rgba(61,180,73,.15);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.5); }
}

/* Subtítulo */
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(.7rem, 1.3vw, .8125rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

/* Título principal — navy sobre fondo claro */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: 22px;
}

/* Descripción */
.hero-description {
  font-size: clamp(.9375rem, 1.8vw, 1.0625rem);
  color: var(--color-text-body);
  max-width: 520px;
  line-height: 1.82;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
}

/* Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.hero-stat-label {
  font-size: .725rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Separador entre stats */
.hero-stats-sep {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--color-text-muted);
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; z-index: 3;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:1; transform:scaleY(1); }
  50%      { opacity:.2; transform:scaleY(.5); }
}

/* .hero-image-side removed — single full-width background image only */

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-white);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 3px solid var(--green-soft);
  box-shadow: 0 4px 24px rgba(27,45,94,.06);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px;
  border-right: 1px solid var(--color-border-light);
  transition: background var(--transition);
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--green-pale); }

.trust-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.trust-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.trust-text span {
  font-size: .725rem;
  color: var(--color-text-muted);
}

/* ============================================================
   SECCIÓN CON IMAGEN DE FONDO + OVERLAY TRANSPARENTE
   La imagen es el protagonista — overlay mínimo para legibilidad
   ============================================================ */
.image-section {
  position: relative;
  overflow: hidden;
}

.image-section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Parallax en desktop */
  background-attachment: fixed;
  /* Sin ::after aquí — el overlay va directo en el style del elemento
     para que el HTML controle la opacidad exacta por sección */
}

.image-section-content {
  position: relative;
  z-index: 2;
  padding-block: var(--section-py);
}

/* Variante oscura: texto blanco sobre imagen con overlay navy suave */
.image-section--dark .section-title { color: var(--color-white); }
.image-section--dark .section-subtitle { color: rgba(255,255,255,.72); }

/* Glassmorphism card encima de imagen */
.glass-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(27,45,94,.14), 0 2px 8px rgba(27,45,94,.06);
}

/* En móvil, background-attachment:fixed tiene problemas en iOS */
@media (max-width: 899px) {
  .image-section-bg { background-attachment: scroll; }
}

/* ============================================================
   WHY METABOLIC
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.why-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--navy-soft) 0%, var(--green-soft) 100%);
  box-shadow: var(--shadow-xl);
}

.why-image-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
}

.why-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #EBF0FA 0%, #E8F7EA 100%);
}

.why-image-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.why-image-badge-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.why-image-badge-text {
  font-size: .7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.why-lead {
  font-size: clamp(.9375rem, 1.6vw, 1.0625rem);
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 28px;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.why-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.why-point-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  margin-top: 2px;
}

.why-point-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.why-point-text p {
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   APPROACH — fondo claro con imagen de salud como background
   ============================================================ */
.approach-section {
  background: var(--color-white);
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}

/* Franja decorativa superior con color suave */
.approach-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--navy-mid), var(--green-light));
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.approach-item {
  background: var(--color-white);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* línea verde en hover */
.approach-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.approach-item:hover {
  border-color: var(--green-soft);
  background: var(--green-pale);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.approach-item:hover::after { transform: scaleX(1); }

.approach-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-bottom: 14px;
  transition: var(--transition);
}
.approach-item:hover .approach-item-icon {
  background: var(--green);
  color: var(--color-white);
}

.approach-item-title {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.approach-item-desc {
  font-size: .775rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   CONDITIONS
   ============================================================ */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.condition-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.condition-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.condition-card:hover {
  border-color: var(--green-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.condition-card:hover::after { transform: scaleX(1); }

.condition-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-bottom: 18px;
  transition: var(--transition);
}
.condition-card:hover .condition-icon {
  background: var(--green);
  color: var(--color-white);
}

.condition-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.condition-desc {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.72;
}

/* ============================================================
   DIFFERENTIATORS
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.diff-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  gap: 22px;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.diff-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green-soft);
  transform: translateY(-4px);
}

.diff-card-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--green-pale), var(--green-soft));
  border: 1px solid rgba(61,180,73,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.diff-card-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.diff-card-desc {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ============================================================
   JOURNEY
   ============================================================ */
.journey-section {
  background: linear-gradient(170deg, var(--navy-pale) 0%, var(--green-pale) 100%);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}

.journey-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--navy-mid));
  z-index: 0;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.journey-step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  border: 4px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--green), var(--shadow-md);
  transition: var(--transition);
}
.journey-step:hover .journey-step-number {
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--navy), var(--shadow-md);
  transform: scale(1.08);
}

.journey-step-label {
  font-family: var(--font-heading);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.journey-step-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.journey-step-desc {
  font-size: .8125rem;
  color: var(--color-text-muted);
  line-height: 1.72;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.open {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(61,180,73,.12);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  cursor: pointer;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
}
.faq-question-text {
  font-family: var(--font-heading);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-toggle {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  transition: var(--transition);
}
.faq-item.open .faq-toggle {
  background: var(--green);
  color: var(--color-white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s var(--ease-out);
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================================
   NAV LIVE CHAT BUTTON
   ============================================================ */

/* Pulsing green dot animation */
@keyframes livechat-pulse {
  0%, 100% { transform: scale(1);   opacity: 1;    box-shadow: 0 0 0 0 rgba(61,180,73,.55); }
  50%       { transform: scale(1.1); opacity: .9;   box-shadow: 0 0 0 5px rgba(61,180,73,0); }
}

.nav-livechat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--color-white);
  background: var(--navy);
  border: none;
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
}
.nav-livechat-btn:hover {
  background: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(61,180,73,.35);
}
.site-header.scrolled .nav-livechat-btn {
  background: var(--navy);
  color: #fff;
}

/* The pulsing dot */
.livechat-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: livechat-pulse 2s ease-in-out infinite;
}
.nav-livechat-btn:hover .livechat-pulse-dot {
  background: #fff;
}

@media (max-width: 899px) { .nav-livechat-btn { display: none; } }

/* ============================================================
   NAV PHONE (desktop)
   ============================================================ */
.nav-phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(27,45,94,.18);
  white-space: nowrap;
  transition: var(--transition);
}
.nav-phone-link:hover {
  background: var(--navy-soft);
  border-color: var(--navy);
  color: var(--navy);
}
@media (max-width: 899px) { .nav-phone-link { display: none; } }

/* ============================================================
   CONTACT & APPOINTMENT SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(60px, 9vw, 96px);
}

.cta-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(27,45,94,.88) 0%, rgba(42,138,53,.75) 100%),
    url('assets/images/cta-bg.jpg') center / cover no-repeat;
  background-color: var(--navy);
}

/* Two-column contact grid */
.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

/* Left column */
.cta-left { color: #fff; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.cta-subtitle {
  font-size: clamp(.9rem, 1.6vw, 1.0625rem);
  color: rgba(255,255,255,.78);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* Contact info list */
.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: .9375rem;
}
a.cta-contact-item--link {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: var(--transition);
}
a.cta-contact-item--link:hover { color: var(--green-light); }
.cta-contact-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cta-contact-icon svg { opacity: .85; }

/* Doctor credibility badge */
.cta-doctor-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  backdrop-filter: blur(8px);
}
.cta-doctor-img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--green-light);
  flex-shrink: 0;
}
.cta-doctor-badge strong {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.cta-doctor-badge span {
  font-size: .8rem;
  color: rgba(255,255,255,.70);
  line-height: 1.5;
}

/* Right column — white form card */
.cta-right {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-xl, 20px);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 24px 72px rgba(0,0,0,.22);
}
.cta-form-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.cta-form-subtitle {
  font-size: .875rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* Appointment Form */
.appointment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.appointment-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.appointment-form .form-group:last-of-type { margin-bottom: 0; }
.appointment-form label {
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.appointment-form .required { color: var(--green); }
.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,180,73,.12);
}
.appointment-form textarea { resize: vertical; min-height: 80px; }
.appointment-form select { cursor: pointer; }
.form-notice {
  font-size: .875rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  display: none;
}
.form-notice.visible { display: block; }
.form-notice--success {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(61,180,73,.25);
}
.form-notice--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(185,28,28,.2);
}

/* ── Contact tab panels ── */
.vmd-tab-panel { display: none; }
.vmd-tab-panel.is-active { display: block; }

/* Contact option button hover */
.vmd-contact-option:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.35) !important;
  transform: translateY(-2px);
}
.vmd-contact-option.active {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.5) !important;
}

/* Responsive */
@media (max-width: 1023px) {
  .cta-grid { grid-template-columns: 1fr; }
  .vmd-contact-tabs { grid-template-columns: 1fr !important; }
}
@media (max-width: 639px) {
  .appointment-form .form-row { grid-template-columns: 1fr; }
  .vmd-contact-tabs { grid-template-columns: 1fr !important; }
}

/* .cta-actions removed — replaced by .cta-grid two-column layout */

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0D1829; padding-top: 64px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-brand .logo-text { color: var(--color-white); }
.footer-brand .logo-md { color: var(--green); }
.footer-brand .logo-tagline { color: rgba(255,255,255,.35); }

/* Logo imagen en el footer — blanco sobre fondo oscuro */
.footer-logo,
.footer-brand .custom-logo-link img,
.footer-brand .custom-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand-desc {
  font-size: .85rem;
  line-height: 1.78;
  color: rgba(255,255,255,.42);
  margin-top: 18px;
  max-width: 270px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  font-size: .85rem;
  color: rgba(255,255,255,.42);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--green-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.42);
  margin-bottom: 12px;
}
.footer-contact-icon { color: var(--green); flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright { font-size: .775rem; color: rgba(255,255,255,.28); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: .775rem;
  color: rgba(255,255,255,.28);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   BLOG — CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--green-soft);
}

.post-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--navy-soft);
  position: relative;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-category {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--green);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.post-card-body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .725rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.post-card-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-border);
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.post-card:hover .post-card-title { color: var(--green-dark); }

.post-card-excerpt {
  font-size: .8375rem;
  color: var(--color-text-muted);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 18px;
}

.post-card-link {
  font-family: var(--font-heading);
  font-size: .775rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}
.post-card-link:hover { color: var(--green-dark); gap: 10px; }
.post-card-link::after { content: '→'; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero {
  background: linear-gradient(160deg, var(--navy-pale) 0%, var(--green-pale) 100%);
  padding: 140px 0 64px;
}

.single-hero-category {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: .675rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.single-hero-title {
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  color: var(--navy);
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 20px;
}

.single-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .825rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.single-hero-meta strong { color: var(--navy); font-weight: 600; }
.single-hero-meta-sep { color: var(--color-border); }

.single-featured {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-block: 40px;
  box-shadow: var(--shadow-xl);
}

.single-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
  padding-bottom: var(--section-py);
}

.single-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-body);
}

.single-content h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--navy);
  margin: 40px 0 14px;
}
.single-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--navy);
  margin: 28px 0 10px;
}
.single-content p { margin-bottom: 18px; }
.single-content ul, .single-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.single-content ul { list-style: disc; }
.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 8px; }
.single-content a { color: var(--green); border-bottom: 1px solid rgba(61,180,73,.3); transition: border-color var(--transition); }
.single-content a:hover { border-color: var(--green); }
.single-content blockquote {
  border-left: 3px solid var(--green);
  background: var(--green-pale);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy);
}
.single-content img {
  border-radius: var(--radius-md);
  margin-block: 28px;
  box-shadow: var(--shadow-md);
}

/* Sidebar */
.single-sidebar { position: sticky; top: 100px; }

.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}
.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-soft);
}

.sidebar-post-list { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post-item { display: flex; gap: 12px; }
.sidebar-post-thumb {
  flex-shrink: 0;
  width: 64px; height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--navy-soft);
}
.sidebar-post-thumb img { width:100%; height:100%; object-fit:cover; }
.sidebar-post-text {}
.sidebar-post-title {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 3px;
  transition: color var(--transition);
}
.sidebar-post-title:hover { color: var(--green); }
.sidebar-post-date { font-size: .7rem; color: var(--color-text-muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--navy-soft);
  color: var(--navy-mid);
  transition: var(--transition);
}
.tag-cloud a:hover { background: var(--green-soft); color: var(--green-dark); }

/* Paginación */
.posts-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.posts-pagination a, .posts-pagination span {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: .825rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-body);
  transition: var(--transition);
}
.posts-pagination a:hover {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-dark);
}
.posts-pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: var(--color-white);
}

/* ============================================================
   ANIMACIONES DE SCROLL
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .72s var(--ease-out), transform .72s var(--ease-out);
}
.fade-up.in-view { opacity: 1; transform: none; }

.fade-in {
  opacity: 0;
  transition: opacity .72s var(--ease-out);
}
.fade-in.in-view { opacity: 1; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.stagger-children.in-view > *:nth-child(1) { opacity:1; transform:none; transition-delay:.04s; }
.stagger-children.in-view > *:nth-child(2) { opacity:1; transform:none; transition-delay:.12s; }
.stagger-children.in-view > *:nth-child(3) { opacity:1; transform:none; transition-delay:.20s; }
.stagger-children.in-view > *:nth-child(4) { opacity:1; transform:none; transition-delay:.28s; }
.stagger-children.in-view > *:nth-child(5) { opacity:1; transform:none; transition-delay:.36s; }
.stagger-children.in-view > *:nth-child(6) { opacity:1; transform:none; transition-delay:.44s; }
.stagger-children.in-view > *:nth-child(7) { opacity:1; transform:none; transition-delay:.52s; }
.stagger-children.in-view > *:nth-child(8) { opacity:1; transform:none; transition-delay:.60s; }

/* ============================================================
   ██████████  RESPONSIVE  ██████████
   Breakpoints: 480 / 640 / 768 / 1024 / 1200
   ============================================================ */

/* ── XL (≥ 1200px) — full desktop ───────────────────── */
@media (min-width: 1200px) {
  :root { --container-px: 40px; }
}

/* ── LG (≥ 1024px) — wide tablet / small desktop ────── */
@media (min-width: 1024px) and (max-width: 1199px) {
  .approach-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid   { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ── MD→LG (< 1024px) — tablet landscape ─────────────── */
@media (max-width: 1023px) {
  :root { --section-py: 80px; }

  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .single-content-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .single-sidebar { position: static; }
}

/* ── MD (< 900px) — tablet portrait ──────────────────── */
@media (max-width: 899px) {
  :root {
    --section-py: 68px;
    --container-px: 20px;
  }

  /* Nav → hamburger */
  .menu-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%; bottom: 0;
    width: min(300px, 82vw);
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 28px 36px;
    gap: 2px;
    box-shadow: -6px 0 40px rgba(27,45,94,.18);
    transition: right .38s var(--ease-out);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }

  .nav-link {
    color: var(--navy) !important;
    width: 100%;
    font-size: .9375rem;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
  .nav-link:hover { background: var(--navy-soft) !important; color: var(--navy) !important; }

  .nav-cta {
    background: var(--green) !important;
    color: var(--color-white) !important;
    width: 100%;
    margin: 12px 0 0;
    text-align: center;
    border-radius: var(--radius-full) !important;
  }

  /* Trust bar */
  .trust-bar-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid var(--color-border-light); }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--color-border-light); }
  .trust-item:nth-child(even) { border-right: none; }

  /* Why grid */
  .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .why-image-wrapper { aspect-ratio: 16/9; max-height: 380px; }

  /* Conditions */
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }

  /* Differentiators */
  .diff-grid { grid-template-columns: 1fr; }

  /* Journey */
  .journey-steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .journey-steps::before { display: none; }

  /* Blog */
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand-desc { max-width: 100%; }
}

/* ── SM (< 640px) — phablet ───────────────────────────── */
@media (max-width: 639px) {
  :root {
    --section-py: 56px;
    --container-px: 16px;
  }

  /* Hero */
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-content { padding-block: 120px 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-stats { gap: 20px; }
  .hero-badge { font-size: .625rem; }

  /* Trust */
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; }

  /* Conditions & blog */
  .conditions-grid { grid-template-columns: 1fr; }
  .blog-grid       { grid-template-columns: 1fr; }

  /* Journey */
  .journey-steps { grid-template-columns: 1fr; gap: 32px; }

  /* Approach */
  .approach-grid { grid-template-columns: 1fr; }

  /* Diff cards */
  .diff-card { flex-direction: column; gap: 16px; }

  /* CTA grid stacks on mobile */
  .cta-grid { gap: 40px; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal  { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ── XS (< 480px) — small phone ──────────────────────── */
@media (max-width: 479px) {
  :root {
    --section-py: 48px;
    --container-px: 14px;
  }

  .hero-title { font-size: clamp(1.75rem, 9vw, 2.4rem); }
  .hero-stats { flex-direction: column; gap: 14px; }

  .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }

  .btn-lg { padding: 14px 28px; font-size: .875rem; }

  .trust-item { padding: 18px 16px; }

  .condition-card, .diff-card { padding: 20px 18px; }

  .single-hero { padding: 120px 0 48px; }
  .single-hero-title { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* ── Print ────────────────────────────────────────────── */
@media print {
  .site-header, .hero-scroll, .cta-section, .site-footer { display: none; }
  body { color: #000; background: #fff; }
}
