/* ============================================================
   DUXORA SOLUTIONS · Portfolio de webs para clínicas
   clinicportfolio.duxora.es
   ------------------------------------------------------------
   Estructura idéntica a inmoportfolio.duxora.es (el equivalente
   inmobiliario): mismos tokens de layout, mismo patrón de
   secciones. Solo cambian los acentos por producto y se añade
   el componente panel-mock (dashboard ilustrativo, no capturas).
   ------------------------------------------------------------
   01 · TOKENS
   02 · RESET / BASE
   03 · TIPOGRAFÍA
   04 · LAYOUT / UTILIDADES
   05 · HEADER + NAV
   06 · HERO
   07 · RAIL DE ÍNDICE
   08 · TESIS
   09 · PRODUCTOS
   10 · PANEL-MOCK (dashboard ilustrativo)
   11 · PANEL DUXORA (sección transversal)
   12 · MÉTODO
   13 · COMPARATIVA
   14 · CTA FINAL
   15 · FOOTER
   16 · WHATSAPP FLOTANTE
   17 · REVELADO / MOVIMIENTO
   18 · RESPONSIVE
   ============================================================ */

/* ---------- 01 · TOKENS ------------------------------------ */
:root {
  --ink:        #0E0F13;
  --ink-2:      #15171D;
  --ink-3:      #1D2029;
  --bone:       #F2EFE7;
  --bone-2:     #E9E3D5;
  --text-hi:    #F3F0E8;
  --text-lo:    #A7A296;
  --text-ink:   #1A1C21;
  --text-ink-lo:#6B665A;
  --brass:      #C6A15B;
  --brass-deep: #A6823E;
  --line-dark:  rgba(243, 240, 232, .13);
  --line-light: rgba(26, 28, 33, .14);

  /* acento por producto (misma paleta que su propia web) */
  --lumina:      #caa15a;
  --lumina-dot:  #caa15a;
  --esmalte:     #4f7cac;
  --esmalte-dot: #4f7cac;
  --fauna:       #b2603a;
  --fauna-dot:   #b2603a;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap:  1180px;
  --pad:   clamp(20px, 5vw, 64px);
  --sect:  clamp(72px, 12vh, 132px);
  --radius: 14px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 02 · RESET / BASE ----------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text-hi);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--brass); color: #17130a; }

/* ---------- 03 · TIPOGRAFÍA ------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
.kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass);
  opacity: .7;
}
.h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--text-lo);
  max-width: 46ch;
  line-height: 1.55;
}
.serif-i { font-family: var(--font-display); font-style: italic; }

/* ---------- 04 · LAYOUT / UTILIDADES ---------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
:where(section, article)[id] { scroll-margin-top: 84px; }
.section { padding-block: var(--sect); position: relative; }
.section--light { background: var(--bone); color: var(--text-ink); }
.section--light .lead { color: var(--text-ink-lo); }
.section--light .kicker { color: var(--brass-deep); }
.section--light .kicker::before { background: var(--brass-deep); }
.section-head { max-width: 760px; margin-bottom: clamp(38px, 6vw, 64px); }
.section-head .h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; }

.btn {
  --bg: var(--brass);
  --fg: #17130a;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .92em 1.5em;
  background: var(--bg);
  color: var(--fg);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--text-hi);
  border-color: var(--line-dark);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.section--light .btn--ghost { --fg: var(--text-ink); border-color: var(--line-light); }
.section--light .btn--ghost:hover { color: var(--brass-deep); border-color: var(--brass-deep); }
.btn--dark { --bg: var(--ink); --fg: var(--text-hi); }

.mono { font-family: var(--font-mono); }
.eyebrow-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--text-lo);
}
.section--light .eyebrow-num { color: var(--text-ink-lo); }

/* ---------- 05 · HEADER + NAV ---------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 66px;
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(14, 15, 19, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand {
  display: flex;
  align-items: baseline;
  gap: .5em;
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: .01em;
  font-weight: 600;
}
.brand span {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  transform: translateY(-1px);
}
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  font-size: .82rem;
  color: var(--text-lo);
  transition: color .25s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--text-hi); }
.nav > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width .3s var(--ease);
}
.nav > a:not(.btn):hover::after { width: 100%; }
.nav-only-mobile { display: none; }
.header-cta { display: inline-flex; }

.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px; height: 1.5px;
  background: var(--text-hi);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 06 · HERO ----------------------------------- */
.hero { padding-top: clamp(130px, 22vh, 220px); padding-bottom: var(--sect); position: relative; }
.hero::after {
  content: "";
  position: absolute;
  left: 50%; top: -10%;
  width: min(1200px, 120vw); height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(198,161,91,.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .h1 { margin-top: 26px; max-width: 20ch; }
.hero .h1 em { color: var(--brass); font-style: italic; }
.hero .lead { margin-top: 26px; max-width: 52ch; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-index {
  margin-top: clamp(56px, 9vw, 96px);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-index a {
  padding: 26px 22px 26px 0;
  border-right: 1px solid var(--line-dark);
  display: block;
  transition: background .3s var(--ease);
}
.hero-index a:last-child { border-right: 0; }
.hero-index a:hover { background: rgba(243,240,232,.03); }
.hero-index .hi-num { font-family: var(--font-mono); font-size: .72rem; color: var(--brass); }
.hero-index .hi-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 12px;
  display: flex; align-items: center; gap: .5em;
}
.hero-index .hi-seg { color: var(--text-lo); font-size: .82rem; margin-top: 6px; display: block; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); flex: none; }
.dot--lumina { background: var(--lumina-dot); }
.dot--esmalte { background: var(--esmalte-dot); }
.dot--fauna { background: var(--fauna-dot); }

/* ---------- 07 · RAIL DE ÍNDICE ------------------------- */
.rail {
  position: fixed;
  left: 26px; top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 14px;
}
.rail a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-lo);
  opacity: .5;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.rail a i {
  width: 18px; height: 1px; background: currentColor;
  transition: width .3s var(--ease);
  display: inline-block;
}
.rail a.is-active { opacity: 1; color: var(--brass); }
.rail a.is-active i { width: 34px; }
.rail a:hover { opacity: 1; }

/* ---------- 08 · TESIS --------------------------------- */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.thesis-card { background: var(--bone); padding: clamp(26px, 3vw, 40px); }
.thesis-card h3 { font-size: 1.32rem; margin: 16px 0 10px; }
.thesis-card p { color: var(--text-ink-lo); font-size: .95rem; }
.thesis-card .ico {
  width: 34px; height: 34px;
  color: var(--brass-deep);
}

/* ---------- 09 · PRODUCTOS ----------------------------- */
.products { background: var(--ink); }
.product {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line-dark);
}
.product:first-of-type { border-top: 0; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.product:nth-of-type(even) .product-visual { order: -1; }

.product-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-lo);
  display: flex; align-items: center; gap: .7em;
}
.product h3 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  margin: 18px 0 4px;
}
.product .by { font-family: var(--font-mono); font-size: .74rem; color: var(--text-lo); letter-spacing: .06em; }
.product .desc { margin-top: 20px; color: var(--text-lo); max-width: 44ch; }
.product .desc strong { color: var(--text-hi); font-weight: 600; }

.for-who {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.for-who dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.for-who dd { color: var(--text-lo); font-size: .92rem; }

.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  padding: 5px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--text-lo);
}

.spec {
  margin-top: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  overflow: hidden;
}
.spec div {
  display: grid;
  grid-template-columns: 120px 1fr;
  font-size: .82rem;
  border-top: 1px solid var(--line-dark);
}
.spec div:first-child { border-top: 0; }
.spec dt {
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-lo);
  background: rgba(243,240,232,.02);
}
.spec dd { padding: 11px 14px; color: var(--text-hi); }

.product-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cred {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-lo);
  border: 1px dashed var(--line-dark);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cred b { color: var(--brass); font-weight: 500; }
.cred button {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-lo);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 3px 7px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cred button:hover { color: var(--brass); border-color: var(--brass); }

/* marco navegador (contiene una imagen real o un panel-mock) */
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.frame:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -40px rgba(0,0,0,.8); }
.frame__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink-3);
}
.frame__dots { display: flex; gap: 6px; }
.frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(243,240,232,.16); }
.frame__url {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-lo);
  background: rgba(0,0,0,.25);
  border-radius: 6px;
  padding: 4px 10px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frame img { width: 100%; height: auto; display: block; aspect-ratio: 16/10; object-fit: cover; }
.frame--panel { margin-top: 18px; margin-left: auto; width: 82%; }
.frame--panel .frame__url::before { content: "🔒 "; }

.visual-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-lo);
  letter-spacing: .04em;
  text-align: right;
}

/* ---------- 10 · PANEL-MOCK (dashboard ilustrativo) ----- */
/* No son capturas reales: es una representación estilizada del panel,
   dibujada con CSS, en el acento de cada producto — honesto sobre lo
   que es, sin fingir ser una fotografía de pantalla. */
.panel-mock {
  aspect-ratio: 16/10;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%),
    var(--ink-2);
}
.panel-mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.panel-mock__kpi { background: rgba(243,240,232,.04); border: 1px solid var(--line-dark); border-radius: 8px; padding: 8px 10px; }
.panel-mock__kpi span { display: block; }
.panel-mock__kpi .l { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-lo); }
.panel-mock__kpi .v { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-hi); margin-top: 3px; }
.panel-mock__chart {
  flex: 1;
  background: rgba(243,240,232,.03);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 10px;
}
.panel-mock__chart i {
  flex: 1;
  background: linear-gradient(180deg, var(--mock-accent, var(--brass)), transparent);
  opacity: .85;
  border-radius: 3px 3px 0 0;
}
.panel-mock__rows { display: flex; flex-direction: column; gap: 5px; }
.panel-mock__row { display: flex; align-items: center; gap: 8px; }
.panel-mock__row .dot-sm { width: 6px; height: 6px; border-radius: 50%; background: var(--mock-accent, var(--brass)); flex: none; }
.panel-mock__row .bar { flex: 1; height: 6px; border-radius: 4px; background: rgba(243,240,232,.06); overflow: hidden; }
.panel-mock__row .bar i { display: block; height: 100%; background: var(--mock-accent, var(--brass)); }
.panel-mock__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-lo);
  background: rgba(243,240,232,.05);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---------- 11 · PANEL DUXORA (sección transversal) ----- */
.panel-sect { background: var(--ink-2); border-block: 1px solid var(--line-dark); }
.panel-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: end;
}
.panel-feats { margin-top: clamp(34px, 5vw, 54px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.panel-feat { background: var(--ink-2); padding: 26px; }
.panel-feat .n { font-family: var(--font-mono); font-size: .72rem; color: var(--brass); }
.panel-feat h4 { font-size: 1.12rem; margin: 12px 0 8px; }
.panel-feat p { font-size: .88rem; color: var(--text-lo); }

.panel-shots {
  margin-top: clamp(34px, 5vw, 54px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.panel-shots .frame { box-shadow: 0 30px 60px -35px rgba(0,0,0,.7); }
.panel-shots figcaption {
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--text-lo);
  margin-top: 8px;
  letter-spacing: .04em;
}

/* ---------- 12 · MÉTODO -------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bone); padding: clamp(24px, 3vw, 36px); }
.step .n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brass-deep);
  line-height: 1;
}
.step h4 { font-size: 1.18rem; margin: 16px 0 10px; }
.step p { font-size: .9rem; color: var(--text-ink-lo); }

/* ---------- 13 · COMPARATIVA --------------------------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .86rem; }
table.compare th, table.compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
table.compare thead th {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-lo);
  background: var(--ink-2);
}
table.compare tbody th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-hi);
  white-space: nowrap;
}
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: 0; }
table.compare td { color: var(--text-lo); }
.compare-note { margin-top: 14px; font-size: .78rem; color: var(--text-lo); font-family: var(--font-mono); }

/* ---------- 14 · CTA FINAL ----------------------------- */
.cta-final { background: var(--bone); color: var(--text-ink); text-align: center; }
.cta-final .h2 { max-width: 20ch; margin-inline: auto; }
.cta-final p { color: var(--text-ink-lo); margin: 18px auto 34px; max-width: 44ch; }
.cta-final .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-final .btn--ghost { --fg: var(--text-ink); border-color: var(--line-light); }

/* ---------- 15 · FOOTER -------------------------------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding-block: clamp(48px, 7vw, 82px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { font-size: 1.5rem; }
.footer-brand p { color: var(--text-lo); font-size: .88rem; margin-top: 16px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--text-lo); font-size: .86rem; padding: 5px 0; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--text-hi); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-lo);
}
.footer-bottom a:hover { color: var(--brass); }

/* ---------- 16 · WHATSAPP FLOTANTE --------------------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.5);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- 17 · REVELADO / MOVIMIENTO ----------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- 18 · RESPONSIVE ---------------------------- */
@media (min-width: 1400px) { .rail { display: flex; } }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .product-visual { order: 0; }
  .thesis-grid, .steps, .panel-feats { grid-template-columns: 1fr; }
  .panel-lead-grid { grid-template-columns: 1fr; }
  .panel-shots { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-index { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 66px 0 0 0;
    flex-direction: column;
    background: rgba(14, 15, 19, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px var(--pad) 40px;
    gap: 0;
    margin-left: 0;
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav a { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav-only-mobile.btn { display: inline-flex; margin-top: 24px; align-self: flex-start; border: 0; padding: .95em 1.6em; }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-index a { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .spec div { grid-template-columns: 96px 1fr; }
}
