/* =============================================================
   CLÍNICA MKT — styles.css
   Marketing médico · Chihuahua
   Marca: teal #006B68 dominante, amarillo #FFB600 acento, blanco/negro
   Tipografía: Rubik
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --teal: #006B68;
  --teal-700: #005553;
  --teal-900: #00403e;
  --teal-soft: #e6f0ef;
  --teal-tint: #f3f8f7;
  --accent: #FFB600;
  --accent-600: #e6a300;
  --black: #0a0a0a;
  --ink: #14201f;
  --muted: #51625f;
  --white: #ffffff;
  --line: #e2e9e7;

  --bg: #ffffff;

  --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 64, 62, .06);
  --shadow: 0 14px 38px rgba(0, 64, 62, .10);
  --shadow-lg: 0 30px 70px rgba(0, 64, 62, .16);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --header-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: var(--header-h);
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }

.skip-link {
  position: fixed; top: -120px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--accent); color: var(--black);
  z-index: 9999; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.kicker--light { color: rgba(255,255,255,.85); }
.dot-motif {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--accent);
  background: radial-gradient(circle, var(--accent) 0 30%, transparent 32%);
  flex: none;
}

.section-title {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  font-weight: 700; color: var(--ink);
  max-width: 20ch;
}
.section-title--light { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }

.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 60ch; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
  cursor: pointer; text-align: center;
}
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn--accent { background: var(--accent); color: var(--black); box-shadow: 0 8px 22px rgba(255,182,0,.32); }
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255,182,0,.42); background: var(--accent-600); }
.btn--teal { background: var(--teal); color: var(--white); box-shadow: 0 8px 22px rgba(0,107,104,.28); }
.btn--teal:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,107,104,.38); background: var(--teal-700); }
.btn--ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); transform: translateY(-3px); }

.ico-wa { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ico-wa--teal { fill: var(--teal); }

/* =============================================================
   5. Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease-out), border-color .3s, background .3s;
}
/* Nota: sin backdrop-filter a propósito — crea un bloque contenedor que rompería
   el position:fixed del menú móvil (drawer). Fondo casi opaco es suficiente. */
@supports (backdrop-filter: blur(10px)) {
  /* Solo en desktop, donde el drawer fixed no existe, podemos usar blur. */
  @media (min-width: 860px) {
    .site-header {
      background: rgba(255,255,255,.85);
      backdrop-filter: saturate(180%) blur(10px);
      -webkit-backdrop-filter: saturate(180%) blur(10px);
    }
  }
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.main-nav a:not(.nav-cta) {
  font-weight: 500; color: var(--ink); position: relative; padding: .3rem 0;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .28s var(--ease-out);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: .65rem 1.3rem; }

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

/* =============================================================
   6. Sunburst / motivos decorativos
   ============================================================= */
.sunburst {
  position: absolute; width: 320px; height: 320px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle, transparent 30%, transparent 32%),
    repeating-radial-gradient(circle at center, var(--accent) 0 14px, transparent 14px 30px);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 50%, transparent 70%);
  mask-image: radial-gradient(circle at center, #000 0 50%, transparent 70%);
  opacity: .9;
}
.sunburst--corner {
  width: 260px; height: 260px; top: -90px; right: -90px;
  background: repeating-radial-gradient(circle at center, var(--accent) 0 10px, transparent 10px 24px);
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  opacity: .35;
}
.sunburst--tl { top: -90px; left: -90px; right: auto; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--teal-tint), transparent 60%),
    var(--white);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.04;
  margin-bottom: 1.1rem;
}
.hero h1 { color: var(--ink); }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); margin-bottom: 1.8rem; max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-bottom: 1.4rem; }
.hero-micro { font-size: .95rem; color: var(--muted); max-width: 50ch; }
.hero-micro strong { color: var(--teal); }

/* Hero: recorte del equipo sobre círculo teal + anillo + sunburst */
.hero-media { display: block; text-align: center; line-height: 0; }
.hero-cutout {
  position: relative; display: inline-block; vertical-align: bottom;
  width: min(100%, 480px);
  /* inline-block: el contenedor mide EXACTAMENTE la imagen y ningún padre flex/grid
     puede estirarlo. Así el borde inferior = pies y el disco se ancla con % a esa altura. */
}
.hero-cutout .sunburst { top: -30px; right: -30px; width: 180px; height: 180px; opacity: .6; }
.hero-blob {
  position: absolute; z-index: 0; left: 50%; top: 4%;
  transform: translateX(-50%);
  width: 96%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #00807c, var(--teal) 55%, var(--teal-900));
  animation: heroFloat 7s var(--ease-soft) infinite;
}
.hero-cutout-img {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  filter: drop-shadow(0 24px 26px rgba(0, 64, 62, .28));
}
/* Plataforma teal sobre la que están parados ambos jefes.
   Posición y alto en % del contenedor (= imagen) → cubre los dos niveles de pies
   (tenis ~5% y botas ~1% desde abajo) y escala igual en móvil y desktop. */
.hero-platform {
  position: absolute; z-index: 0; bottom: -0.5%; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 6.5%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #00908c, var(--teal) 55%, var(--teal-900));
  box-shadow: 0 16px 30px rgba(0, 64, 62, .28), inset 0 3px 8px rgba(255,255,255,.18);
  animation: platformPulse 6s var(--ease-soft) infinite;
}
@keyframes platformPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.04); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

.hero-stats {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: clamp(2rem, 5vw, 3.2rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats li { background: var(--white); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .25rem; }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; color: var(--teal); letter-spacing: -0.02em; line-height: 1; }
.stat-num--text { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.stat-num--combo { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; line-height: 1.1; }
.stat-num--combo strong { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; }
.stat-label { font-size: .92rem; color: var(--muted); }

/* =============================================================
   8. Problema
   ============================================================= */
.problema { background: var(--teal-tint); text-align: center; }
.problema .section-title { margin-inline: auto; max-width: 24ch; }
.problema .lead { margin-inline: auto; margin-top: 1.4rem; font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--ink); }

/* =============================================================
   9. Split layout (Qué hacemos / Contacto)
   ============================================================= */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-copy .kicker { margin-bottom: 1.2rem; }
.split-copy .section-title { max-width: 22ch; margin-bottom: 1.5rem; line-height: 1.12; }
.split-copy .lead { margin-bottom: .4rem; }
.check-list { margin-top: 2rem; display: grid; gap: .9rem; }
.check-list li { position: relative; padding-left: 2.1rem; font-weight: 500; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/76% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/76% no-repeat;
}
.split-media { display: flex; justify-content: center; }
.photo-card {
  width: min(100%, 420px); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--teal-soft);
}
.photo-card img { width: 100%; object-fit: cover; }

/* =============================================================
   10. Frase impacto (full-bleed teal)
   ============================================================= */
.frase-impacto {
  position: relative; overflow: hidden;
  background: var(--teal); color: var(--white);
  padding-block: clamp(3.5rem, 10vw, 7rem); text-align: center;
}
.impacto-text {
  font-size: clamp(1.8rem, 5.2vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.08; max-width: 18ch; margin-inline: auto; position: relative; z-index: 1;
}
.impacto-text em { color: var(--accent); font-style: normal; }

/* =============================================================
   11. Servicios
   ============================================================= */
.servicios { background: var(--white); }
.servicios-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-ico {
  display: inline-flex; width: 58px; height: 58px; border-radius: 16px;
  align-items: center; justify-content: center; color: var(--teal);
  background: var(--teal-soft); margin-bottom: 1.1rem;
}
.service-ico svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.28rem; margin-bottom: .6rem; color: var(--ink); }
.service-card p { color: var(--muted); font-size: .98rem; }

.service-card--wide { display: grid; gap: 1.6rem; }
.service-card-body { max-width: 64ch; }

/* Carrusel de medios (producción y branding) */
.media-carousel { position: relative; }
.media-track {
  display: flex; gap: 1rem; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; padding-bottom: .6rem;
  scrollbar-width: thin; scrollbar-color: var(--teal) var(--line);
}
.media-track::-webkit-scrollbar { height: 8px; }
.media-track::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }
.media-track::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 99px; }
.media-track img {
  scroll-snap-align: start; border-radius: var(--radius-sm);
  object-fit: cover; box-shadow: var(--shadow-sm);
}
/* Branding: slides amplios (paisaje) */
.media-track--wide img { flex: 0 0 min(82%, 440px); }
/* Producción: filmstrip de altura uniforme (mezcla retrato/paisaje) */
.media-track--strip img { flex: 0 0 auto; height: clamp(240px, 42vw, 340px); width: auto; }
.carousel-controls { display: flex; gap: .6rem; margin-top: 1rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; background: var(--teal-soft); color: var(--teal);
  font-size: 1.2rem; display: grid; place-items: center;
  transition: background .2s, transform .2s var(--ease-out);
}
.carousel-btn:hover { background: var(--teal); color: var(--white); transform: scale(1.08); }

/* =============================================================
   12. Beneficios (teal block)
   ============================================================= */
.beneficios { position: relative; overflow: hidden; background: var(--teal); color: var(--white); }
.beneficios .sunburst--corner { opacity: .22; }
.beneficios-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; position: relative; z-index: 1; }
.benefit-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 1.2rem 1.3rem; border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background .25s, transform .25s var(--ease-out);
}
.benefit-card:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }
.benefit-ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; background: var(--accent); color: var(--black);
}
.benefit-ico svg { width: 22px; height: 22px; }

/* =============================================================
   13. Proceso (timeline)
   ============================================================= */
.proceso { background: var(--teal-tint); }
.timeline { position: relative; display: grid; gap: 1.1rem; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 22px; top: 14px; bottom: 14px; width: 3px;
  background: linear-gradient(var(--accent), var(--teal)); border-radius: 99px;
}
.step { position: relative; display: flex; gap: 1.2rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.step-num {
  flex: none; width: 46px; height: 46px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center; font-weight: 900; font-size: 1.15rem;
  background: var(--accent); color: var(--black); box-shadow: 0 0 0 5px var(--teal-tint);
}
.step h3 { font-size: 1.12rem; color: var(--teal); margin-bottom: .2rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* =============================================================
   14. Por qué nosotros
   ============================================================= */
.porque { background: var(--white); }
.porque-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.porque-card {
  padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius); background: var(--teal-tint);
  border-left: 5px solid var(--accent);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.porque-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.porque-card h3 { font-size: 1.16rem; color: var(--ink); margin-bottom: .45rem; }
.porque-card p { color: var(--muted); font-size: .97rem; }

/* =============================================================
   15. Testimonios
   ============================================================= */
.testimonios { background: var(--teal-tint); }
.testimonios-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.testimonial {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 2rem 1.7rem 1.7rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.quote-mark { position: absolute; top: .4rem; left: 1.1rem; font-size: 3.4rem; line-height: 1; color: var(--accent); font-weight: 900; font-family: Georgia, serif; }
.testimonial blockquote { position: relative; z-index: 1; font-size: 1.05rem; color: var(--ink); margin: .6rem 0 1.4rem; font-style: italic; }
.testimonial figcaption { display: flex; align-items: center; gap: .85rem; }
.t-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.t-meta { display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.t-meta strong { color: var(--ink); }

.reviews-block { margin-top: 2.6rem; }
.wally-embed { width: 100%; min-height: 360px; }
.wally-embed > div { min-height: inherit; }

/* =============================================================
   16. CTA final
   ============================================================= */
.cta-final {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-900));
  color: var(--white); padding-block: clamp(3.5rem, 9vw, 6rem);
}
.cta-final .sunburst--corner { opacity: .25; top: auto; bottom: -90px; right: -90px; }
.cta-final h2 { font-size: clamp(1.7rem, 4.6vw, 3rem); font-weight: 900; max-width: 22ch; margin: 0 auto 1.1rem; position: relative; z-index: 1; }
.cta-final p { max-width: 56ch; margin: 0 auto 1.8rem; color: rgba(255,255,255,.9); position: relative; z-index: 1; }
.cta-final .btn { position: relative; z-index: 1; }
.cta-close { margin-top: 1.6rem !important; font-size: 1.1rem; }
.cta-close strong { color: var(--accent); }

/* =============================================================
   17. Contacto / formulario
   ============================================================= */
.contacto { background: var(--white); }
.split--form { align-items: start; }
.contact-form { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--teal-tint); transition: border-color .2s, background .2s;
}
.field input:focus { border-color: var(--teal); background: var(--white); outline: none; }
.field input:user-invalid { border-color: #d14343; }
.checks { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .5rem; }
.checks label { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .96rem; color: var(--ink); cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal); }
fieldset.field { border: 0; padding: 0; }
.form-privacy { font-size: .85rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.form-status { font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.is-ok { color: var(--teal); }
.form-status.is-err { color: #d14343; }

.form-side { display: grid; gap: 1.4rem; }
.contact-card { background: var(--teal); color: var(--white); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.contact-card h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.nap-line { color: rgba(255,255,255,.92); font-size: .98rem; margin-bottom: .6rem; }
.nap-line a { color: var(--accent); font-weight: 600; }
.nap-line a:hover { text-decoration: underline; }

.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: var(--teal-soft); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,64,62,.18); color: var(--white); font-weight: 600;
  transition: opacity .25s;
}
.map-overlay span { background: rgba(0,64,62,.85); padding: .6rem 1.1rem; border-radius: 99px; font-size: .92rem; }
.map-wrap.is-active .map-overlay { opacity: 0; pointer-events: none; }

/* =============================================================
   18. Footer
   ============================================================= */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.82); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 1rem; }
.footer-slogan { color: var(--accent); font-weight: 700; font-size: 1.15rem; }
.footer-h { font-size: 1rem; color: var(--white); margin-bottom: .9rem; letter-spacing: .02em; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a:hover { color: var(--accent); }
.footer-social { display: grid; gap: .5rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.4rem; font-size: .88rem;
}
.footer-legal:hover { color: var(--accent); text-decoration: underline; }

/* =============================================================
   18b. Página legal (Aviso de Privacidad)
   ============================================================= */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 9vw, 7rem); }
.legal-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--teal); margin-bottom: 1.6rem;
}
.legal-back:hover { gap: .8rem; }
.legal-head { border-bottom: 2px solid var(--line); padding-bottom: 1.4rem; margin-bottom: 1.8rem; }
.legal-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 900; color: var(--ink); }
.legal-head .legal-meta { color: var(--muted); font-size: .95rem; margin-top: .5rem; }
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.45rem); color: var(--teal); font-weight: 700;
  margin-top: 2.2rem; margin-bottom: .7rem;
}
.legal-body p { color: var(--ink); margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; display: grid; gap: .4rem; }
.legal-body ul li { color: var(--ink); }
.legal-body a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--accent-600); }
.legal-note {
  background: var(--teal-tint); border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); color: var(--muted); font-size: .95rem;
}
.legal-bracket { color: var(--muted); }

/* =============================================================
   19. WhatsApp flotante
   ============================================================= */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.5);
  animation: waPulse 2.6s ease-out infinite;
  transition: transform .25s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse {
  0% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* =============================================================
   20. Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: never let a reveal that's also split-text stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   20b. Micro-interacciones y animaciones ambientales
   ============================================================= */
/* Sunburst gira lentamente (ambiental) */
.sunburst { animation: spin 80s linear infinite; }
.sunburst--tl { animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ícono de servicio reacciona al hover de la tarjeta */
.service-ico { transition: transform .35s var(--ease-out), background .3s, color .3s; }
.service-card:hover .service-ico { transform: scale(1.1) rotate(-5deg); background: var(--accent); color: var(--black); }

/* Ícono de beneficio reacciona al hover */
.benefit-ico { transition: transform .35s var(--ease-out); }
.benefit-card:hover .benefit-ico { transform: rotate(-8deg) scale(1.1); }

/* Tarjeta de proceso: el número crece un poco */
.step-num { transition: transform .3s var(--ease-out), box-shadow .3s; }
.step:hover .step-num { transform: scale(1.12); }

/* Acento de "por qué" crece al hover */
.porque-card { transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-left-width .25s var(--ease-out); }
.porque-card:hover { border-left-width: 10px; }

/* Logo del header reacciona sutilmente */
.brand img { transition: transform .3s var(--ease-out); }
.brand:hover img { transform: scale(1.04); }

/* Float flotante de WhatsApp: icono late suave */
.wa-float svg { transition: transform .3s var(--ease-out); }
.wa-float:hover svg { transform: scale(1.12) rotate(6deg); }

/* =============================================================
   21. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .servicios-grid { grid-template-columns: 1fr 1fr 1fr; }
  .service-card--wide { grid-column: span 3; grid-template-columns: 1fr 1.1fr; align-items: center; }
  .beneficios-grid { grid-template-columns: 1fr 1fr; }
  .porque-grid { grid-template-columns: 1fr 1fr; }
  .testimonios-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1.4fr 1fr; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .split { grid-template-columns: 1.05fr .95fr; }
  .split--form { grid-template-columns: 1.1fr .9fr; }
  .beneficios-grid { grid-template-columns: 1fr 1fr; }
  .porque-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .beneficios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .beneficios-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile nav */
@media (max-width: 859px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem 2.2rem; background: var(--white);
    box-shadow: -20px 0 60px rgba(0,0,0,.18);
    transform: translateX(100%); transition: transform .35s var(--ease-out);
    z-index: 105;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a:not(.nav-cta) { font-size: 1.3rem; font-weight: 600; }
  .nav-cta { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* =============================================================
   22. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float, .sunburst, .sunburst--tl, .hero-blob, .hero-platform { animation: none; }
  .hero-blob, .hero-platform { transform: translateX(-50%); }
  .reveal { opacity: 1; transform: none; transition: none; }
}
