/* ============================================================
   DENTALEAD v2 — "Clinical Ink & Mint" Design System
   Mobile-first · CWV-safe · No external JS frameworks
   ============================================================ */

/* ─── TOKENS ─── */
:root {
  /* Ink (dark — quirófano, nunca negro) */
  --ink-950: #06181D;
  --ink-900: #082329;
  --ink-800: #0B2F36;
  --ink-700: #113D45;
  --ink-600: #175058;

  /* Mint (acento) */
  --mint-500: #2BD9B0;
  --mint-400: #4FE3C0;
  --mint-300: #8AF0D8;
  --mint-glow: rgba(43, 217, 176, 0.35);
  --mint-soft: rgba(43, 217, 176, 0.12);

  /* Gold (detalle premium) */
  --gold-400: #E2B96F;
  --gold-300: #F0D49E;

  /* Porcelain (light) */
  --porcelain-50: #FBFAF7;
  --bone-100: #F3EFE6;
  --stone-200: #E6E0D3;
  --stone-300: #D4CCBA;

  /* Texto */
  --t-on-dark: #F4F7F6;
  --t-on-dark-2: #B9CCC9;
  --t-on-dark-3: #7C9893;
  --t-on-light: #10282E;
  --t-on-light-2: #44605F;
  --t-on-light-3: #76908C;

  /* Semánticos */
  --green-ok: #19C37D;
  --red-soft: #E66A6A;

  /* Glass */
  --glass-6: rgba(255,255,255,0.06);
  --glass-10: rgba(255,255,255,0.10);
  --glass-16: rgba(255,255,255,0.16);

  /* Tipos */
  --f-display: 'Fraunces', Georgia, serif;
  --f-ui: 'Outfit', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Ritmo */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --sec-pad: clamp(72px, 12vw, 140px);
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --maxw-text: 720px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET / BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.65;
  background: var(--ink-950);
  color: var(--t-on-dark);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--mint-500); color: var(--ink-950); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 560; letter-spacing: -0.015em; line-height: 1.08; }
h4, h5, h6 { font-family: var(--f-ui); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 7.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); }

em.serif, .accent-i {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 480;
  color: var(--mint-300);
}
.sec-light em.serif, .sec-light .accent-i,
.sec-bone em.serif, .sec-bone .accent-i { color: var(--ink-700); }
.accent-gold { font-family: var(--f-display); font-style: italic; color: var(--gold-400); }

.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--mint-500); color: var(--ink-950);
  padding: 10px 18px; border-radius: 0 0 12px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--mint-500); outline-offset: 3px; border-radius: 4px; }

/* ─── LAYOUT HELPERS ─── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-text { max-width: var(--maxw-text); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

section, .sec { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); position: relative; }

/* Section surfaces */
.sec-dark { background: var(--ink-900); color: var(--t-on-dark); }
.sec-darker { background: var(--ink-950); color: var(--t-on-dark); }
.sec-light { background: var(--porcelain-50); color: var(--t-on-light); }
.sec-bone { background: var(--bone-100); color: var(--t-on-light); }
.sec-light p, .sec-bone p { color: var(--t-on-light-2); }
.sec-dark p, .sec-darker p { color: var(--t-on-dark-2); }

/* Soft seam between dark→light */
.seam-top { border-top: 1px solid rgba(16,40,46,0.06); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mint-500); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--mint-500); }
.sec-light .eyebrow, .sec-bone .eyebrow { color: var(--ink-600); }
.sec-light .eyebrow::before, .sec-bone .eyebrow::before { background: var(--mint-500); }

.sec-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head p { margin-top: 18px; font-size: clamp(1rem, 2vw, 1.15rem); }

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.45s var(--ease-smooth), box-shadow 0.45s, border-color 0.45s;
  border-bottom: 1px solid transparent;
}
#nav .nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 68px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
#nav.scrolled {
  background: rgba(6, 24, 29, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.nav-logo { display: flex; align-items: center; color: var(--t-on-dark); text-decoration: none; }
.nav-logo svg { height: 34px; width: auto; }
.nav-links { display: none; }
.nav-cta { display: none; }
@media (min-width: 920px) {
  .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
  .nav-links a {
    color: rgba(244,247,246,0.75); text-decoration: none; font-size: 0.92rem; font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--mint-300); }
  .nav-cta { display: inline-flex; }
}
.nav-lang {
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600;
  color: rgba(244,247,246,0.6); text-decoration: none;
  border: 1px solid var(--glass-16); border-radius: 999px; padding: 5px 12px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-lang:hover { color: var(--mint-300); border-color: var(--mint-500); }

.hamburger {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; align-items: center;
  background: transparent; border: none; cursor: pointer;
}
.hamburger span { width: 22px; height: 2px; background: var(--t-on-dark); border-radius: 2px; transition: transform 0.3s var(--ease-smooth), opacity 0.3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 920px) { .hamburger { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(6,24,29,0.97);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 100px var(--gutter) 60px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease-smooth);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--f-display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 520;
  color: var(--t-on-dark); text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid var(--glass-6);
  transform: translateY(16px); opacity: 0; transition: transform 0.45s var(--ease-smooth), opacity 0.45s, color 0.2s;
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu a:hover { color: var(--mint-300); }
.mobile-menu a:nth-child(2) { transition-delay: 0.04s; } .mobile-menu a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.12s; } .mobile-menu a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.20s; } .mobile-menu a:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu .mm-cta { border: none; margin-top: 18px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-ui); font-weight: 600; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  border: none; cursor: pointer; line-height: 1;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.25s, color 0.25s;
  min-height: 48px;
}
.btn .arr { transition: transform 0.25s var(--ease-spring); }
.btn:hover .arr { transform: translateX(4px); }
.btn-mint {
  background: var(--mint-500); color: var(--ink-950);
  box-shadow: 0 8px 28px -8px var(--mint-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-mint:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px var(--mint-glow); background: var(--mint-400); }
.btn-ghost {
  background: var(--glass-6); color: var(--t-on-dark);
  border: 1px solid var(--glass-16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--mint-500); color: var(--mint-300); transform: translateY(-2px); }
.sec-light .btn-ghost, .sec-bone .btn-ghost {
  background: transparent; color: var(--t-on-light); border-color: rgba(16,40,46,0.25);
}
.sec-light .btn-ghost:hover, .sec-bone .btn-ghost:hover { border-color: var(--ink-700); color: var(--ink-700); }
.btn-ink { background: var(--ink-900); color: var(--porcelain-50); }
.btn-ink:hover { background: var(--ink-800); transform: translateY(-2px); }
.btn-l { padding: 18px 34px; font-size: 1.05rem; }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(43,217,176,0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(17,61,69,0.55), transparent 60%),
    var(--ink-950);
  padding-top: calc(96px + env(safe-area-inset-top, 0px));
  padding-bottom: 64px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.85;
}
.hero-grid {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 48px;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 64px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint-300); background: var(--mint-soft);
  border: 1px solid rgba(43,217,176,0.25); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 12px var(--mint-500); animation: pulse-dot 2.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { margin-bottom: 22px; }
.hero h1 .hl { font-style: italic; font-weight: 480; color: var(--mint-300); white-space: nowrap; }

/* H1 split reveal (palabra a palabra, activado por v2.js) */
.hero h1 .h1w { display: inline-block; }
.hero h1.h1-split .h1w {
  opacity: 0;
  transform: translateY(0.55em) rotateX(35deg);
  transition: opacity 0.6s var(--ease-smooth), transform 0.7s var(--ease-spring);
}
.hero h1.h1-split { perspective: 600px; }
.hero h1.h1-in .h1w { opacity: 1; transform: none; }

/* Entrada 3D de la form card del hero (solo desktop) */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero .form-card {
    animation: card-enter-3d 1s var(--ease-smooth) 0.25s both;
    transform-style: preserve-3d;
  }
  @keyframes card-enter-3d {
    from { transform: perspective(1200px) rotateY(-7deg) rotateX(5deg) translateY(28px); opacity: 0; }
    to   { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(0); opacity: 1; }
  }
  /* Flotación sutil contínua tras la entrada */
  .hero .form-card::after {
    content: ""; position: absolute; inset: auto 8% -26px 8%; height: 30px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.35), transparent 70%);
    filter: blur(8px); z-index: -1;
    animation: card-shadow 6s ease-in-out 1.3s infinite;
  }
  @keyframes card-shadow {
    0%, 100% { transform: scaleX(1); opacity: 0.7; }
    50% { transform: scaleX(0.92); opacity: 0.45; }
  }
}
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.22rem); color: var(--t-on-dark-2); max-width: 540px; margin-bottom: 32px; }
.hero-sub strong { color: var(--t-on-dark); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 0.85rem; color: var(--t-on-dark-3);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--mint-500); flex: none; }

/* Hero proof chips (replaces floating cards on mobile: inline row) */
.proof-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.proof-chip {
  font-family: var(--f-mono); font-size: 0.78rem;
  background: var(--glass-6); border: 1px solid var(--glass-10); border-radius: 12px;
  padding: 10px 14px; color: var(--t-on-dark-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.proof-chip b { color: var(--mint-300); font-weight: 600; }

/* ─── FORM CARD (hero/contact) ─── */
.form-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-10);
  border-radius: var(--radius-l);
  padding: clamp(22px, 4vw, 34px);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px -24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.10);
}
.form-card-title { font-family: var(--f-ui); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.form-card-sub { font-size: 0.88rem; color: var(--t-on-dark-3); margin-bottom: 20px; }
.form-card-foot { margin-top: 16px; font-size: 0.8rem; color: var(--t-on-dark-3); text-align: center; }
.form-card-foot .stars { color: var(--gold-400); letter-spacing: 2px; }

/* Light variant */
.sec-light .form-card, .sec-bone .form-card {
  background: #fff; border-color: var(--stone-200);
  box-shadow: 0 24px 60px -28px rgba(16,40,46,0.25);
}
.sec-light .form-card-sub, .sec-bone .form-card-sub,
.sec-light .form-card-foot, .sec-bone .form-card-foot { color: var(--t-on-light-3); }

/* ─── LGF FORM (mantiene clases/JS del sitio actual) ─── */
.lgf-form { display: flex; flex-direction: column; gap: 14px; position: relative; }
.lgf-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .lgf-row { grid-template-columns: 1fr 1fr; } }
.lgf-field { position: relative; display: block; }
.lgf-icon {
  position: absolute; left: 15px; top: 17px; width: 18px; height: 18px;
  color: var(--t-on-dark-3); pointer-events: none; transition: color 0.2s;
}
.lgf-input, .lgf-textarea {
  width: 100%; font-family: var(--f-ui); font-size: 16px;
  background: rgba(6,24,29,0.45);
  border: 1px solid var(--glass-10); border-radius: var(--radius-s);
  color: var(--t-on-dark);
  padding: 16px 14px 16px 44px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lgf-textarea { resize: vertical; min-height: 86px; }
.lgf-input:focus, .lgf-textarea:focus {
  outline: none; border-color: var(--mint-500);
  box-shadow: 0 0 0 3px var(--mint-soft);
}
.lgf-input:focus ~ .lgf-icon { color: var(--mint-500); }
.lgf-label {
  position: absolute; left: 44px; top: 16px;
  font-size: 0.95rem; color: var(--t-on-dark-3);
  pointer-events: none; transition: all 0.18s var(--ease-smooth);
  background: transparent; padding: 0 4px;
}
.lgf-input:focus + .lgf-label, .lgf-input:not(:placeholder-shown) + .lgf-label,
.lgf-textarea:focus + .lgf-label, .lgf-textarea:not(:placeholder-shown) + .lgf-label {
  top: -9px; left: 38px; font-size: 0.72rem; color: var(--mint-400);
  background: var(--ink-900); border-radius: 4px;
}
.lgf-error { display: none; color: var(--red-soft); font-size: 0.76rem; margin-top: 5px; padding-left: 4px; }
.lgf-field.invalid .lgf-error { display: block; }
.lgf-field.invalid .lgf-input, .lgf-field.invalid .lgf-textarea { border-color: var(--red-soft); }
.lgf-honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.lgf-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--mint-500); color: var(--ink-950);
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  border-radius: 999px; padding: 17px 28px; min-height: 52px;
  box-shadow: 0 10px 30px -10px var(--mint-glow);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, opacity 0.2s;
}
.lgf-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px var(--mint-glow); }
.lgf-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.lgf-spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(6,24,29,0.25); border-top-color: var(--ink-950);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lgf-form.sending .lgf-spinner, .lgf-submit.loading .lgf-spinner { display: inline-block; }
.lgf-success {
  display: none; position: absolute; inset: 0; z-index: 5;
  background: inherit; border-radius: inherit;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 24px;
}
.lgf-form.sent .lgf-success { display: flex; }
.lgf-form.sent > *:not(.lgf-success) { visibility: hidden; }
.lgf-check {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(25,195,125,0.15); border: 1.5px solid var(--green-ok);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.lgf-success h3 { font-family: var(--f-ui); font-size: 1.2rem; font-weight: 700; }
.lgf-success p { font-size: 0.9rem; }

/* LGF on light surfaces */
.sec-light .lgf-input, .sec-light .lgf-textarea,
.sec-bone .lgf-input, .sec-bone .lgf-textarea {
  background: var(--porcelain-50); border-color: var(--stone-200); color: var(--t-on-light);
}
.sec-light .lgf-label, .sec-bone .lgf-label { color: var(--t-on-light-3); }
.sec-light .lgf-input:focus + .lgf-label, .sec-light .lgf-input:not(:placeholder-shown) + .lgf-label,
.sec-light .lgf-textarea:focus + .lgf-label, .sec-light .lgf-textarea:not(:placeholder-shown) + .lgf-label,
.sec-bone .lgf-input:focus + .lgf-label, .sec-bone .lgf-input:not(:placeholder-shown) + .lgf-label,
.sec-bone .lgf-textarea:focus + .lgf-label, .sec-bone .lgf-textarea:not(:placeholder-shown) + .lgf-label {
  background: #fff; color: var(--ink-600);
}
.sec-light .lgf-icon, .sec-bone .lgf-icon { color: var(--t-on-light-3); }

/* ─── METRIC CARDS ─── */
.metrics { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .metrics { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.metric {
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-10); border-radius: var(--radius-m);
  padding: clamp(20px, 3.5vw, 32px) clamp(16px, 2.5vw, 26px);
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s;
  will-change: transform;
}
.metric:hover { border-color: rgba(43,217,176,0.4); }
.metric-num {
  font-family: var(--f-mono); font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.6rem); color: var(--mint-300);
  line-height: 1.1; letter-spacing: -0.02em;
}
.metric-num .unit { font-size: 0.6em; color: var(--mint-500); }
.metric-label { margin-top: 8px; font-size: 0.85rem; color: var(--t-on-dark-2); font-weight: 500; }
.metric-sub { font-size: 0.75rem; color: var(--t-on-dark-3); margin-top: 3px; }

.sec-light .metric, .sec-bone .metric { background: #fff; border-color: var(--stone-200); }
.sec-light .metric-num, .sec-bone .metric-num { color: var(--ink-700); }
.sec-light .metric-label, .sec-bone .metric-label { color: var(--t-on-light-2); }
.sec-light .metric-sub, .sec-bone .metric-sub { color: var(--t-on-light-3); }

/* ─── STEPS (sistema 01-04) ─── */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 36px);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
  overflow: hidden;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 48px -20px rgba(16,40,46,0.22); }
.step-num {
  font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--mint-500); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.step h3 { font-family: var(--f-ui); font-weight: 650; font-size: 1.18rem; margin-bottom: 10px; color: var(--t-on-light); }
.step p { font-size: 0.95rem; }
.step-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--mint-soft); color: var(--ink-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step::after {
  content: ""; position: absolute; right: -34px; top: -34px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, var(--mint-soft), transparent 70%);
}

/* ─── TESTIMONIALS / CASES ─── */
.cases { display: grid; gap: 18px; }
@media (min-width: 880px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.case {
  background: linear-gradient(165deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-10); border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s;
}
.case:hover { transform: translateY(-4px); border-color: rgba(43,217,176,0.35); }
.case-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--t-on-dark-3); }
.case-meta .stars { color: var(--gold-400); letter-spacing: 1px; }
.case-kpi { font-family: var(--f-mono); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; color: var(--mint-300); line-height: 1.15; }
.case-kpi small { display: block; font-size: 0.72rem; color: var(--t-on-dark-3); font-weight: 500; margin-top: 4px; letter-spacing: 0.04em; }
.case-quote { font-family: var(--f-display); font-style: italic; font-weight: 460; font-size: 1.02rem; color: var(--t-on-dark-2); line-height: 1.5; }
.case-who { font-size: 0.82rem; color: var(--t-on-dark-3); border-top: 1px solid var(--glass-6); padding-top: 12px; }
.case-who b { color: var(--t-on-dark-2); font-weight: 600; }

.sec-light .case, .sec-bone .case { background: #fff; border-color: var(--stone-200); }
.sec-light .case-quote, .sec-bone .case-quote { color: var(--t-on-light-2); }
.sec-light .case-kpi, .sec-bone .case-kpi { color: var(--ink-700); }
.sec-light .case-who, .sec-bone .case-who { border-color: var(--bone-100); color: var(--t-on-light-3); }

/* ─── PROBLEM LIST ─── */
.pain-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.pain {
  display: flex; gap: 18px; align-items: baseline;
  background: var(--glass-6); border: 1px solid var(--glass-10);
  border-radius: var(--radius-m); padding: 18px 22px;
  transition: border-color 0.3s, transform 0.3s var(--ease-smooth);
}
.pain:hover { border-color: rgba(230,106,106,0.35); transform: translateX(4px); }
.pain-num { font-family: var(--f-mono); font-size: 0.78rem; color: var(--red-soft); font-weight: 600; flex: none; }
.pain p { font-size: 0.98rem; color: var(--t-on-dark-2); }
.pain p b { color: var(--t-on-dark); }

/* ─── COMPARISON TABLE ─── */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--stone-200); border-radius: var(--radius-l);
  overflow: hidden; background: #fff;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; vertical-align: top; }
.compare-table thead th {
  font-family: var(--f-ui); font-weight: 700; font-size: 0.95rem;
  background: var(--bone-100); border-bottom: 1px solid var(--stone-200);
}
.compare-table thead th:nth-child(2) { background: var(--ink-900); color: var(--mint-300); }
.compare-table tbody tr + tr td { border-top: 1px solid var(--bone-100); }
.compare-table td:first-child { font-weight: 600; color: var(--t-on-light); width: 26%; }
.compare-table td:nth-child(2) { background: rgba(43,217,176,0.06); color: var(--t-on-light); }
.compare-table td:nth-child(3) { color: var(--t-on-light-3); }
.cmp-yes { color: var(--green-ok); font-weight: 700; margin-right: 6px; }
.cmp-no { color: var(--red-soft); font-weight: 700; margin-right: 6px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-l); }
@media (max-width: 720px) { .compare-table { min-width: 640px; } }

/* ─── FAQ ─── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq { border: 1px solid var(--stone-200); border-radius: var(--radius-m); background: #fff; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 1.02rem; color: var(--t-on-light);
  transition: color 0.2s;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--f-mono); font-size: 1.3rem; color: var(--mint-500);
  transition: transform 0.3s var(--ease-smooth); flex: none;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq[open] summary { color: var(--ink-700); }
.faq-a { padding: 0 22px 22px; font-size: 0.95rem; color: var(--t-on-light-2); }
.faq-a a { color: var(--ink-700); font-weight: 600; }

/* Dark FAQ variant */
.sec-dark .faq, .sec-darker .faq { background: var(--glass-6); border-color: var(--glass-10); }
.sec-dark .faq summary, .sec-darker .faq summary { color: var(--t-on-dark); }
.sec-dark .faq-a, .sec-darker .faq-a { color: var(--t-on-dark-2); }

/* ─── NORA SECTION ─── */
.nora-band {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(43,217,176,0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.nora-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .nora-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.nora-chat-demo {
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-10); border-radius: var(--radius-l);
  padding: 22px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px -24px rgba(0,0,0,0.5);
}
.nora-chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--glass-6); margin-bottom: 14px; }
.nora-chat-head b { font-size: 0.95rem; }
.nora-status { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--mint-300); font-family: var(--f-mono); }
.nora-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-ok); box-shadow: 0 0 8px var(--green-ok); }
.nora-msg {
  background: var(--glass-6); border: 1px solid var(--glass-10);
  border-radius: 14px 14px 14px 4px; padding: 12px 16px;
  font-size: 0.9rem; color: var(--t-on-dark-2); margin-bottom: 10px;
  max-width: 88%;
}
.nora-msg.user { margin-left: auto; border-radius: 14px 14px 4px 14px; background: rgba(43,217,176,0.12); border-color: rgba(43,217,176,0.2); color: var(--t-on-dark); }
.nora-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.nora-feat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--t-on-dark-2);
  background: var(--glass-6); border: 1px solid var(--glass-10);
  border-radius: 999px; padding: 8px 16px;
}
.nora-feat svg { color: var(--mint-500); }

/* ─── CTA BAND ─── */
.cta-band {
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(43,217,176,0.16), transparent 60%),
    var(--ink-950);
  text-align: center;
}
.cta-band h2 { max-width: 720px; margin: 0 auto 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink-950); color: var(--t-on-dark-3);
  border-top: 1px solid var(--glass-6);
  padding: 64px 0 110px; font-size: 0.88rem;
}
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 880px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.foot-brand svg { height: 30px; width: auto; margin-bottom: 14px; color: var(--t-on-dark); }
.foot-brand p { max-width: 300px; line-height: 1.6; }
.foot-col h4, .foot-col .foot-h { color: var(--t-on-dark-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; font-family: var(--f-mono); font-weight: 600; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--t-on-dark-3); text-decoration: none; transition: color 0.2s; }
.foot-col a:hover { color: var(--mint-300); }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--glass-6);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}

/* ─── BREADCRUMBS ─── */
.crumbs {
  font-size: 0.8rem; font-family: var(--f-mono);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 26px; color: var(--t-on-dark-3);
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--mint-300); }
.crumbs .sep { opacity: 0.5; }
.sec-light .crumbs, .sec-bone .crumbs { color: var(--t-on-light-3); }
.sec-light .crumbs a:hover, .sec-bone .crumbs a:hover { color: var(--ink-700); }

/* ─── PAGE HERO (páginas interiores) ─── */
.page-hero {
  background:
    radial-gradient(1000px 500px at 80% -20%, rgba(43,217,176,0.10), transparent 60%),
    var(--ink-950);
  padding-top: calc(120px + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(56px, 9vw, 96px);
  position: relative; overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.55;
}
.page-hero h1 { max-width: 880px; margin-bottom: 18px; }
.page-hero .lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--t-on-dark-2); max-width: 640px; }

/* ─── READING PROGRESS BAR ─── */
.read-progress {
  position: fixed; top: 0; left: 0; z-index: 1100;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--mint-500), var(--mint-300));
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─── POST PREV/NEXT NAV ─── */
.post-nav {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  margin-top: 48px;
}
@media (max-width: 599px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-m);
  padding: 18px 20px; text-decoration: none;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s;
}
.post-nav-item:hover { transform: translateY(-3px); box-shadow: 0 14px 36px -18px rgba(16,40,46,0.22); }
.post-nav-item--prev { align-items: flex-start; }
.post-nav-item--next { align-items: flex-end; text-align: right; }
.post-nav-label {
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint-500);
}
.post-nav-title { font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem; color: var(--t-on-light); line-height: 1.35; }
.post-nav-placeholder { background: transparent; border-color: transparent; pointer-events: none; }

/* ─── METRIC PULSE (al completar contador) ─── */
@keyframes metric-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.metric-num.done { animation: metric-pulse 0.45s var(--ease-spring) both; }

/* ─── SECTION WAVE SEPARATORS ─── */
.sec-wave {
  display: block; width: 100%; overflow: hidden; line-height: 0;
  height: 60px; pointer-events: none;
}
.sec-wave svg { display: block; width: 100%; height: 100%; }
.sec-wave--dark-to-light { background: var(--ink-950); }
.sec-wave--light-to-dark { background: var(--porcelain-50); }

/* ─── PROSE (blog / contenido largo, siempre en light) ─── */
.prose { font-size: 1.06rem; line-height: 1.78; color: var(--t-on-light-2); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); color: var(--t-on-light); margin-top: 2em; }
.prose h3 { font-family: var(--f-ui); font-weight: 700; font-size: 1.25rem; color: var(--t-on-light); margin-top: 1.8em; }
.prose a { color: var(--ink-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mint-500); text-underline-offset: 3px; }
.prose a:hover { color: var(--mint-500); }
.prose ul, .prose ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 0.5em; }
.prose blockquote {
  border-left: 3px solid var(--mint-500); padding: 8px 0 8px 22px;
  font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--t-on-light);
}
.prose strong { color: var(--t-on-light); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.prose table th, .prose table td { border: 1px solid var(--stone-200); padding: 10px 14px; text-align: left; }
.prose table th { background: var(--bone-100); }
.prose img { border-radius: var(--radius-m); }
.prose .tip {
  background: var(--mint-soft); border: 1px solid rgba(43,217,176,0.25);
  border-radius: var(--radius-m); padding: 18px 22px; font-size: 0.96rem;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--t-on-dark-3); margin-top: 16px; }

/* Blog cards */
.post-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-l);
  padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px -22px rgba(16,40,46,0.24); }
.post-card .pc-tag { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint-500); font-weight: 600; }
.post-card h3 { font-family: var(--f-ui); font-weight: 700; font-size: 1.12rem; color: var(--t-on-light); line-height: 1.35; }
.post-card p { font-size: 0.9rem; color: var(--t-on-light-2); flex: 1; }
.post-card .pc-more { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }

/* ─── STICKY MOBILE CTA ─── */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--mint-500); color: var(--ink-950);
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  border-radius: 999px; padding: 16px 24px;
  box-shadow: 0 12px 36px -8px var(--mint-glow), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(120px); transition: transform 0.4s var(--ease-spring);
}
.sticky-cta.show { transform: translateY(0); }
@media (min-width: 920px) { .sticky-cta { display: none; } }

/* ─── SCROLLYTELLING 3D (sección sistema) ───
   Progressive enhancement: sin JS o con reduced-motion las fases
   se muestran apiladas y el canvas queda oculto. v2.js añade
   .scrolly-on para activar el modo inmersivo. */
.scrolly .scrolly-canvas { display: none; }
.scrolly .scrolly-copy {
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-10); border-radius: var(--radius-l);
  padding: clamp(22px, 4vw, 32px); max-width: 440px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  margin-bottom: 18px;
}
.scrolly .scrolly-copy h3 { font-family: var(--f-ui); font-weight: 650; font-size: 1.2rem; margin: 10px 0; }
.scrolly .scrolly-copy p { font-size: 0.95rem; }
.scrolly .scrolly-dots { display: none; }

.scrolly.scrolly-on .scrolly-track { position: relative; height: 520vh; }
.scrolly.scrolly-on .scrolly-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
}
.scrolly.scrolly-on .scrolly-canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
}
.scrolly.scrolly-on .scrolly-copy {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  margin: 0 auto 0 0;
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.45s var(--ease-smooth), transform 0.55s var(--ease-smooth);
  pointer-events: none;
}
.scrolly.scrolly-on .scrolly-copy.active { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 880px) {
  .scrolly.scrolly-on .scrolly-stage { align-items: center; }
  .scrolly.scrolly-on .scrolly-copy {
    left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    right: auto; bottom: auto; top: 50%; width: 420px;
    transform: translateY(calc(-50% + 26px));
  }
  .scrolly.scrolly-on .scrolly-copy.active { transform: translateY(-50%); }
}
.scrolly.scrolly-on .scrolly-dots {
  display: flex; flex-direction: column; gap: 10px;
  position: absolute; right: calc(var(--gutter) * 0.6); top: 50%;
  transform: translateY(-50%); z-index: 3;
}
.scrolly-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--glass-16); border: none; padding: 0; cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.scrolly-dot.active {
  background: var(--mint-500); transform: scale(1.45);
  box-shadow: 0 0 12px var(--mint-glow);
}
.scrolly-phase-tag {
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint-300);
}
/* Número watermark gigante tras cada tarjeta de fase */
.scrolly-copy { overflow: visible; }
.scrolly-num {
  position: absolute; top: -0.52em; right: 18px; z-index: -1;
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(4.5rem, 12vw, 7.5rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(43,217,176,0.30);
  pointer-events: none; user-select: none;
}

/* ─── HERO "APERTURA" (scroll-driven, activado por v2.js) ───
   El hero queda pinned el primer scroll: texto y form se separan
   como puertas, la cámara vuela al punto de dato y un destello
   abre paso a la siguiente sección. Sin JS = hero normal. */
.hero-track { position: relative; }
.hero-track.hero-open-on { height: 190vh; }
.hero-track.hero-open-on .hero {
  position: sticky; top: 0;
  height: 100svh; min-height: 0;
}
.hero-track.hero-open-on .hero-grid > div {
  will-change: transform, opacity;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 62% 42%,
    rgba(214,255,243,0.95) 0%,
    rgba(138,240,216,0.55) 28%,
    rgba(43,217,176,0.22) 52%,
    transparent 72%);
}
.scrolly-hint {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--t-on-dark-3);
  display: none; align-items: center; gap: 8px;
  opacity: 1; transition: opacity 0.5s;
}
.scrolly.scrolly-on .scrolly-hint { display: inline-flex; }
.scrolly.scrolly-on .scrolly-hint.hide { opacity: 0; }
.scrolly-hint::after { content: "↓"; animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ─── REVEALS ─── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; } .rv-d2 { transition-delay: 0.16s; } .rv-d3 { transition-delay: 0.24s; }

/* ─── MARQUEE ─── */
.marquee { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--glass-6); border-bottom: 1px solid var(--glass-6); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--t-on-dark-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marquee span::before { content: "✦"; color: var(--mint-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── CALCULATOR ─── */
.calc-card {
  background: #fff; border: 1px solid var(--stone-200); border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 24px 60px -30px rgba(16,40,46,0.2);
}
.calc-field { margin-bottom: 22px; }
.calc-field label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--t-on-light); margin-bottom: 8px; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--mint-500); }
.calc-field input[type="number"], .calc-field select {
  width: 100%; padding: 13px 16px; font-size: 16px; font-family: var(--f-ui);
  border: 1px solid var(--stone-200); border-radius: var(--radius-s); background: var(--porcelain-50);
  color: var(--t-on-light);
}
.calc-val { font-family: var(--f-mono); color: var(--ink-700); font-weight: 600; }
.calc-result {
  background: var(--ink-900); color: var(--t-on-dark); border-radius: var(--radius-m);
  padding: 26px; text-align: center; margin-top: 10px;
}
.calc-result .big { font-family: var(--f-mono); font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--mint-300); font-weight: 600; }
.calc-result small { color: var(--t-on-dark-3); }

/* ─── BADGES / PILL LIST ─── */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 0.84rem; font-weight: 500;
  border: 1px solid var(--stone-200); border-radius: 999px; padding: 8px 16px;
  background: #fff; color: var(--t-on-light-2);
}
.sec-dark .pill, .sec-darker .pill { background: var(--glass-6); border-color: var(--glass-10); color: var(--t-on-dark-2); }

/* ─── TABLE OF CONTENTS (artículos) ─── */
.toc {
  background: var(--bone-100); border: 1px solid var(--stone-200); border-radius: var(--radius-m);
  padding: 22px 26px; font-size: 0.92rem;
}
.toc b { display: block; margin-bottom: 10px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-on-light-3); }
.toc ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--t-on-light-2); text-decoration: none; }
.toc a:hover { color: var(--ink-700); }

/* ─── UTILS ─── */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } }
.grid-3 { display: grid; gap: 18px; }
@media (min-width: 880px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint-soft); color: var(--mint-400);
  border: 1px solid rgba(43,217,176,0.2);
}
.sec-light .icon-tile, .sec-bone .icon-tile { color: var(--ink-700); }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
  #hero-canvas, .page-hero-canvas { display: none; }
  .read-progress { transition: none; }
}

/* ─── PRINT ─── */
@media print {
  #nav, .sticky-cta, footer, .nora-band { display: none; }
  body { background: #fff; color: #000; }
}
