/* ==========================================================================
   DUALTRIA — AI Automation Agency
   Identidad: navy oscuro + blanco + dorado. Minimalista, sobrio, espacioso.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color */
  --navy-950: #070D18;
  --navy-900: #0A1120;
  --navy-800: #0F1B30;
  --navy-700: #17253F;
  --navy-600: #22334F;
  --navy-500: #33445F;

  --gold-600: #A87F3B;
  --gold: #C49B54;
  --gold-400: #D9BC85;
  --gold-200: #EFE2C9;

  --paper: #FFFFFF;
  --paper-2: #F7F7F5;
  --paper-3: #EFEFEB;

  --ink: #0F1B30;
  --ink-2: #3C4757;
  --muted: #66707F;
  --muted-on-dark: #A3AEBF;

  --line: #E4E4DE;
  --line-dark: rgba(255, 255, 255, 0.11);

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Espaciado / medidas */
  --wrap: 1180px;
  --wrap-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Efectos */
  --shadow-sm: 0 1px 2px rgba(15, 27, 48, 0.05),
    0 8px 24px -12px rgba(15, 27, 48, 0.12);
  --shadow-md: 0 2px 4px rgba(15, 27, 48, 0.05),
    0 24px 48px -24px rgba(15, 27, 48, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--gold-200); color: var(--navy-800); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }

.section--paper { background: var(--paper-2); }

.section--navy {
  background: var(--navy-800);
  color: var(--muted-on-dark);
  position: relative;
  overflow: hidden;
}
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: 0.8rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Tipografía de secciones
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section--navy .eyebrow { color: var(--gold-400); }

.h-display { font-size: clamp(2.4rem, 6vw, 4rem); }
.h-section { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
.h-card { font-size: 1.14rem; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}
.section--navy .lead { color: var(--muted-on-dark); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 68ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 1.2rem; }

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  text-align: center;
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }

.btn--gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: var(--navy-900); }
.btn--gold:hover { --btn-bg: var(--gold-400); --btn-bd: var(--gold-400); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--navy-800); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover { --btn-bd: var(--gold); --btn-fg: var(--gold-400); }

.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.86rem; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-600);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.link-arrow:hover { border-color: currentColor; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 17, 32, 0.55), rgba(10, 17, 32, 0));
  opacity: 1;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.header.is-stuck {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header.is-stuck::before { opacity: 0; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
  /* z-index mantiene el contenido por encima del degradado ::before */
  position: relative;
  z-index: 1;
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 0.72rem; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  transition: color 0.35s var(--ease);
}
.brand__tag {
  margin-top: 4px;
  font-size: 0.53rem;
  letter-spacing: 0.24em;
  color: var(--gold-400);
  transition: color 0.35s var(--ease);
}
.header.is-stuck .brand__name { color: var(--navy-800); }
.header.is-stuck .brand__tag { color: var(--gold-600); }

/* Navegación */
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.85rem; }
.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.header.is-stuck .nav__link { color: var(--ink-2); }
.header.is-stuck .nav__link:hover { color: var(--navy-800); }

.header .btn--header {
  --btn-bg: var(--gold);
  --btn-bd: var(--gold);
  --btn-fg: var(--navy-900);
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.header.is-stuck .nav-toggle { border-color: var(--line); }
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease),
    background 0.35s var(--ease);
}
.header.is-stuck .nav-toggle span { background: var(--navy-800); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease),
      visibility 0.4s;
  }
  .nav.is-open {
    visibility: visible;
    max-height: 80vh;
    padding-block: 0.8rem 1.5rem;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 0.95rem 0;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1.2rem; width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Tratamiento sobrio e institucional: sin rejillas ni halos de "startup". */
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%);
  color: var(--muted-on-dark);
  padding: clamp(9rem, 15vw, 12.5rem) 0 clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
/* luz muy tenue, apenas perceptible */
.hero::before {
  inset: 0;
  background: radial-gradient(ellipse 110% 75% at 80% 0%, rgba(196, 155, 84, 0.085), transparent 60%);
}
/* filete dorado de cierre */
.hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 155, 84, 0.55), transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 { color: #fff; }
.hero h1 .accent {
  color: var(--gold-400);
  display: inline-block;
}
.hero__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted-on-dark);
  max-width: 54ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}
.hero__note {
  margin-top: 1.6rem;
  font-size: 0.83rem;
  color: rgba(163, 174, 191, 0.75);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #E7EAF0;
  background: rgba(255, 255, 255, 0.03);
}
.badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* Ficha del diagnóstico inicial — sustituye al panel de métricas simuladas */
.brief {
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--gold);
  border-radius: 2px var(--radius-lg) var(--radius-lg) 2px;
  background: rgba(255, 255, 255, 0.035);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.75);
}
.brief__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.85rem;
}
.brief h2 {
  font-size: 1.22rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.brief__intro { font-size: 0.9rem; color: var(--muted-on-dark); }

.brief__list { margin-top: 1.5rem; }
.brief__item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-dark);
}
.brief__item:last-child { border-bottom: 1px solid var(--line-dark); }
.brief__item span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.brief__item p { font-size: 0.9rem; color: #E7EAF0; margin: 0; }

.brief__foot {
  margin-top: 1.4rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(163, 174, 191, 0.78);
}

/* Franja de credenciales bajo el hero */
.strip {
  border-top: 1px solid var(--line-dark);
  background: var(--navy-900);
  color: var(--muted-on-dark);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
}
.strip__item { display: inline-flex; align-items: center; gap: 0.55rem; }
.strip__item svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* --------------------------------------------------------------------------
   8. Tarjetas
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  /* Sin desplazamiento: el movimiento constante resta seriedad. */
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  height: 100%;
}
.card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-200);
}
.card__num {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-600);
  margin-bottom: 0.9rem;
  display: block;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy-800);
  color: var(--gold-400);
  margin-bottom: 1.15rem;
}
.card__icon svg { width: 21px; height: 21px; }

.card--dark {
  background: var(--navy-700);
  border-color: var(--line-dark);
}
.card--dark:hover { border-color: rgba(196, 155, 84, 0.4); }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--muted-on-dark); }

/* Lista con check dorado */
.checklist { display: grid; gap: 0.75rem; }
.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.95rem;
}
.checklist svg { width: 18px; height: 18px; color: var(--gold); margin-top: 4px; flex: none; }
.section--navy .checklist li { color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   9. Especialidades
   -------------------------------------------------------------------------- */
.spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 1040px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .spec { grid-template-columns: 1fr; } }

.spec__card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.spec__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.spec__card:hover { box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.spec__card:hover::before { transform: scaleY(1); }
.spec__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.85rem;
}
.spec__card h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-bottom: 0.9rem; }
.spec__card > p { color: var(--muted); font-size: 0.97rem; }
.spec__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.tag {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.76rem;
  color: var(--ink-2);
  background: var(--paper-2);
}

/* --------------------------------------------------------------------------
   10. Tabla de dolores
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.93rem;
}
thead th {
  text-align: left;
  padding: 1.05rem 1.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy-800);
  white-space: nowrap;
}
tbody td {
  padding: 1.1rem 1.35rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
tbody tr:hover td { background: var(--paper-2); }
tbody td:first-child { color: var(--ink); font-weight: 600; width: 22%; }
tbody td.answer { color: var(--gold-600); font-weight: 600; }

.callout {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.callout p {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.section--navy .callout {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--gold);
}
.section--navy .callout p { color: #fff; }

/* --------------------------------------------------------------------------
   11. Sistema (mecanismo) — pasos
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.35s var(--ease);
  position: relative;
}
.step:hover { background: rgba(196, 155, 84, 0.07); }
.step__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.step h3 {
  font-size: 0.95rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.step p { font-size: 0.9rem; color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   12. Calculadora
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.calc__inputs {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.field { margin-bottom: 1.7rem; }
.field:last-child { margin-bottom: 0; }
.field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.field__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 100px;
  background: var(--paper-3);
  outline-offset: 8px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 3px solid var(--gold);
  cursor: grab;
  transition: transform 0.2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 3px solid var(--gold);
  cursor: grab;
}
.field__hint { margin-top: 0.55rem; font-size: 0.78rem; color: var(--muted); }

.calc__result {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  color: var(--muted-on-dark);
  position: relative;
  overflow: hidden;
}
.calc__result::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(196, 155, 84, 0.16), transparent 65%);
  pointer-events: none;
}
.calc__result > * { position: relative; z-index: 1; }
.calc__label {
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.7rem;
}
.calc__big {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc__sub { font-size: 0.88rem; margin-top: 0.6rem; }
.calc__rows {
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 0.9rem;
}
.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.calc__row strong {
  color: #fff;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.calc__row--accent strong { color: var(--gold-400); }
.calc__disclaimer {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(163, 174, 191, 0.78);
}
.calc__cta { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   13. Proceso (timeline)
   -------------------------------------------------------------------------- */
.timeline { display: grid; gap: 0; position: relative; }
.tl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 2.5vw, 2rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--paper-3);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.35s var(--ease);
}
.tl:hover .tl__num { color: var(--gold); }
.tl__body h3 { font-size: 1.1rem; margin-bottom: 0.55rem; letter-spacing: 0.02em; }
.tl__body p { font-size: 0.95rem; color: var(--muted); max-width: 68ch; }
@media (max-width: 560px) {
  .tl { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* --------------------------------------------------------------------------
   14. Entregables / confianza
   -------------------------------------------------------------------------- */
.deliverables { display: grid; gap: 0; }
.deliverable {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.deliverable:last-child { border-bottom: 1px solid var(--line); }
.deliverable dt { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.deliverable dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 680px) {
  .deliverable { grid-template-columns: 1fr; gap: 0.4rem; }
}

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.principle svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.principle h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.principle p { font-size: 0.9rem; color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-600); }
.faq summary .icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq summary .icon::before,
.faq summary .icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq summary .icon::before { width: 13px; height: 1.5px; }
.faq summary .icon::after { width: 1.5px; height: 13px; }
.faq details[open] summary .icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__answer { padding: 0 0 1.6rem; max-width: 78ch; }
.faq__answer p { font-size: 0.96rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   16. CTA final + formulario
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 120vw);
  height: 700px;
  background: radial-gradient(ellipse, rgba(196, 155, 84, 0.15), transparent 62%);
  pointer-events: none;
}
/* La sección CTA es oscura: sube el contraste de los textos heredados */
.cta .lead { color: var(--muted-on-dark); }
.cta .eyebrow { color: var(--gold-400); }

.cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 940px) { .cta__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 0.5rem;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form input::placeholder,
.form textarea::placeholder { color: rgba(163, 174, 191, 0.5); }
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}
.form select option { background: var(--navy-800); color: #fff; }
.form textarea { resize: vertical; min-height: 104px; }
.form__consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.8rem;
  color: rgba(163, 174, 191, 0.85);
  line-height: 1.5;
}
.form__consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); padding: 0; }
.form__consent label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0;
  color: inherit;
}
.form__status {
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-ok {
  background: rgba(196, 155, 84, 0.12);
  border: 1px solid rgba(196, 155, 84, 0.35);
  color: var(--gold-200);
}
.form__status.is-error {
  background: rgba(220, 100, 100, 0.1);
  border: 1px solid rgba(220, 100, 100, 0.35);
  color: #F0B9B9;
}

.contact-list { display: grid; gap: 1.35rem; margin-top: 2.2rem; }
.contact-item { display: grid; grid-template-columns: 20px 1fr; gap: 0.85rem; align-items: start; }
.contact-item svg { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.contact-item strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 0.15rem; }
.contact-item span { font-size: 0.88rem; color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-950);
  color: var(--muted-on-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__about { max-width: 40ch; font-size: 0.9rem; margin-top: 1.3rem; }
.footer h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.1rem;
}
.footer__links { display: grid; gap: 0.65rem; }
.footer__links a { font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--gold-400); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: rgba(163, 174, 191, 0.65);
}

/* --------------------------------------------------------------------------
   18. Páginas legales (prosa)
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--navy-800);
  padding: clamp(8rem, 14vw, 10.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head p { color: var(--muted-on-dark); margin-top: 1rem; font-size: 0.95rem; }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: 1.28rem;
  margin: 2.6rem 0 0.9rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.02rem; margin: 1.7rem 0 0.6rem; }
.prose p, .prose li { font-size: 0.96rem; color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.35rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--gold-600); border-bottom: 1px solid currentColor; }
.prose strong { color: var(--ink); }
.prose .todo {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  background: rgba(196, 155, 84, 0.16);
  border: 1px dashed var(--gold);
  color: var(--gold-600);
  font-size: 0.86rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   19. Componentes de confianza
   -------------------------------------------------------------------------- */

/* Indicador de progreso de lectura */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.12s linear;
}

/* "Lo que no vamos a hacer" */
.nots { display: grid; }
.nots li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-dark);
}
.nots li:last-child { border-bottom: 1px solid var(--line-dark); }
.nots svg { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; flex: none; }
.nots strong {
  display: block;
  color: #fff;
  font-size: 0.99rem;
  font-weight: 600;
  margin-bottom: 0.22rem;
  letter-spacing: -0.01em;
}
.nots span { font-size: 0.93rem; color: var(--muted-on-dark); }

/* Bloque de inversión */
.invest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .invest { grid-template-columns: 1fr; } }
.invest__card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 2px 2px var(--radius-lg) var(--radius-lg);
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.invest__card h3 { font-size: 1.08rem; margin-bottom: 1.2rem; }

/* Cifras con alineación tabular allí donde hay datos */
.calc__big,
.calc__row strong,
.field__value,
.tl__num,
.brief__item span { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   20. Hoja de marca (LEEME.html)
   -------------------------------------------------------------------------- */
.assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.asset {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.asset__stage {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 1.5rem;
  background:
    linear-gradient(45deg, var(--paper-3) 25%, transparent 25%, transparent 75%, var(--paper-3) 75%),
    linear-gradient(45deg, var(--paper-3) 25%, transparent 25%, transparent 75%, var(--paper-3) 75%),
    var(--paper);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.asset__stage--navy { background: var(--navy-800); }
.asset__stage img { max-height: 110px; width: auto; }
.asset__meta {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.asset__meta code {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
  word-break: break-all;
}
.asset__meta span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin: 1.25rem 0 2rem; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.swatch__chip { height: 62px; }
.swatch__meta { padding: 0.55rem 0.7rem; background: var(--paper); }
.swatch__meta strong { display: block; font-size: 0.8rem; }
.swatch__meta code { font-size: 0.75rem; color: var(--muted); }

.prose table { min-width: 0; width: 100%; font-size: 0.9rem; margin-bottom: 1.6rem; }
.prose table th {
  background: var(--navy-800);
  padding: 0.7rem 0.9rem;
  font-size: 0.68rem;
}
.prose table td { padding: 0.7rem 0.9rem; }
.prose table td:first-child { width: auto; }

/* --------------------------------------------------------------------------
   21. Animación de entrada
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Impresión / exportación a PDF
   -------------------------------------------------------------------------- */
@media print {
  /* Conserva los fondos navy y dorados: sin esto el PDF sale en blanco. */
  html, body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: #fff;
  }

  /* Elementos de navegación que no tienen sentido en papel */
  .header,
  .progress,
  .skip-link,
  .nav-toggle { display: none !important; }

  /* Nada de animaciones de entrada: todo visible */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Las preguntas del FAQ se imprimen abiertas */
  details > *:not(summary) { display: block !important; }
  .faq summary .icon { display: none; }

  /* Ritmo vertical más compacto */
  :root { --section-y: 2.6rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding-block: 2.6rem; }

  /* Evita cortes feos entre páginas */
  .card,
  .spec__card,
  .invest__card,
  .brief,
  .step,
  .tl,
  .deliverable,
  .nots li,
  .faq details,
  .callout { break-inside: avoid; page-break-inside: avoid; }

  .section-head { break-after: avoid; page-break-after: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }

  .table-wrap { overflow: visible; }
  table { min-width: 0; }

  /* Sin sombras ni efectos en papel */
  * { box-shadow: none !important; }
}
