/* ============================================================
   DRA. ROSANA MOREIRA — Sistema de diseño
   Estética: "Medicina maternal editorial"
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Paleta de marca */
  --primary: #9D7D84;
  --primary-dark: #7F646A;
  --primary-darker: #5C484D;
  --primary-light: #C7B1B6;
  --primary-tint: #EADADD;
  --secondary: #D8C7C6;
  --background: #F8F6F5;
  --surface: #FFFFFF;
  --ink: #3E3A39;
  --ink-soft: #5C5554;
  --text: #3E3A39;
  --text-light: #6F6A69;
  --border: #E7E0DE;
  --accent: #B68C8F;

  /* WhatsApp / acción (--whatsapp-dark se usa por defecto para garantizar
     contraste WCAG AA con texto blanco; --whatsapp queda como acento) */
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  /* Tipografía */
  --font-display: "Libre Baskerville", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Escala tipográfica */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: clamp(2rem, 4vw, 3rem);
  --fs-4xl: clamp(2.5rem, 5.5vw, 4.25rem);
  --fs-display: clamp(3rem, 8.5vw, 6rem);

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Otros */
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 6px 24px rgba(95, 70, 75, 0.08);
  --shadow-md: 0 14px 40px rgba(95, 70, 75, 0.12);
  --shadow-strong: 0 24px 60px rgba(95, 70, 75, 0.18);
  --container: 1240px;
  --container-narrow: 880px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-move: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.035em; color: var(--ink); }
p { margin: 0 0 1em; }

/* Tipografía headings */
h1 { font-size: var(--fs-display); font-weight: 400; text-wrap: balance; }
h2 { font-size: var(--fs-4xl); font-weight: 400; text-wrap: balance; }
h3 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.015em; }

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-9); position: relative; }
.section-sm { padding-block: var(--space-7); }
.section-lg { padding-block: var(--space-10); }

/* Grano sutil (textura de papel médico) */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.18  0 0 0 0 0.18  0 0 0 0.95 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(248, 246, 245, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 224, 222, 0.7);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 20px rgba(95, 70, 75, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); padding-block: var(--space-3);
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-logo { height: 56px; width: auto; border-radius: var(--radius-sm); }
.brand-text { display: none; }
.brand-text strong { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); letter-spacing: -0.02em; color: var(--ink); }
.brand-text span { font-size: var(--fs-xs); color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* Navegación principal */
.nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: var(--space-1); align-items: center; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: var(--fs-sm);
  color: var(--ink); font-weight: 500;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.nav-list > li > a:hover { color: var(--primary-dark); background: rgba(157, 125, 132, 0.08); }
.nav-list > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-list > li > a:hover::after { transform: scaleX(1); }
.nav-list > li.is-current > a { color: var(--primary-dark); }
.nav-list > li.is-current > a::after { transform: scaleX(1); }

/* Dropdown desktop */
.has-submenu { position: relative; }
.has-submenu > a .fa-chevron-down { font-size: 10px; transition: transform 0.25s var(--ease-out); }
.has-submenu:hover > a .fa-chevron-down,
.has-submenu:focus-within > a .fa-chevron-down { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; padding: var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s var(--ease-out);
  display: flex; flex-direction: column; gap: 2px;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: var(--fs-sm); color: var(--ink-soft);
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.submenu a i { color: var(--primary); width: 18px; text-align: center; }
.submenu a:hover { background: var(--primary-tint); color: var(--primary-darker); }

/* CTA WhatsApp en header */
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--whatsapp-dark); color: #fff !important; font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 6px 16px rgba(18, 140, 126, 0.32);
}
.header-cta:hover { background: #0E7368; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(18, 140, 126, 0.4); }

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  align-items: center; justify-content: center; position: relative;
  transition: background 0.2s var(--ease-out);
}
.menu-toggle:hover { background: var(--primary-tint); }
.menu-toggle .bars { width: 20px; height: 14px; position: relative; }
.menu-toggle .bars span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-toggle.is-open .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle.is-open .bars span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Panel móvil */
.mobile-panel {
  position: fixed; inset: 0; z-index: 70;
  background: var(--background);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-move);
  overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 100px var(--space-5) var(--space-7);
}
.mobile-panel.is-open { transform: translateY(0); }
.mobile-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% -10%, rgba(157,125,132,0.18), transparent 50%);
  pointer-events: none;
}
.mobile-panel .nav-list {
  display: flex; flex-direction: column; gap: var(--space-2);
  position: relative; z-index: 1;
}
.mobile-panel .nav-list a {
  display: block; padding: var(--space-4) 0;
  font-family: var(--font-display); font-size: var(--fs-3xl);
  font-weight: 400; color: var(--ink); letter-spacing: -0.03em;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s var(--ease-out);
}
.mobile-panel.is-open .nav-list a {
  opacity: 1; transform: translateY(0);
}
.mobile-panel .nav-list > li { opacity: 0; transform: translateY(20px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.mobile-panel.is-open .nav-list > li { opacity: 1; transform: translateY(0); }
.mobile-panel.is-open .nav-list > li:nth-child(1) { transition-delay: 0.10s; }
.mobile-panel.is-open .nav-list > li:nth-child(2) { transition-delay: 0.16s; }
.mobile-panel.is-open .nav-list > li:nth-child(3) { transition-delay: 0.22s; }
.mobile-panel.is-open .nav-list > li:nth-child(4) { transition-delay: 0.28s; }
.mobile-panel.is-open .nav-list > li:nth-child(5) { transition-delay: 0.34s; }
.mobile-panel.is-open .nav-list > li:nth-child(6) { transition-delay: 0.40s; }
.mobile-panel .nav-list a:hover { color: var(--primary); }

.mobile-sub {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 0 18px 16px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-move), padding 0.3s var(--ease-out);
}
.mobile-sub.is-open { max-height: 500px; padding-top: 8px; padding-bottom: 18px; }
.mobile-sub a {
  font-family: var(--font-body) !important; font-size: var(--fs-base) !important;
  color: var(--text-light) !important; padding: 6px 0 !important;
  border: 0 !important; letter-spacing: 0 !important;
}
.mobile-sub a:hover { color: var(--primary) !important; }

.mobile-cta {
  margin-top: auto; position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.mobile-cta .header-cta { justify-content: center; padding: 16px; font-size: var(--fs-md); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 9vh, 120px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(199, 177, 182, 0.55), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(216, 199, 198, 0.6), transparent 55%),
    linear-gradient(180deg, var(--background) 0%, var(--background) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'><g fill='none' stroke='%239D7D84' stroke-width='0.6' opacity='0.18'><circle cx='400' cy='400' r='100'/><circle cx='400' cy='400' r='200'/><circle cx='400' cy='400' r='300'/><circle cx='400' cy='400' r='400'/></g></svg>");
  background-position: right -180px center; background-repeat: no-repeat;
  background-size: 700px 700px;
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 80px);
  align-items: center; position: relative; z-index: 2;
}
.hero-text { max-width: 620px; }
.hero-text .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary-dark); font-weight: 600; margin-bottom: var(--space-5);
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 0.7s var(--ease-out) 0.1s forwards;
}
.hero-text .eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--primary);
}
.hero h1 {
  margin-bottom: var(--space-5);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.25s forwards;
}
.hero h1 em {
  font-style: italic; font-weight: 400;
  color: var(--primary-dark);
}
.hero-lead {
  font-size: var(--fs-md); color: var(--text-light); max-width: 540px;
  margin-bottom: var(--space-6);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.55s forwards;
}

/* Visual del hero: collage editorial */
.hero-visual {
  position: relative; aspect-ratio: 4/5;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 1.1s var(--ease-out) 0.5s forwards;
}
.hero-visual .photo {
  position: absolute; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-strong);
  background: var(--primary-tint);
}
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .photo-main {
  top: 6%; right: 0; width: 78%; aspect-ratio: 4/5;
  transform: rotate(2deg);
}
.hero-visual .photo-secondary {
  bottom: 6%; left: 0; width: 48%; aspect-ratio: 1/1;
  transform: rotate(-4deg);
  border: 6px solid var(--background);
}
.hero-visual .sticker {
  position: absolute; top: 50%; left: -20px; transform: translateY(-50%) rotate(-8deg);
  background: var(--primary-darker); color: var(--background);
  padding: 14px 22px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-md);
  font-weight: 400; letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.hero-visual .stat-card {
  position: absolute; bottom: 8%; right: -10px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: var(--space-3);
  max-width: 280px; border: 1px solid var(--border);
  z-index: 3;
}
.hero-visual .stat-card i {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary-darker);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.hero-visual .stat-card strong {
  display: block; font-family: var(--font-display); font-size: var(--fs-md);
  font-weight: 700; color: var(--ink); line-height: 1.1;
}
.hero-visual .stat-card span { font-size: var(--fs-sm); color: var(--text-light); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-darker); color: #fff;
  box-shadow: 0 8px 22px rgba(95, 70, 75, 0.25);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(95, 70, 75, 0.3); }
.btn-secondary {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--background); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--border);
}
.btn-ghost:hover { background: var(--primary-tint); border-color: var(--primary-light); }
.btn-whatsapp {
  background: var(--whatsapp-dark); color: #fff;
  box-shadow: 0 8px 22px rgba(18, 140, 126, 0.32);
}
.btn-whatsapp:hover { background: #0E7368; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 140, 126, 0.42); }
.btn i { transition: transform 0.2s var(--ease-out); }
.btn:hover i { transform: translateX(3px); }

/* ---------- Section heading ---------- */
.section-heading {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
  align-items: end; margin-bottom: var(--space-7);
}
.section-heading .label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary-dark); font-weight: 600;
  margin-bottom: var(--space-3);
}
.section-heading .label::before {
  content: ''; width: 28px; height: 1px; background: var(--primary);
}
.section-heading p { color: var(--text-light); max-width: 460px; margin: 0; }

/* ---------- Servicios (grid asimétrico numerado) ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5);
}
.service-card {
  position: relative; padding: var(--space-6);
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 320px;
  overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.service-card::after {
  content: ''; position: absolute; inset: auto -30px -30px auto;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-tint) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.service-card:hover::after { opacity: 1; }

.service-card .num {
  font-family: var(--font-display); font-size: var(--fs-3xl);
  color: var(--primary-light); font-weight: 400;
  margin-bottom: var(--space-3);
  display: block;
}
.service-card h3 { margin-bottom: var(--space-3); }
.service-card p { color: var(--text-light); font-size: var(--fs-base); margin-bottom: var(--space-5); flex-grow: 1; }
.service-card .service-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--primary-dark);
  transition: gap 0.25s var(--ease-out);
}
.service-card:hover .service-link { gap: 14px; color: var(--primary-darker); }
.service-card .service-icon {
  position: absolute; top: var(--space-6); right: var(--space-6);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary-darker);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.service-card.span-7 { grid-column: span 7; background: linear-gradient(135deg, var(--primary-tint) 0%, var(--surface) 100%); }
.service-card.span-5 { grid-column: span 5; }
.service-card.span-6 { grid-column: span 6; }
.service-card.span-4 { grid-column: span 4; }
.service-card.span-8 { grid-column: span 8; }

/* ---------- Sobre la doctora ---------- */
.about {
  background: linear-gradient(180deg, var(--background) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-image { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-strong); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content .label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary-dark); font-weight: 600; margin-bottom: var(--space-4);
}
.about-content .label::before { content: ''; width: 28px; height: 1px; background: var(--primary); }
.about-content h2 { margin-bottom: var(--space-5); }
.about-content h2 em { font-style: italic; color: var(--primary-dark); font-weight: 400; }
.about-content p { color: var(--ink-soft); font-size: var(--fs-md); margin-bottom: var(--space-4); }
.about-quote {
  position: relative; padding: var(--space-5) var(--space-6);
  background: var(--primary-tint); border-radius: var(--radius-lg);
  margin-top: var(--space-6); font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-lg); color: var(--primary-darker); line-height: 1.4;
}
.about-quote::before {
  content: '\201C'; position: absolute; top: -20px; left: 16px;
  font-size: 80px; line-height: 1; color: var(--primary-light);
  font-family: var(--font-display); font-weight: 700;
}
.about-creds {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4);
  margin-top: var(--space-6);
}
.about-creds li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: var(--space-3) 0; border-top: 1px solid var(--border);
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.about-creds li i { color: var(--primary); margin-top: 4px; }
.about-creds li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--ink); color: var(--background);
  padding: var(--space-7) 0;
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.stat-item { padding: var(--space-3) 0; border-left: 1px solid rgba(255,255,255,0.12); padding-left: var(--space-5); }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-item strong {
  font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400; display: block; line-height: 1;
  color: var(--primary-light);
}
.stat-item span { font-size: var(--fs-sm); color: rgba(255,255,255,0.7); display: block; margin-top: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
  color: var(--background); padding: var(--space-8) 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -50%; left: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,177,182,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; position: relative; z-index: 1; }
.cta-banner h2 { color: var(--background); margin-bottom: var(--space-3); }
.cta-banner h2 em { font-style: italic; font-weight: 400; color: var(--primary-light); }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; max-width: 540px; font-size: var(--fs-md); }
.cta-banner .btn-secondary { color: var(--background); border-color: var(--background); }
.cta-banner .btn-secondary:hover { background: var(--background); color: var(--ink); }

/* ---------- Contacto ---------- */
.contact-section { background: var(--background); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info h2 { margin-bottom: var(--space-5); }
.contact-info p { color: var(--text-light); font-size: var(--fs-md); margin-bottom: var(--space-6); }
.contact-list { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.contact-list li {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.contact-list li:hover { transform: translateX(4px); border-color: var(--primary-light); }
.contact-list .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary-darker);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.contact-list span, .contact-list a { color: var(--text-light); font-size: var(--fs-sm); }
.contact-list a:hover { color: var(--primary-dark); }
.map-wrapper {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  height: 100%; min-height: 480px; position: relative; background: var(--primary-tint);
}
.map-wrapper iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: var(--space-8) 0 var(--space-5);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-7); padding-bottom: var(--space-7); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .footer-logo { height: 60px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--fs-sm); max-width: 320px; color: rgba(255,255,255,0.6); }
.footer h4 { color: var(--background); font-size: var(--fs-base); margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.footer ul li { margin-bottom: 10px; font-size: var(--fs-sm); }
.footer ul a { color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease-out); }
.footer ul a:hover { color: var(--primary-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--primary-light); margin-top: 4px; width: 16px; }
.footer-bottom {
  padding-top: var(--space-5);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  font-size: var(--fs-xs); color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease-out); }
.footer-bottom a:hover { color: var(--primary-light); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 18px;
  background: var(--whatsapp-dark); color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-sm);
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.42);
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
  animation: waPulse 2.4s var(--ease-out) infinite;
}
.whatsapp-float i { font-size: 22px; }
.whatsapp-float .wa-label { display: flex; flex-direction: column; line-height: 1.1; }
.whatsapp-float .wa-label small { font-size: 10px; font-weight: 400; opacity: 0.95; letter-spacing: 0.05em; text-transform: uppercase; }
.whatsapp-float .wa-label strong { font-size: var(--fs-sm); }
.whatsapp-float:hover { background: #0E7368; transform: translateY(-3px) scale(1.02); }

.whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-pill);
  border: 2px solid var(--whatsapp-dark);
  animation: waRipple 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(18, 140, 126, 0.42); }
  50% { box-shadow: 0 12px 32px rgba(18, 140, 126, 0.55), 0 0 0 6px rgba(18, 140, 126, 0.12); }
}
@keyframes waRipple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  position: relative; padding: clamp(100px, 14vh, 160px) 0 clamp(60px, 8vh, 100px);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(199, 177, 182, 0.4), transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(216, 199, 198, 0.5), transparent 60%),
    var(--background);
  overflow: hidden;
}
.page-hero .breadcrumb {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: var(--fs-sm); color: var(--text-light); margin-bottom: var(--space-5);
}
.page-hero .breadcrumb a:hover { color: var(--primary-dark); }
.page-hero .breadcrumb i { font-size: 10px; opacity: 0.5; }
.page-hero h1 {
  max-width: 900px; margin-bottom: var(--space-5);
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.page-hero h1 em { font-style: italic; color: var(--primary-dark); font-weight: 400; }
.page-hero .lead { max-width: 640px; font-size: var(--fs-md); color: var(--ink-soft); }

/* ---------- Contenido de páginas internas ---------- */
.content-section { padding-block: var(--space-9); }
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 5vw, 80px); align-items: start; }
.prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-4); font-size: var(--fs-3xl); }
.prose h2:first-child { margin-top: 0; }
.prose h2 em { font-style: italic; color: var(--primary-dark); font-weight: 400; }
.prose h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); font-size: var(--fs-xl); color: var(--ink); }
.prose p { font-size: var(--fs-md); color: var(--ink-soft); margin-bottom: var(--space-4); line-height: 1.75; }
.prose ul { margin: var(--space-4) 0; display: flex; flex-direction: column; gap: 10px; }
.prose ul li {
  position: relative; padding-left: 28px;
  font-size: var(--fs-base); color: var(--ink-soft); line-height: 1.65;
}
.prose ul li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 2px;
  color: var(--primary); font-size: 14px;
}
.prose figure { margin: var(--space-6) 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.prose figure img { width: 100%; height: auto; }
.prose figure figcaption {
  padding: var(--space-3) var(--space-4); background: var(--surface);
  font-size: var(--fs-sm); color: var(--text-light); font-style: italic;
  border-top: 1px solid var(--border);
}
.prose blockquote {
  margin: var(--space-6) 0; padding: var(--space-5) var(--space-6);
  background: var(--primary-tint); border-radius: var(--radius-lg);
  font-family: var(--font-display); font-style: italic;
  color: var(--primary-darker); font-size: var(--fs-lg);
  position: relative;
}
.prose strong { color: var(--ink); }

/* Sidebar */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: var(--space-5); }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.sidebar-card h4 {
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500;
  color: var(--ink); margin-bottom: var(--space-3); letter-spacing: -0.02em;
}
.sidebar-card ul { display: flex; flex-direction: column; gap: 6px; }
.sidebar-card ul a {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: var(--fs-sm); color: var(--text-light);
  border-bottom: 1px dashed var(--border);
  transition: color 0.2s var(--ease-out), padding 0.2s var(--ease-out);
}
.sidebar-card ul a:last-child { border-bottom: 0; }
.sidebar-card ul a:hover { color: var(--primary-dark); padding-left: 4px; }
.sidebar-card ul a i { color: var(--primary); font-size: 10px; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-tint), var(--surface));
  text-align: center; padding: var(--space-6) var(--space-5);
}
.sidebar-cta i { font-size: 36px; color: var(--primary); margin-bottom: var(--space-3); }
.sidebar-cta h4 { margin-bottom: var(--space-2); }
.sidebar-cta p { font-size: var(--fs-sm); color: var(--text-light); margin-bottom: var(--space-4); }

/* ---------- Página Informes Online ---------- */
.report-form-wrapper {
  max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-7); box-shadow: var(--shadow-soft);
}
.report-form-wrapper h2 { margin-bottom: var(--space-3); text-align: center; }
.report-form-wrapper .lead { text-align: center; color: var(--text-light); margin-bottom: var(--space-6); }
.form-row { margin-bottom: var(--space-4); }
.form-row label { display: block; font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--ink);
  background: var(--background);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary); background: var(--surface);
}
.form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-5); }
.form-note { text-align: center; font-size: var(--fs-sm); color: var(--text-light); margin-top: var(--space-4); padding: var(--space-3); background: var(--primary-tint); border-radius: var(--radius); }

/* ---------- Animaciones de scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { max-width: 460px; margin-inline: auto; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .service-card.span-7, .service-card.span-5, .service-card.span-6, .service-card.span-4, .service-card.span-8 {
    grid-column: span 12;
  }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .stat-item { border-left: 0; padding-left: 0; }
  .cta-inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 768px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .section-heading { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatsapp-float .wa-label { display: none; }
  .whatsapp-float { padding: 16px; }
  .stats-inner { grid-template-columns: 1fr; }
  .hero-visual .sticker { font-size: var(--fs-sm); padding: 10px 16px; }
  .hero-visual .stat-card { padding: var(--space-3) var(--space-4); max-width: 240px; }
  .hero-visual .stat-card strong { font-size: var(--fs-base); }
  .about-creds { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-text span { display: none; }
  .hero { padding-top: 70px; }
  .page-hero { padding-top: 80px; }
  .report-form-wrapper { padding: var(--space-5); }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-7 { margin-top: var(--space-7); }
.mb-7 { margin-bottom: var(--space-7); }
.no-scroll { overflow: hidden; }