/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --petrol:     #0E3B43;   /* marca */
  --petrol-2:   #0A2D33;
  --petrol-3:   #15505B;
  --wood:       #8A6A4F;   /* detalles cálidos */
  --wood-soft:  #E9E0D6;
  --gold:       #B8975A;   /* solo decorativo, nunca texto pequeño sobre claro */
  --gold-soft:  #D9C49B;
  --bg:         #F5F7F6;   /* blanco frío */
  --paper:      #FFFFFF;
  --ink:        #17292D;
  --ink-soft:   #3D5257;
  --ink-mute:   #5E7176;
  --line:       rgba(23, 41, 45, 0.12);
  --heading:    #0E3B43;   /* títulos y enlaces de marca */
  --nav-bg:     rgba(245,247,246,.82);
  --nav-bg-2:   rgba(245,247,246,.94);
  --ghost-line: rgba(14,59,67,.28);
  --accent-em:  var(--wood);
  --danger:     #A3342B;
  --wa:         #1F7A4D;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:    14px;
  --radius-lg: 22px;
  --gutter:    clamp(1rem, 4vw, 2.5rem);
  --section:   clamp(4.5rem, 10vw, 8.5rem);
  --nav-h:     68px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --shadow:    0 1px 2px rgba(14,59,67,.06), 0 12px 32px -12px rgba(14,59,67,.18);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
em { font-style: italic; }
h1 em, h2 em, .brand-name em { color: var(--accent-em); }
::selection { background: var(--petrol); color: var(--bg); }
:focus-visible { outline: 2px solid var(--petrol-3); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--paper); color: var(--heading); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-mute); }
.small { font-size: .875rem; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol-3); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.eyebrow-light { color: var(--gold-soft); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; margin-top: 1.1rem; }
.lead-light { color: rgba(245,247,246,.78); }

/* =============================================================
   5. Componentes
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2; text-align: center;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s var(--ease-out), border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn-primary { background: var(--petrol); color: var(--bg); box-shadow: 0 10px 24px -12px rgba(14,59,67,.7); }
.btn-primary:hover { background: var(--petrol-3); }
.btn-ghost { border: 1px solid var(--ghost-line); color: var(--heading); background: transparent; }
.btn-ghost:hover { border-color: var(--heading); background: rgba(14,59,67,.04); }
.btn-gold { background: var(--gold); color: var(--petrol-2); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; }
.btn-wa:hover { background: #196a42; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-link { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding-inline: .5rem; }

/* Fotos con hueco elegante si todavía no hay imagen */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(184,151,90,.22), transparent 55%),
    linear-gradient(160deg, var(--petrol-3), var(--petrol-2));
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-pending {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 0;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,247,246,.55);
}
.photo-portrait { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 10; }
.photo-square { aspect-ratio: 1 / 1; }

/* =============================================================
   6. Secciones
   ============================================================= */

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
@supports (backdrop-filter: blur(10px)) { .nav { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); } }
.nav.is-scrolled { border-bottom-color: var(--line); background: var(--nav-bg-2); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--heading); }
.brand-mark { width: 28px; height: 28px; color: var(--gold); }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.01em; color: var(--heading); }
.nav-links { display: none; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }

/* --- Hero --- */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(184,151,90,.13), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-title { font-size: clamp(2.7rem, 9vw, 5.6rem); line-height: .98; max-width: 11ch; color: var(--heading); }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin-top: 1.25rem; }

.needs { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: .6rem; }
.need {
  display: flex; align-items: center; gap: .85rem; min-height: 56px;
  padding: .75rem 1.1rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; font-weight: 500; color: var(--ink);
  transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s var(--ease-out);
}
.need::after { content: "→"; margin-left: auto; color: var(--gold); transition: transform .35s var(--ease-out); }
.need:hover { transform: translateY(-2px); border-color: rgba(14,59,67,.35); box-shadow: var(--shadow); }
.need:hover::after { transform: translateX(4px); }
.need-ico {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wood-soft); color: var(--wood); font-size: .9rem; font-weight: 700;
}
.need-urgent .need-ico { background: #F4E1DE; color: var(--danger); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

.hero-figure { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.hero-figure .photo { box-shadow: 0 30px 60px -30px rgba(14,59,67,.55); }
.hero-figure::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--radius-lg); z-index: -1;
}
.hero-card {
  position: relative; margin: -2.5rem 1rem 0 auto; z-index: 2; width: min(330px, 88%);
  background: var(--paper); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow);
  display: grid; gap: .2rem;
}
.hero-card-name { font-family: var(--serif); font-size: 1.25rem; color: var(--heading); }
.hero-card-role { font-size: .86rem; color: var(--ink-mute); line-height: 1.4; }

/* --- Secciones genéricas --- */
.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* --- Proceso --- */
.process { background: var(--paper); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; display: grid; gap: 1px; margin-top: 2.5rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--paper); padding: 1.6rem 1.4rem 1.8rem; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.step h3 { font-size: 1.45rem; margin-top: .6rem; color: var(--heading); }
.step p { color: var(--ink-soft); margin-top: .5rem; font-size: .98rem; }

/* --- Tratamientos --- */
.t-grid { display: grid; gap: 1rem; }
.t-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(184,151,90,.55); }
.t-card h3 { font-size: 1.5rem; color: var(--heading); }
.t-card p { color: var(--ink-soft); font-size: .98rem; }
.t-link { margin-top: auto; padding-top: .4rem; font-weight: 600; color: var(--heading); text-decoration: none; display: inline-flex; gap: .4rem; min-height: 44px; align-items: center; }
.t-link span { transition: transform .35s var(--ease-out); color: var(--gold); }
.t-link:hover span { transform: translateX(4px); }
.t-feature { padding: 0; overflow: hidden; }
.t-feature .photo { border-radius: 0; }
.t-feature .t-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.t-feature h3 { font-size: 2rem; }
.t-tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wood); font-weight: 600; }

/* --- Materiales --- */
.materials { background: var(--petrol); color: var(--bg); position: relative; }
.materials .h2 { color: var(--bg); }
.materials .h2 em { color: var(--gold-soft); }
.materials-grid { display: grid; gap: 2.5rem; }
.compare { display: grid; gap: 1px; background: rgba(245,247,246,.14); border: 1px solid rgba(245,247,246,.14); border-radius: var(--radius-lg); overflow: hidden; }
.compare-col { background: var(--petrol); padding: 1.6rem 1.4rem; }
.compare-col h3 { font-size: 2rem; color: var(--bg); }
.compare-sub { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); margin-top: .2rem; }
.compare-col ul { margin-top: 1rem; padding-left: 1.1rem; display: grid; gap: .45rem; color: rgba(245,247,246,.85); }
.compare-col li::marker { color: var(--gold); }
.compare-note { background: var(--petrol-2); padding: .9rem 1.4rem; font-size: .85rem; color: rgba(245,247,246,.65); }

/* --- Doctor --- */
.doctor-grid { display: grid; gap: 2.5rem; align-items: center; }
.doctor-role { font-weight: 600; color: var(--wood); margin: .8rem 0 1rem; }
.doctor-copy > p:not(.eyebrow):not(.doctor-role) { color: var(--ink-soft); max-width: 52ch; }
.doctor-links { margin-top: 1.6rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* --- Caso real --- */
.case-steps { list-style: none; padding: 0; display: grid; gap: 1.6rem; counter-reset: none; }
.case-step { position: relative; }
.photo-case { aspect-ratio: 4 / 5; box-shadow: 0 24px 48px -28px rgba(14,59,67,.5); }
.case-n { display: block; margin-top: 1.1rem; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.case-step h3 { font-size: 1.6rem; color: var(--heading); margin-top: .2rem; }
.case-step p { color: var(--ink-soft); margin-top: .4rem; font-size: .98rem; max-width: 34ch; }
.case-note { margin-top: 2rem; font-size: .86rem; color: var(--ink-mute); max-width: 60ch; }
.case-cta { margin-top: 1.4rem; }

/* --- Equipo --- */
.team { background: var(--wood-soft); }
.team-grid { display: grid; gap: 2.5rem; align-items: center; }
.photo-team { aspect-ratio: 3 / 2; box-shadow: 0 30px 60px -30px rgba(14,59,67,.5); }
.team-photo figcaption { margin-top: .8rem; font-size: .86rem; color: var(--ink-mute); font-style: italic; font-family: var(--serif); }
.team-copy .lead { color: var(--ink-soft); }
.team-list { list-style: none; padding: 0; margin-top: 1.8rem; border-top: 1px solid rgba(138,106,79,.3); }
.team-list li { display: grid; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid rgba(138,106,79,.3); }
.team-name { font-family: var(--serif); font-size: 1.35rem; color: var(--heading); }
.team-role { font-size: .92rem; color: var(--wood); font-weight: 600; }
.team-role a { color: var(--heading); }

/* --- Lo que no se ve --- */
.quality { background: var(--petrol-2); color: var(--bg); }
.quality .h2 { color: var(--bg); }
.quality .h2 em { color: var(--gold-soft); }
.quality .eyebrow { color: var(--gold-soft); }
.quality-grid { display: grid; gap: 2.5rem; }
.quality-list { list-style: none; padding: 0; display: grid; gap: 1px; background: rgba(245,247,246,.12); border: 1px solid rgba(245,247,246,.12); border-radius: var(--radius-lg); overflow: hidden; }
.quality-list li { background: var(--petrol-2); padding: 1.5rem 1.4rem; }
.quality-list h3 { font-size: 1.4rem; color: var(--bg); }
.quality-list p { color: rgba(245,247,246,.75); margin-top: .45rem; font-size: .98rem; }

/* --- Aprende --- */
.learn-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.2rem; }
.learn-grid { list-style: none; padding: 0; display: grid; gap: 1rem; }
.learn-card {
  display: flex; flex-direction: column; gap: .7rem; height: 100%; min-height: 190px; padding: 1.4rem;
  border-radius: var(--radius-lg); text-decoration: none; color: var(--bg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(184,151,90,.28), transparent 55%),
    linear-gradient(160deg, var(--petrol-3), var(--petrol));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.learn-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(14,59,67,.7); }
.learn-tag { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.learn-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.learn-play { margin-top: auto; font-weight: 600; font-size: .9rem; color: rgba(245,247,246,.85); }

/* --- WhatsApp flotante (solo escritorio) --- */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 45; display: none; align-items: center; gap: .6rem;
  padding: .75rem 1.15rem .75rem .85rem; border-radius: 999px; background: var(--wa); color: #fff;
  text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: 0 14px 30px -12px rgba(31,122,77,.7);
  transition: transform .35s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }

/* --- FAQ --- */
.faq { background: var(--paper); border-block: 1px solid var(--line); }
.faq-grid { display: grid; gap: 2.5rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.2rem 0; font-family: var(--serif); font-size: 1.3rem; color: var(--heading); min-height: 56px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--sans); color: var(--gold); font-size: 1.5rem; transition: transform .35s var(--ease-out); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.3rem; color: var(--ink-soft); max-width: 62ch; }

/* --- Contacto --- */
.contact-grid { display: grid; gap: 2rem; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-list dt { color: var(--ink-mute); font-size: .92rem; }
.contact-list dd { font-weight: 600; color: var(--heading); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- CTA final --- */
.final {
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(184,151,90,.28), transparent 60%),
    linear-gradient(170deg, var(--petrol-3), var(--petrol-2));
  color: var(--bg); padding-block: clamp(4.5rem, 10vw, 7.5rem); text-align: center;
}
.final-inner { display: grid; justify-items: center; gap: 1.2rem; }
.final-title { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16ch; }
.final-title em { color: var(--gold-soft); }
.final p { color: rgba(245,247,246,.78); max-width: 40ch; }
.final .btn { margin-top: .6rem; }

/* --- Footer --- */
.footer { background: var(--petrol-2); color: rgba(245,247,246,.7); padding-block: 2.5rem 6.5rem; font-size: .9rem; }
.footer .brand-name { color: var(--bg); }
.footer .brand-name em { color: var(--gold-soft); }
.footer-inner { display: grid; gap: .6rem; }
.footer a { color: rgba(245,247,246,.9); }

/* --- Barra móvil --- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--nav-bg-2); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) { .mobile-bar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 48px; }

/* =============================================================
   Flujo de cita
   ============================================================= */
.flow {
  border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: var(--bg); color: var(--ink);
}
.flow::backdrop { background: rgba(10,45,51,.55); }
.flow[open] { animation: flowIn .45s var(--ease-out); }
@keyframes flowIn { from { opacity: 0; transform: translateY(24px); } }
.flow-inner { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); }
.flow-head { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: .5rem; padding-block: 1.1rem .8rem; }
.flow-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); }
.flow-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s var(--ease-out); }
.flow-step-label { font-size: .82rem; color: var(--ink-mute); letter-spacing: .06em; flex: 1; text-align: center; }
.flow-back, .flow-close { width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; color: var(--heading); display: grid; place-items: center; }
.flow-back:hover, .flow-close:hover { background: rgba(14,59,67,.06); }
.flow-close { margin-left: auto; }
.flow-back[hidden] + .flow-step-label { padding-left: 44px; }
.flow-step { padding-top: .5rem; animation: stepIn .4s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.flow-title { font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--heading); margin-bottom: 1.3rem; max-width: 18ch; }
.flow-step > p { color: var(--ink-soft); margin-bottom: 1rem; }

.options { display: grid; gap: .55rem; }
.options-grid { grid-template-columns: 1fr 1fr; }
.options-row { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; min-height: 56px; padding: .8rem 1.1rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); font-weight: 500;
  transition: border-color .2s, background-color .2s, box-shadow .3s var(--ease-out);
}
.opt-sm span { min-height: 48px; justify-content: center; padding-inline: .5rem; }
.opt:hover span { border-color: rgba(14,59,67,.35); }
.opt input:checked + span { border-color: var(--heading); background: rgba(14,59,67,.06); box-shadow: inset 0 0 0 1px var(--petrol); }
.opt input:focus-visible + span { outline: 2px solid var(--petrol-3); outline-offset: 2px; }

.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; border: 0; padding: 0; }
.field > span, .field legend { font-size: .92rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; }
.field input[type="text"] {
  width: 100%; min-height: 54px; padding: .8rem 1rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(23,41,45,.22); border-radius: var(--radius);
}
.field input[type="text"]:focus { outline: 2px solid var(--petrol-3); outline-offset: 1px; border-color: transparent; }
.field-inline { margin-top: 1rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .9rem; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: .1rem; flex: none; accent-color: var(--heading); }
.check a { color: var(--heading); }
.flow-actions { display: grid; gap: .6rem; margin-top: 1.4rem; }
.flow-error { color: var(--danger); font-weight: 600; font-size: .95rem; margin-top: .4rem; }
.alarm-list { padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--ink-soft); }
.alarm-list li::marker { color: var(--danger); }

.summary { display: grid; border-top: 1px solid var(--line); margin-bottom: .5rem; }
.summary > div { display: grid; gap: .1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.summary dt { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.summary dd { font-weight: 600; color: var(--heading); }
.done-check { width: 64px; height: 64px; color: var(--wa); margin: 1rem 0 1.2rem; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Paso "lo que conviene saber" */
.info-tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--wood); margin-bottom: .6rem; }
.info-lead { color: var(--ink-soft); font-size: 1.05rem; margin: -.4rem 0 1.2rem; }
.info-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.info-list li {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); font-weight: 500;
}
.info-list li::before { content: "✦"; color: var(--gold); flex: none; }

/* Diccionario de tu sonrisa */
.glossary { margin-top: clamp(3rem, 7vw, 5rem); }
.glossary-grid { display: grid; gap: 1px; background: rgba(245,247,246,.14); border: 1px solid rgba(245,247,246,.14); border-radius: var(--radius-lg); overflow: hidden; }
.glossary-grid > div { background: var(--petrol); padding: 1.3rem 1.4rem; }
.glossary-grid dt { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-soft); }
.glossary-grid dd { margin: .35rem 0 0; color: rgba(245,247,246,.82); font-size: .96rem; }

/* Cabecera: acciones y cambio de tema */
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--heading); border: 1px solid var(--line); transition: background-color .25s, transform .35s var(--ease-out); }
.theme-toggle:hover { background: rgba(127,127,127,.08); transform: rotate(-12deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

/* Comparador antes / después */
.ba-grid { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 7vw, 4.5rem); }
.ba { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 48px -28px rgba(14,59,67,.55); background: #000; user-select: none; touch-action: pan-y; }
.ba-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ba-after { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--petrol); font-weight: 700; letter-spacing: .1em; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: .9rem; padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(10,28,32,.6); color: #fff; pointer-events: none; }
.ba-label-l { left: .9rem; }
.ba-label-r { right: .9rem; background: rgba(184,151,90,.85); color: var(--petrol-2); }
.ba figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1.1rem .9rem; color: #fff; font-family: var(--serif); font-size: 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.case-sub { font-size: 1.6rem; color: var(--heading); margin-bottom: 1.4rem; }

/* Isla de navegación (móvil) */
.island-wrap {
  position: fixed; z-index: 45; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(440px, calc(100% - 20px));
  display: grid; gap: .5rem;
}
.island-panel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; padding: .6rem;
  border-radius: 22px; background: #0A2025; border: 1px solid rgba(184,151,90,.28);
  box-shadow: 0 18px 40px -14px rgba(5,15,18,.7);
  transform-origin: bottom center; animation: panelIn .35s var(--ease-out);
}
.island-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.island-panel a {
  display: grid; justify-items: center; gap: .3rem; padding: .7rem .2rem; border-radius: 14px;
  color: rgba(245,247,246,.85); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.island-panel a:hover, .island-panel a:active { background: rgba(184,151,90,.14); color: var(--gold-soft); }
.island-panel svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.island-panel circle[r=".6"], .island circle[r="1.4"] { fill: currentColor; }
.island {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: .45rem .4rem; border-radius: 26px;
  background: rgba(8,26,30,.9); border: 1px solid rgba(184,151,90,.28);
  box-shadow: 0 18px 40px -14px rgba(5,15,18,.7);
  transition: transform .45s var(--ease-out), opacity .3s;
}
@supports (backdrop-filter: blur(10px)) { .island { background: rgba(8,26,30,.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); } }
.island a, .island button {
  display: grid; justify-items: center; gap: .15rem; padding: .35rem .1rem; border-radius: 16px;
  color: rgba(245,247,246,.72); text-decoration: none; font-size: .66rem; font-weight: 600; letter-spacing: .02em;
  transition: color .25s, background-color .25s;
}
.island svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.island button[aria-expanded="true"] { color: var(--gold-soft); background: rgba(184,151,90,.14); }
.island a.is-active, .island a[aria-current="page"] { color: var(--gold-soft); background: rgba(184,151,90,.14); }
.island .island-cta { color: var(--petrol-2); background: var(--gold); margin-top: -18px; padding: .55rem .1rem .4rem; border-radius: 18px; box-shadow: 0 10px 22px -8px rgba(184,151,90,.7); }
.island .island-cta svg { width: 24px; height: 24px; }

/* Página de casos */
.page-hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) 0; }
.page-title { font-size: clamp(2.6rem, 8vw, 4.8rem); line-height: 1; color: var(--heading); max-width: 14ch; }
.page-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.page-tabs a { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--ghost-line); color: var(--heading); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background-color .25s; }
.page-tabs a:hover { background: rgba(127,127,127,.08); }
.teaser-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.2rem; }
a.video-card { text-decoration: none; }

/* Galería de videos (portadas de Instagram) */
.reel-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.reel-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16; background: var(--petrol-2); text-decoration: none; }
.reel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.reel-card:hover img { transform: scale(1.05); }
.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(5,15,18,.85)); }
.reel-title { position: absolute; z-index: 1; left: .8rem; right: .8rem; bottom: .75rem; color: #fff; font-family: var(--serif); font-size: 1.05rem; line-height: 1.15; }
.learn-card.has-cover { padding: 0; overflow: hidden; gap: 0; }
.learn-card.has-cover .learn-cover { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.learn-card.has-cover .learn-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease-out); }
.learn-card.has-cover:hover .learn-cover img { transform: scale(1.05); }
.learn-card.has-cover .learn-tag { padding: 1rem 1.2rem 0; }
.learn-card.has-cover .learn-title { padding: .3rem 1.2rem 0; }
.learn-card.has-cover .learn-play { padding: .8rem 1.2rem 1.1rem; }
.story-card.has-thumb { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto 1fr; column-gap: 1rem; }
.story-thumb { grid-row: 1 / 4; width: 76px; height: 120px; object-fit: cover; border-radius: 10px; }

/* Iconos de redes */
.socials { display: flex; gap: .55rem; flex-wrap: wrap; }
.social {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(245,247,246,.25); color: rgba(245,247,246,.9); transition: background-color .25s, color .25s, transform .35s var(--ease-out);
}
.social:hover { background: var(--gold); color: var(--petrol-2); transform: translateY(-2px); border-color: var(--gold); }
.social svg { width: 20px; height: 20px; }
.social-inline { display: inline-flex; gap: .45rem; vertical-align: middle; margin-left: .2rem; }
.social-inline a { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); color: var(--heading); transition: background-color .25s, color .25s; }
.social-inline a:hover { background: var(--gold); color: var(--petrol-2); }
.social-inline svg { width: 14px; height: 14px; }

/* Caso destacado */
.feature-case { display: grid; gap: 1.4rem; margin-bottom: 1.4rem; }
.ba-big .ba-img { aspect-ratio: 16 / 10; }
.feature-title { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--heading); margin-top: .3rem; }
.feature-title em { color: var(--accent-em); }
.feature-text { color: var(--ink-soft); margin-top: .5rem; }
.feature-strip { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.feature-strip .photo { aspect-ratio: 1; border-radius: var(--radius); }
.video-card {
  position: relative; display: block; width: 100%; margin-top: .8rem; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; cursor: pointer; background: var(--petrol-2); text-align: left;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .6s var(--ease-out); }
.video-card:hover img { transform: scale(1.04); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,28,32,.75)); }
.video-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: var(--gold); color: var(--petrol-2); font-size: 1.3rem; box-shadow: 0 0 0 10px rgba(184,151,90,.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(184,151,90,0); } }
.video-label { position: absolute; z-index: 1; left: 1rem; bottom: .8rem; color: #fff; font-family: var(--serif); font-size: 1.15rem; }
.video-modal { margin: auto; border: 0; padding: 0; background: #000; border-radius: var(--radius-lg); max-width: min(420px, 92vw); max-height: 92vh; overflow: hidden; }
.video-modal::backdrop { background: rgba(5,15,18,.85); }
.video-modal video { display: block; width: 100%; max-height: 88vh; }
.video-close { position: absolute; z-index: 2; top: .5rem; right: .5rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; }

/* Logo real (máscaras: toman el color que se les dé) */
.logo-mark, .logo-word, .logo-full { display: inline-block; background-color: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo-mark { --m: url("assets/img/logo-mark.webp?v=20261006"); width: 46px; height: 35px; color: var(--gold); }
.logo-word { --m: url("assets/img/logo-word.webp?v=20261006"); width: 132px; height: 17px; color: var(--heading); }
.logo-full { --m: url("assets/img/logo-full.webp?v=20261006"); width: 150px; height: 140px; color: var(--gold-soft); }
.brand { gap: .65rem; }

/* Ubicación */
.visit-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 520px; width: 100%; }
.visit-photos .photo { aspect-ratio: 4 / 5; box-shadow: 0 24px 48px -26px rgba(14,59,67,.55); }
.visit-inside { margin-top: 2.6rem; }
.visit-badge {
  position: absolute; z-index: 3; left: .9rem; top: .9rem; white-space: nowrap;
  padding: .55rem 1.1rem; border-radius: 999px; background: var(--petrol); color: var(--gold-soft);
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; box-shadow: var(--shadow);
}
.visit-address { font-style: normal; color: var(--ink-soft); margin-top: 1.2rem; line-height: 1.7; }
.visit-place { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--heading); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.map-box { margin-top: 1.4rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; border: 1px solid var(--line); background:
  linear-gradient(rgba(14,59,67,.04) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(14,59,67,.04) 1px, transparent 1px) 0 0 / 28px 28px, var(--paper); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-load { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: .6rem; color: var(--heading); font-weight: 600; }
.map-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); box-shadow: 0 0 0 8px rgba(184,151,90,.18); }

/* Contacto con foto */
.contact-photo { max-width: 420px; width: 100%; box-shadow: 0 30px 60px -30px rgba(14,59,67,.55); }
.contact-body .contact-list { margin-top: 1.6rem; }
.contact-cta { margin-top: 1.6rem; }

/* Historias de pacientes */
.stories { background: var(--paper); border-block: 1px solid var(--line); }
.stories-grid { display: grid; gap: 1.2rem; }
.story-feature { display: grid; gap: 1.2rem; }
.story-photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: .6rem; }
.story-main { grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.story-side { aspect-ratio: auto; min-height: 120px; }
.story-name { font-family: var(--serif); font-size: 1.7rem; color: var(--heading); }
.story-text { color: var(--ink-soft); margin-top: .4rem; max-width: 46ch; }
.story-list { display: grid; gap: 1rem; align-content: start; }
.story-card {
  display: flex; flex-direction: column; gap: .2rem; padding: 1.4rem; border-radius: var(--radius-lg); text-decoration: none;
  background: var(--bg); border: 1px solid var(--line); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(184,151,90,.55); }
.story-card .learn-play { color: var(--wood); margin-top: .8rem; }
[data-theme="dark"] .story-card .learn-play { color: var(--gold-soft); }

/* Página de historia */
.history-hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem); }
.history-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.history-title { font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; color: var(--heading); max-width: 13ch; }
.history-hero-photo { max-width: 420px; width: 100%; justify-self: center; box-shadow: 0 30px 60px -30px rgba(14,59,67,.55); }
.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: 2.6rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 1px; background: linear-gradient(var(--gold), rgba(184,151,90,.15)); }
.tl-item { position: relative; padding-left: 2.4rem; display: grid; gap: .5rem; }
.tl-item::before { content: ""; position: absolute; left: 0; top: .55rem; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.tl-year { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent-em); }
.tl-body h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--heading); }
.tl-body p { color: var(--ink-soft); margin-top: .5rem; max-width: 52ch; }
.tl-with-photo { display: grid; gap: 1.2rem; }
.tl-photo { aspect-ratio: 4 / 5; max-width: 280px; }
.tl-photo-wide { aspect-ratio: 3 / 2; max-width: 460px; }

/* Otros */
.final-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.doctor-team { margin-top: 1.4rem; }
.team-list li.person { display: flex; align-items: center; gap: 1rem; }
.avatar { width: 84px; height: 84px; object-position: center 25%; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); padding: 2px; background: var(--bg); }
.person-txt { display: grid; gap: .15rem; }
.step h3 { margin-top: .4rem; }

/* =============================================================
   7. Efectos
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .needs { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .t-feature { grid-column: 1 / -1; }
  .case-steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .learn-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .flow { width: min(600px, 94vw); height: fit-content; max-height: 92vh; margin: auto; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(10,45,51,.6); }
  .flow-inner { min-height: 0; padding-inline: 2rem; padding-bottom: 2rem; }
  .flow-actions { grid-template-columns: auto auto; justify-content: start; }
  .compare { grid-template-columns: 1fr 1fr; }
  .glossary-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .reel-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .mobile-bar { display: none; }
  .island-wrap { display: none; }
  .footer { padding-bottom: 2.5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero-figure { justify-self: end; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .glossary-grid { grid-template-columns: repeat(3, 1fr); }
  .stories-grid { grid-template-columns: 1.7fr 1fr; gap: 2rem; }
  .reel-grid { grid-template-columns: repeat(5, 1fr); }
  .feature-case { grid-template-columns: 1.5fr 1fr; gap: 2.2rem; align-items: center; margin-bottom: 2.2rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .map-box { aspect-ratio: 16 / 7; }
  .history-hero-grid { grid-template-columns: 1.2fr .8fr; gap: 4rem; }
  .timeline { max-width: 980px; }
  .tl-item { grid-template-columns: 9rem 1fr; gap: 2rem; padding-left: 3rem; }
  .tl-with-photo { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
  .tl-photo { width: 220px; }
  .tl-photo-wide { width: 340px; }
  .story-feature { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem; }
  .t-grid { grid-template-columns: repeat(3, 1fr); }
  .t-feature { grid-column: span 2; grid-row: span 2; }
  .materials-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
  .doctor-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
  .case-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .quality-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
  .quality-list { grid-template-columns: 1fr 1fr; }
  .learn-grid { grid-template-columns: repeat(3, 1fr); }
  .wa-float { display: inline-flex; }
  .team-grid { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1280px) {
  .t-grid { grid-template-columns: repeat(4, 1fr); }
  .t-feature { grid-column: span 2; grid-row: span 2; }
}

/* =============================================================
   9. Movimiento reducido (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   10. Modo oscuro
   ============================================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:         #0A1C20;
  --paper:      #10272C;
  --ink:        #E6EEEC;
  --ink-soft:   #B9C8C6;
  --ink-mute:   #8EA2A1;
  --line:       rgba(230,238,236,.12);
  --wood-soft:  #142A2B;
  --heading:    #EAF2EF;
  --nav-bg:     rgba(10,28,32,.82);
  --nav-bg-2:   rgba(10,28,32,.95);
  --ghost-line: rgba(230,238,236,.3);
  --accent-em:  #D9C49B;
  --shadow:     0 1px 2px rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.6);
}
[data-theme="dark"] .btn-primary { background: var(--gold); color: var(--petrol-2); box-shadow: 0 10px 24px -12px rgba(184,151,90,.5); }
[data-theme="dark"] .btn-primary:hover { background: var(--gold-soft); }
[data-theme="dark"] .eyebrow { color: var(--gold-soft); }
[data-theme="dark"] .need-ico { background: rgba(184,151,90,.16); color: var(--gold-soft); }
[data-theme="dark"] .need-urgent .need-ico { background: rgba(163,52,43,.25); color: #F0A39B; }
[data-theme="dark"] .materials,
[data-theme="dark"] .compare-col,
[data-theme="dark"] .glossary-grid > div { background: #0D3036; }
[data-theme="dark"] .quality,
[data-theme="dark"] .quality-list li { background: #071518; }
[data-theme="dark"] .t-tag, [data-theme="dark"] .info-tag, [data-theme="dark"] .doctor-role, [data-theme="dark"] .team-role { color: var(--gold-soft); }
[data-theme="dark"] .opt input:checked + span { border-color: var(--gold); background: rgba(184,151,90,.1); box-shadow: inset 0 0 0 1px var(--gold); }
[data-theme="dark"] .field input[type="text"] { border-color: rgba(230,238,236,.22); }
[data-theme="dark"] .hero-figure::before { border-color: rgba(184,151,90,.6); }
[data-theme="dark"] .team-list, [data-theme="dark"] .team-list li { border-color: var(--line); }
[data-theme="dark"] .photo img { filter: brightness(.94); }