/* =========================================================
   v27 · Capa premium
   Lleva cada sección al nivel del hero: títulos grandes con
   la segunda línea en champagne, ventanas de producto con
   material y profundidad, escenarios con luz y textura fina.
   ========================================================= */
:root {
  --pm-champ: #D8C495;
  --pm-champ-hi: #EADBB5;
  --pm-champ-lo: #C4AA74;
  --pm-line: rgba(232, 226, 200, .09);
  --pm-line-hi: rgba(232, 226, 200, .16);
  --pm-muted: #A9B5AC;
  --pm-quiet: #7F8C83;
  --pm-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- superficies del navegador ---------- */
::selection { background: rgba(216, 196, 149, .85); color: #0B140F; }
html { caret-color: var(--pm-champ); }
body::after { opacity: .05; }

/* ---------- los rótulos sobre los títulos se van: el título habla solo ---------- */
main .eyebrow,
main .perspective-eyebrow,
main .journey-eyebrow,
main .closing-eyebrow { display: none !important; }

/* ---------- títulos de sección al nivel del hero ---------- */
main h2[id^="h-"] {
  font-size: clamp(2.6rem, 5.1vw, 5rem) !important;
  font-weight: 500 !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em !important;
  text-wrap: balance;
  max-width: 19ch;
  color: #F3F1E7;
}
main h2[id^="h-"] em,
main h2[id^="h-"] .accent > span { font-style: normal; color: var(--pm-champ) !important; }
#h-faq { max-width: 9ch; }

/* bajadas: más grandes y más legibles */
main .sec-head .lead,
main .statement-head > p:last-child,
main .reasons-heading > p,
main .perspective-heading > p,
main .journey-heading > p,
#fin .end-sub {
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem) !important;
  line-height: 1.6 !important;
  color: var(--pm-muted) !important;
  max-width: 30rem;
  letter-spacing: -.005em;
}

/* ---------- ritmo: más aire entre capítulos y un filo de luz entre ellos ---------- */
main > section:not(.hero) {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, rgba(216, 196, 149, .16) 50%, transparent 100%) 1;
}
@media (min-width: 961px) {
  main > section:not(.hero):not(.end) { padding-top: clamp(128px, 11vw, 176px) !important; }
}

/* ---------- notas al pie: una sola voz, discreta pero legible ---------- */
main .foot-note,
main .journey-caption,
main .journey-footnote,
main .perspective-footnote,
main .reasons-caption,
main .atlas-caption,
main .tower-illustration-note,
main .tower-plan-note {
  font-size: .75rem !important;
  line-height: 1.5;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--pm-quiet) !important;
}

/* ---------- ventanas de producto: material, filo de luz y sombra en capas ---------- */
.win:not(.win-map) {
  border: 1px solid var(--pm-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 38%),
    linear-gradient(180deg, #15231B 0%, #0E1913 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 1px 2px rgba(0, 0, 0, .35),
    0 18px 40px -18px rgba(0, 0, 0, .65),
    0 60px 120px -50px rgba(0, 0, 0, .75) !important;
}
.win .win-h { border-bottom-color: var(--pm-line); }
.win b, .win small, .win strong { font-variant-numeric: tabular-nums; }

/* ---------- funciones: el escenario tiene luz, trama y profundidad ---------- */
.feats .feature-explorer .fx-stage {
  border: 1px solid var(--pm-line) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(216, 196, 149, .085), transparent 72%),
    radial-gradient(90% 70% at 85% 0%, rgba(92, 184, 108, .07), transparent 60%),
    linear-gradient(180deg, #111D16, #0B140F) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 50px 100px -60px rgba(0, 0, 0, .9) !important;
}
.feats .feature-explorer .fx-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(232, 226, 200, .14) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 65% at 50% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 65% at 50% 45%, #000 0%, transparent 78%);
  opacity: .55;
}
.feature-explorer .fx-p { z-index: 1; }
.feature-explorer .fx-p .win:not(.win-map) {
  max-width: 660px;
  border-radius: 20px !important;
  transform: translateY(0) scale(.985);
  transition: transform .9s var(--pm-ease);
}
.feature-explorer .fx-p.on .win:not(.win-map) { transform: none; }
.feature-explorer .fx-p .win-h { background: rgba(255, 255, 255, .025) !important; }

/* pestaña activa de la lista de funciones */
.feature-explorer .fx-t.on {
  border-color: var(--pm-line-hi) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)), #14211A !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 32px -20px rgba(0, 0, 0, .8);
}
.feature-explorer .fx-t b { letter-spacing: -.01em; }

/* ---------- botones: champagne con brillo y filo de luz ---------- */
.btn-primary,
#fin .btn-primary,
.w-btn,
.demo-submit {
  background: linear-gradient(180deg, var(--pm-champ-hi) 0%, var(--pm-champ) 48%, var(--pm-champ-lo) 100%) !important;
  color: #0B140F !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(90, 70, 30, .25),
    0 1px 2px rgba(0, 0, 0, .3),
    0 14px 30px -14px rgba(216, 196, 149, .45) !important;
}
.btn-primary:hover,
.demo-submit:hover { filter: brightness(1.05); }
.nav-cta {
  background: linear-gradient(180deg, var(--pm-champ-hi), var(--pm-champ) 55%, var(--pm-champ-lo)) !important;
  color: #0B140F !important;
  border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px -10px rgba(216, 196, 149, .5) !important;
}
.nav-cta svg, .nav-cta .i { color: #0B140F; }

/* ---------- barra superior: filo de luz al despegarse ---------- */
.nav.solid .nav-in { border-bottom: 1px solid transparent !important; border-image: linear-gradient(90deg, transparent, rgba(216, 196, 149, .18), transparent) 1 !important; }

/* ---------- tarjetas de razones, perspectivas y recorridos ---------- */
main .reasons-row .win,
main .perspective-panel .win,
main .journey-card {
  border-radius: 22px;
}

/* ---------- preguntas: filas más finas y signo con aro ---------- */
.faq details { border-color: var(--pm-line) !important; }
.faq summary { font-size: clamp(1.0625rem, 1.2vw, 1.25rem) !important; letter-spacing: -.01em; transition: color .3s; }
.faq summary:hover { color: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 960px) {
  main h2[id^="h-"] { font-size: clamp(2.35rem, 10.4vw, 3.25rem) !important; max-width: none; }
  main > section:not(.hero):not(.end) { padding-top: 96px !important; }
  .feats .feature-explorer .fx-stage { border-radius: 22px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-explorer .fx-p .win:not(.win-map) { transition: none; transform: none; }
}
