/* ============================================================
   DUVETS — Ducreams Vets · Landing
   Sistema de diseño · 3 temas · microinteracciones
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Tokens base ---------- */
:root {
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1240px;
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(5.5rem, 12vh, 10rem);
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-xl: 40px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Marca fija */
  --brand: #574a49;       /* marrón-malva cabecera/pie */
  --brand-deep: #443938;
  --on-brand: #f0eadd;
  --amber: #b9742f;       /* ámbar del frasco */
}

/* ============================================================
   TEMA 1 — CÁLIDO / NATURAL  (por defecto)
   ============================================================ */
:root[data-theme="warm"] {
  --bg: #efe9dd;
  --bg-alt: #e6ddcd;
  --surface: #f7f3ea;
  --surface-2: #fbf8f1;
  --text: #423735;
  --text-soft: #7a6c65;
  --line: rgba(66, 55, 53, .14);
  --line-strong: rgba(66, 55, 53, .26);
  --accent: #a8503a;
  --accent-soft: rgba(168, 80, 58, .12);
  --on-accent: #f7f1e8;
  --band: var(--brand);
  --on-band: var(--on-brand);
  --shadow: 0 1px 2px rgba(60,45,42,.05), 0 18px 50px -22px rgba(60,45,42,.30);
  --shadow-soft: 0 14px 40px -26px rgba(60,45,42,.40);
}

/* ============================================================
   TEMA 2 — OSCURO / PREMIUM
   ============================================================ */
:root[data-theme="dark"] {
  --bg: #2a2221;
  --bg-alt: #332927;
  --surface: #352b29;
  --surface-2: #3d3230;
  --text: #efe6d8;
  --text-soft: #b6a89d;
  --line: rgba(239, 230, 216, .13);
  --line-strong: rgba(239, 230, 216, .24);
  --accent: #dc8a5b;
  --accent-soft: rgba(220, 138, 91, .16);
  --on-accent: #2a2221;
  --band: #1f1817;
  --on-band: #efe6d8;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 24px 60px -24px rgba(0,0,0,.6);
  --shadow-soft: 0 18px 50px -28px rgba(0,0,0,.7);
}

/* ============================================================
   TEMA 3 — CLÍNICO / LIMPIO
   ============================================================ */
:root[data-theme="clean"] {
  --bg: #ffffff;
  --bg-alt: #f5f2ec;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --text: #2c2421;
  --text-soft: #6f655f;
  --line: rgba(44, 36, 33, .1);
  --line-strong: rgba(44, 36, 33, .2);
  --accent: #a8503a;
  --accent-soft: rgba(168, 80, 58, .09);
  --on-accent: #ffffff;
  --band: var(--brand);
  --on-band: var(--on-brand);
  --shadow: 0 1px 2px rgba(40,30,28,.04), 0 20px 50px -28px rgba(40,30,28,.22);
  --shadow-soft: 0 16px 44px -30px rgba(40,30,28,.3);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  transition: background .6s var(--ease), color .6s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; color: var(--text); }
p { text-wrap: pretty; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
section { position: relative; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

.h-display { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
.h-section { font-size: clamp(2.05rem, 4.4vw, 3.5rem); }
.lead { font-size: clamp(1.08rem, 1.55vw, 1.4rem); color: var(--text-soft); line-height: 1.55; letter-spacing: -0.01em; }

/* ---------- Botones ---------- */
.btn {
  --b-bg: var(--accent); --b-fg: var(--on-accent);
  position: relative; display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap;
  padding: 1rem 1.6rem; border-radius: 100px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  background: var(--b-bg); color: var(--b-fg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease);
  will-change: transform;
  box-shadow: 0 10px 30px -14px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px color-mix(in oklab, var(--accent) 75%, transparent); }
.btn:active { transform: translateY(-1px); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.ghost {
  --b-bg: transparent; --b-fg: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); box-shadow: none; }

.btn.on-band { --b-bg: var(--on-band); --b-fg: var(--band); box-shadow: none; }
.btn.on-band.ghost { --b-bg: transparent; --b-fg: var(--on-band); border-color: color-mix(in oklab, var(--on-band) 40%, transparent); }
.btn.on-band.ghost:hover { background: color-mix(in oklab, var(--on-band) 12%, transparent); color: var(--on-band); border-color: var(--on-band); }

.btn.lg { padding: 1.15rem 2rem; font-size: 1.05rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; }
.reveal.in { animation: reveal-in .9s var(--ease-out) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.reveal.in[data-d="1"] { animation-delay: .08s; }
.reveal.in[data-d="2"] { animation-delay: .16s; }
.reveal.in[data-d="3"] { animation-delay: .24s; }
.reveal.in[data-d="4"] { animation-delay: .32s; }
.reveal.in[data-d="5"] { animation-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.2rem;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: .7rem;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .95rem; color: var(--text-soft); position: relative; transition: color .25s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }

/* Logo DUVETS */
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; transition: height .4s var(--ease); }
.nav.scrolled .logo-img { height: 38px; }
/* Pie oscuro: usa la versión clara del logo */
.footer .logo-img { height: 54px; }
@media (max-width: 720px) { .logo-img { height: 38px; } }

/* Imágenes (hero / nosotros) — sustituyen a los huecos del prototipo */
.hero-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; display: block; }

/* Lang toggle */
.lang {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 100px; overflow: hidden; font-size: .8rem; font-weight: 600;
}
.lang button { padding: .4rem .7rem; color: var(--text-soft); transition: color .25s, background .25s; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* Hamburger (mobile) */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.nav-toggle span { width: 17px; height: 1.5px; background: var(--text); position: relative; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--text); transition: .3s var(--ease); }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(7rem, 14vh, 10rem); padding-bottom: var(--section-y); overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { max-width: 44ch; }
.hero h1 { margin: 1.3rem 0 1.4rem; font-size: clamp(2.3rem, 4.7vw, 4.3rem); }
.hero h1 span { display: block; }
.hero h1 .ink { color: var(--accent); }
.hero .lead { margin-bottom: 2.2rem; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.4rem; padding-top: 1.7rem; border-top: 1px solid var(--line); }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--text-soft); font-weight: 500; }
.hero-badge svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

/* Hero visual */
.hero-visual { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; }
.hero-blob {
  position: absolute; inset: 6% -3% 9% 13%; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in oklab, var(--accent) 28%, var(--surface)) 0%, var(--surface) 62%);
  box-shadow: var(--shadow);
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  33% { border-radius: 58% 42% 44% 56% / 46% 58% 42% 54%; }
  66% { border-radius: 42% 58% 52% 48% / 58% 46% 54% 42%; }
}
.hero-slot {
  position: relative; z-index: 2; width: 84%; height: 95%;
  filter: drop-shadow(0 30px 50px rgba(40,28,24,.32));
}
.hero-slot image-slot { width: 100%; height: 100%; }

/* Floating line motifs */
.float { position: absolute; color: var(--accent); opacity: .5; z-index: 3; pointer-events: none; }
.float svg { width: 100%; height: 100%; }
.float.f1 { width: 64px; height: 64px; top: 6%; right: 8%; animation: bob 6s ease-in-out infinite; }
.float.f2 { width: 50px; height: 50px; bottom: 12%; left: 2%; animation: bob 7s ease-in-out infinite .8s; }
.float.f3 { width: 42px; height: 42px; bottom: 30%; right: 0%; animation: bob 5.5s ease-in-out infinite .4s; opacity: .35; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(6deg); } }

/* ============================================================
   MARQUEE de certificaciones
   ============================================================ */
.marquee { border-block: 1px solid var(--line); padding-block: 1.5rem; overflow: hidden; --gap: 3.5rem; }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: .7rem; color: var(--text-soft); font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; color: var(--accent); }
@keyframes scroll-x { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .h-section { margin: 1rem 0 1.1rem; }
.sec-head p { color: var(--text-soft); font-size: 1.12rem; }

/* ============================================================
   POR QUÉ DUVETS — grid de beneficios
   ============================================================ */
.benefits { padding-block: var(--section-y); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.benefit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 2rem 1.9rem 2.1rem; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
.benefit-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.4rem; transition: transform .5s var(--ease); }
.benefit-ic svg { width: 28px; height: 28px; }
.benefit:hover .benefit-ic { transform: scale(1.08) rotate(-4deg); }
.benefit h3 { font-size: 1.32rem; margin-bottom: .55rem; }
.benefit p { color: var(--text-soft); font-size: .98rem; }
.benefit-num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-display); font-size: .82rem; color: var(--text-soft); opacity: .5; letter-spacing: .1em; }

/* ============================================================
   VENTAJAS PARA LA CLÍNICA — banda oscura
   ============================================================ */
.clinic { background: var(--band); color: var(--on-band); padding-block: var(--section-y); }
.clinic .eyebrow { color: color-mix(in oklab, var(--accent) 70%, var(--on-band)); }
.clinic .h-section, .clinic .sec-head p { color: var(--on-band); }
.clinic .sec-head p { opacity: .8; }
.clinic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: color-mix(in oklab, var(--on-band) 14%, transparent); border: 1px solid color-mix(in oklab, var(--on-band) 14%, transparent); border-radius: var(--radius-l); overflow: hidden; }
.adv { background: var(--band); padding: 2.3rem 2.1rem; display: flex; gap: 1.3rem; align-items: flex-start; transition: background .4s var(--ease); }
.adv:hover { background: color-mix(in oklab, var(--on-band) 6%, var(--band)); }
.adv-ic { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--on-band) 10%, transparent); color: color-mix(in oklab, var(--accent) 60%, var(--on-band)); }
.adv-ic svg { width: 26px; height: 26px; }
.adv h3 { color: var(--on-band); font-size: 1.28rem; margin-bottom: .4rem; }
.adv p { color: var(--on-band); opacity: .72; font-size: .98rem; }
.adv .tag { display: inline-block; white-space: nowrap; margin-top: .7rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--accent) 65%, var(--on-band)); }

/* ============================================================
   SOBRE NOSOTROS — Vitoria-Gasteiz
   ============================================================ */
.about { padding-block: var(--section-y); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media image-slot { width: 100%; aspect-ratio: 4/5; }
.about-pin {
  position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 3;
  background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 100px; padding: .6rem 1.1rem .6rem .8rem;
  display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-soft);
}
.about-pin svg { width: 18px; height: 18px; color: var(--accent); }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { color: var(--text-soft); margin-bottom: 1.1rem; font-size: 1.06rem; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-stats { display: flex; gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.about-stat .n { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 600; color: var(--accent); letter-spacing: -0.04em; white-space: nowrap; }
.about-stat .l { font-size: .88rem; color: var(--text-soft); margin-top: .1rem; }
.signature { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; }
.signature .who { font-weight: 700; }
.signature .who span { display: block; font-weight: 500; color: var(--text-soft); font-size: .9rem; }
.sig-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.sig-avatar svg { width: 24px; height: 24px; }

/* ============================================================
   CONTACTO / ALTA DE CLÍNICA
   ============================================================ */
.contact { background: var(--bg-alt); padding-block: var(--section-y); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact-left h2 { margin: 1rem 0 1.3rem; }
.contact-left .lead { margin-bottom: 2.2rem; }
.contact-points { display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 2.4rem; }
.contact-point { display: flex; gap: 1rem; align-items: flex-start; }
.contact-point svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: .15rem; }
.contact-point b { display: block; }
.contact-point span { color: var(--text-soft); font-size: .96rem; }
.comercial { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.comercial .sig-avatar { background: var(--brand); color: var(--on-brand); }
.comercial .who { font-weight: 700; }
.comercial .who span { display: block; }
.comercial .who span + span { font-weight: 500; color: var(--text-soft); font-size: .9rem; }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-soft); margin-bottom: .45rem; letter-spacing: .01em; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--text-soft) 75%, transparent); }
.form-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--text-soft); text-align: center; margin-top: 1rem; }
.form-success { text-align: center; padding: 1.5rem 0; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.form-success p { color: var(--text-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--brand); color: var(--on-brand); padding-top: clamp(4rem, 8vw, 6rem); padding-bottom: 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid color-mix(in oklab, var(--on-brand) 16%, transparent); }
.footer .logo { color: var(--on-brand); }
.footer .logo svg { color: var(--on-brand); }
.footer .logo .word .du { color: var(--on-brand); opacity: .7; }
.footer-blurb { margin-top: 1.2rem; max-width: 34ch; opacity: .72; font-size: .98rem; }
.footer h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; opacity: .6; margin-bottom: 1.1rem; font-weight: 700; }
.footer-col a, .footer-col p { display: block; opacity: .82; margin-bottom: .7rem; font-size: .96rem; transition: opacity .25s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2rem; flex-wrap: wrap; font-size: .86rem; opacity: .7; }
.footer-social { display: flex; gap: .7rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--on-brand) 24%, transparent); display: grid; place-items: center; transition: background .3s, transform .3s; }
.footer-social a:hover { background: color-mix(in oklab, var(--on-brand) 12%, transparent); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* ============================================================
   STYLE SWITCHER (preview control)
   ============================================================ */
.switcher {
  position: fixed; z-index: 200; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  display: flex; align-items: center; gap: .5rem;
  background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: .5rem .55rem .5rem .9rem;
  box-shadow: var(--shadow);
}
.switcher .lbl { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); margin-right: .2rem; }
.switcher button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; position: relative; transition: transform .25s var(--ease); }
.switcher button:hover { transform: scale(1.12); }
.switcher button[aria-pressed="true"] { border-color: var(--accent); }
.sw-warm { background: linear-gradient(135deg, #efe9dd 50%, #a8503a 50%); }
.sw-dark { background: linear-gradient(135deg, #2a2221 50%, #dc8a5b 50%); }
.sw-clean { background: linear-gradient(135deg, #ffffff 50%, #a8503a 50%); border: 2px solid var(--line-strong); }
.switcher button[aria-pressed="true"].sw-clean { border-color: var(--accent); }

/* ============================================================
   MODAL DE CONTACTO
   ============================================================ */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.modal-overlay { position: absolute; inset: 0; background: color-mix(in oklab, var(--brand-deep) 72%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: m-fade .25s ease; }
.modal-card {
  position: relative; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius-l); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); animation: m-pop .3s var(--ease);
}
.modal-close { position: absolute; top: .9rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
  color: var(--text-soft); border: 1px solid var(--line-strong); background: var(--surface-2); display: grid; place-items: center; transition: .25s var(--ease); }
.modal-close:hover { color: var(--accent); border-color: var(--accent); }
.modal-card .eyebrow { margin-bottom: .8rem; }
.modal-card h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); margin-bottom: .5rem; }
.modal-sub { color: var(--text-soft); margin-bottom: 1.6rem; }
.modal-card form { margin-top: .4rem; }
.modal-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
body.modal-open { overflow: hidden; }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* En una sola columna, las celdas del grid no deben heredar el ancho
     de su contenido (evita desbordes horizontales). */
  .hero-grid > *, .about-grid > *, .contact-grid > *, .footer-top > * { min-width: 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  /* En móvil el menú hamburguesa y los CTAs de la página cubren la acción;
     ocultamos el botón "Pedir muestra" de la barra para que no se solape. */
  .nav-right .btn { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.5rem var(--pad-x); gap: 1.2rem;
  }
  .benefit-grid { grid-template-columns: 1fr; }
  .clinic-grid { grid-template-columns: 1fr; }
  .field.row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { gap: 1.5rem; }
  .switcher .lbl { display: none; }
  /* La tarjeta de comercial pasa a vertical para no forzar ancho mínimo. */
  .comercial { flex-wrap: wrap; }
  .comercial .btn { margin-left: 0 !important; width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  /* Pantallas muy estrechas: evita que estadísticas y badges desborden. */
  .about-stats { flex-wrap: wrap; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
