/* Adaptación de docs/propuestas/recomendada.html. Solo portada. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}

:root {
  --paper: #fbf4f3;
  --paper-2: #f6e9ec;
  --lilac: #ece2ee;
  --card: #fdf9f8;
  --night: #232741;
  --night-2: #2e3457;
  --night-3: #3a416b;

  --ink: #2e2536;
  --ink-soft: #5f5162;
  --ink-faint: #8a7c8e;

  --wine: #7a2f52;
  --wine-deep: #5b1f3c;
  --rose: #c98a9f;
  --gold: #a8834c;
  --gold-soft: #d9bd93;

  --line: #e2d0d7;
  --line-strong: #c6a5b2;

  --font-display:
    "Sitka Display", Constantia, "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-lit: Constantia, Georgia, "Times New Roman", serif;

  --step: clamp(1rem, 0.6vw + 0.9rem, 1.06rem);
  --radius-panel: 14px;
  --radius-ornate: 2px 22px 2px 22px;
  --shadow-soft: 0 18px 40px -28px rgba(46, 37, 54, 0.55);
  --shadow-lift: 0 26px 60px -34px rgba(46, 37, 54, 0.6);

  /* Curvas de movimiento. No inventar otras: ver tools/ui-skills/animate. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step);
  line-height: 1.62;
  letter-spacing: 0.002em;
}

a {
  color: var(--wine);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--wine-deep);
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-ligatures: common-ligatures;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display--xl {
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
}
.display--l {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}
.display--m {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.eyebrow {
  font-family: var(--font-text);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 58ch;
}
.fine {
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
.lit {
  font-family: var(--font-lit);
  font-size: 1.14em;
  line-height: 1.66;
}

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 0.7rem;
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 18%,
    var(--line-strong) 82%,
    transparent
  );
}
.rule--center {
  justify-content: center;
}
.rule--center::before,
.rule--center::after {
  max-width: 180px;
}

.seal {
  --s: 56px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(var(--s) * 0.42);
  color: #fff6f2;
  background: radial-gradient(
    circle at 32% 28%,
    #9c4563,
    #7a2f52 58%,
    #4f1b33 100%
  );
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.16),
    inset 0 0 0 6px rgba(0, 0, 0, 0.16),
    0 8px 18px -10px rgba(91, 31, 60, 0.8);
  position: relative;
}
.seal::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 240, 234, 0.42);
}

.frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
}
.frame--ornate {
  border-radius: var(--radius-ornate);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7em 1.5em;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #fff8f5;
  background: var(--wine);
  border: 1px solid var(--wine-deep);
  border-radius: var(--radius-ornate);
  text-decoration: none;
  box-shadow: 0 10px 22px -16px rgba(91, 31, 60, 0.9);
  transition:
    background-color 0.22s ease,
    transform 0.16s var(--ease-out),
    box-shadow 0.22s ease;
}
.btn:hover {
  background: var(--wine-deep);
  color: #fff8f5;
  box-shadow: 0 16px 30px -18px rgba(91, 31, 60, 0.95);
}
/* El levantamiento al pasar el cursor solo en punteros finos: en táctil el
   hover falso se queda pegado después del toque. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
  }
}
/* La pulsación sí aplica en cualquier dispositivo: es un toque real. */
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn--ghost {
  background: transparent;
  color: var(--wine);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  background: color-mix(in srgb, var(--lilac) 70%, #fff);
  color: var(--wine-deep);
}

.grain {
  position: relative;
  isolation: isolate;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.055'/></svg>");
}

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wine);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip:focus {
  left: 0;
}

.section {
  padding: clamp(52px, 7vw, 104px) 0;
}
.section--tint {
  background: var(--paper-2);
}
.section--lilac {
  background: linear-gradient(180deg, var(--lilac), #f4ecf2);
}
.section--night {
  background: linear-gradient(180deg, #232741, #2e3457);
  color: #f2e8ec;
}

.head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 54px);
}
.head h2 {
  color: #2b2130;
}
.head p {
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 40px);
  margin-top: 10px;
}
.route::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 26px;
  height: 2px;
  background-image: linear-gradient(
    90deg,
    var(--line-strong) 0 8px,
    transparent 8px 16px
  );
  background-size: 16px 2px;
  opacity: 0.85;
  transition: clip-path 900ms var(--ease-in-out);
}
@media (scripting: enabled) {
  .route:not(.is-drawn)::before {
    clip-path: inset(0 100% 0 0);
  }
}
.route.is-drawn::before {
  clip-path: inset(0 0 0 0);
}
@media (max-width: 820px) {
  .route {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .route::before {
    left: 26px;
    right: auto;
    top: 6%;
    bottom: 8%;
    width: 2px;
    height: auto;
    background-image: linear-gradient(
      180deg,
      var(--line-strong) 0 8px,
      transparent 8px 16px
    );
    background-size: 2px 16px;
  }
  @media (scripting: enabled) {
    .route:not(.is-drawn)::before {
      clip-path: inset(0 0 100% 0);
    }
  }
  .route.is-drawn::before {
    clip-path: inset(0 0 0 0);
  }
}
.node {
  position: relative;
  padding-top: 0;
}
.node__mark {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 1.32rem;
  transform: rotate(45deg);
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 10px 22px -18px rgba(91, 31, 60, 0.9);
}
.node__mark span {
  transform: rotate(-45deg);
}
@media (max-width: 820px) {
  .node {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 20px;
    align-items: start;
  }
  .node__mark {
    margin-bottom: 0;
  }
  .node__body {
    padding-top: 4px;
  }
}
.node h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: #2b2130;
  margin-bottom: 8px;
}
.node p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
@media (max-width: 900px) {
  .slots {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}
.slot {
  position: relative;
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-ornate);
  overflow: hidden;
  transition:
    transform 0.24s var(--ease-out),
    box-shadow 0.24s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .slot:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
  }
  .slot:hover .slot__thumb {
    transform: scale(1.03);
  }
}
.slot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(198, 165, 178, 0.38);
  pointer-events: none;
  border-radius: 2px 16px 2px 16px;
}
.slot__thumb {
  position: relative;
  height: 132px;
  background: linear-gradient(180deg, #39406e, #2a2f52 62%, #232741);
  overflow: hidden;
  transition: transform 0.24s var(--ease-out);
}
.slot__thumb::before {
  content: "";
  position: absolute;
  left: 26%;
  top: 16%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff6ea, #e8d2ba 70%);
  box-shadow: 0 0 18px 8px rgba(240, 220, 190, 0.35);
}
.slot__thumb::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 34px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(249, 237, 242, 0.94),
    rgba(249, 237, 242, 0.82)
  );
  border: 1px solid #ad7e95;
}
.slot__thumb i {
  position: absolute;
  left: 20px;
  bottom: 22px;
  z-index: 2;
  width: 52%;
  height: 4px;
  border-radius: 2px;
  background: #7a2f52;
  opacity: 0.55;
  box-shadow:
    0 8px 0 -1px rgba(122, 47, 82, 0.28),
    0 15px 0 -2px rgba(122, 47, 82, 0.18);
}
.slot__body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}
.slot__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #2b2130;
}
.slot__meta {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.slot__zones {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.slot__body .btn {
  min-height: 40px;
  font-size: 0.86rem;
  margin-top: 10px;
}
.slot--empty .slot__thumb {
  background: repeating-linear-gradient(
    135deg,
    #e9dde3 0 10px,
    #f3eaee 10px 20px
  );
}
.slot--empty .slot__thumb::before,
.slot--empty .slot__thumb::after,
.slot--empty .slot__thumb i {
  display: none;
}
.slot--empty .slot__name {
  color: var(--ink-faint);
}

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
@media (max-width: 900px) {
  .ledger {
    grid-template-columns: 1fr;
  }
}
.meter-card {
  background: linear-gradient(180deg, #fffdfc, #f9eeeb);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--wine);
  border-radius: 3px 3px 14px 14px;
  box-shadow: var(--shadow-soft);
}
.meter-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  margin-bottom: 16px;
  color: #2b2130;
}
/* Medidor por créditos: una celda equivale a un crédito.
   Se encienden de izquierda a derecha, así que la primera celda marca el
   umbral donde empieza a cobrarse (200 caracteres). */
.meter {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  height: 18px;
  margin-top: 4px;
}
.meter__cell {
  border-radius: 3px;
  background: #ead9df;
  box-shadow: inset 0 1px 2px rgba(46, 37, 54, 0.14);
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}
.meter__cell.is-on {
  background: linear-gradient(180deg, #a34a6d, var(--wine));
  box-shadow: inset 0 0 0 1px rgba(91, 31, 60, 0.35);
}
.meter-scale {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.meter-legend {
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin: 10px 0 0;
  line-height: 1.45;
}
.meter-card label {
  display: block;
  margin: 22px 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.meter-card input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--wine);
}
.meter-card dl {
  margin: 18px 0 0;
  font-variant-numeric: tabular-nums;
}
.meter-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.meter-card dl div:last-child {
  border-bottom: 0;
}
.meter-card dt {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.meter-card dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}
.meter-card .total {
  color: var(--wine);
  font-size: 1.08rem;
}
.meter-card .result {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 12px;
}

.backlog {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}
.bl-item {
  border-bottom: 1px solid var(--line);
}
.bl-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  color: #332a3a;
  font-weight: 600;
}
.bl-item summary::-webkit-details-marker {
  display: none;
}
.bl-item summary .q {
  font-family: var(--font-text);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.bl-item summary .chev {
  color: var(--wine);
  transition: transform 0.2s ease;
  font-size: 0.8rem;
}
.bl-item[open] summary .chev {
  transform: rotate(90deg);
}
.bl-item .a {
  padding: 0 4px 20px 74px;
  color: var(--ink-soft);
  font-family: var(--font-lit);
  font-size: 1.02rem;
  line-height: 1.66;
  max-width: 74ch;
}
.bl-item summary:hover {
  color: var(--wine-deep);
}
@keyframes backlogIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.bl-item[open] .a {
  animation: backlogIn 200ms var(--ease-out) both;
}
@media (max-width: 640px) {
  .bl-item .a {
    padding-left: 4px;
  }
}

.letter-wrap {
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 60px) 0;
}
.letter {
  position: relative;
  width: min(760px, 94vw);
  padding: clamp(34px, 5vw, 64px) clamp(26px, 5vw, 68px) clamp(30px, 4vw, 50px);
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 31px,
      rgba(198, 165, 178, 0.16) 31px 32px
    ),
    linear-gradient(180deg, #fdfaf6, #f8efe9);
  border: 1px solid #dcc4bd;
  box-shadow:
    0 40px 80px -52px rgba(46, 37, 54, 0.7),
    0 1px 0 #fff inset;
  transform: rotate(0.35deg);
  /* Bisagra del despliegue: el borde inferior del papel. */
  transform-origin: 50% 100%;
}
/* La carta se despliega desde la mesa: arranca inclinada hacia atrás con el
   borde inferior como bisagra y se endereza frente al lector. El sello cae
   cuando el papel ya esta plano (follow-through). Sin estado oculto aqui: la
   oculta `.reveal`, que anade el JS, asi que sin JS la carta se ve entera. */
@keyframes letterUnfold {
  from {
    transform: perspective(1600px) rotateX(9deg) scale(0.99);
  }
  99% {
    transform: perspective(1600px) rotateX(0.6deg) scale(1);
  }
  to {
    /* Termina en `none` para que el texto quede nitido y sin capa 3D. */
    transform: none;
  }
}
@keyframes letterFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes sealSettle {
  from {
    opacity: 0;
    transform: rotate(-18deg) scale(0.82);
  }
  to {
    opacity: 1;
    transform: rotate(-7deg) scale(1);
  }
}
/* Dos animaciones: la opacidad entra rapida (ease-out) y el giro se reparte en
   todo el recorrido (ease-in-out). Con una sola curva, o entra tarde o el giro
   se gasta en los primeros milisegundos. */
.letter-wrap .letter.is-in {
  animation:
    letterFade 520ms var(--ease-out) both,
    letterUnfold 1100ms var(--ease-in-out) both;
}
.letter-wrap .letter.is-in .letter__seal {
  animation: sealSettle 520ms var(--ease-out) 620ms both;
}
/* Luz cálida que baña el papel al posarse, y se va. Solo opacidad: no se sale
   del papel y no obliga a repintar en cada fotograma. */
@keyframes letterGlow {
  0% {
    opacity: 0;
  }
  38% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}
.letter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    125% 85% at 26% 6%,
    rgba(255, 244, 224, 0.9),
    rgba(255, 244, 224, 0) 64%
  );
}
.letter-wrap .letter.is-in::after {
  animation: letterGlow 1100ms var(--ease-out) 160ms both;
}
.letter::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid #e2cdc6;
  pointer-events: none;
}
.letter__date {
  position: absolute;
  top: 22px;
  right: 34px;
  font-family: var(--font-text);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a8189;
}
.letter__seal {
  position: absolute;
  right: -16px;
  bottom: 34px;
  --s: 58px;
  transform: rotate(-7deg);
}
.letter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #2b2130;
  margin-bottom: 6px;
}
.letter .salute {
  font-family: var(--font-lit);
  font-style: italic;
  font-size: 1.14rem;
  color: #6b5560;
  margin-bottom: 22px;
}
.letter p {
  font-family: var(--font-lit);
  font-size: 1.06rem;
  line-height: 1.78;
  color: #463a48;
  max-width: 62ch;
  margin-bottom: 16px;
}
.letter p strong {
  color: #2b2130;
}
.letter .sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(198, 165, 178, 0.5);
}
.letter .sign .who {
  font-family: var(--font-lit);
  font-style: italic;
  color: #5b4652;
}
.letter .sign .role {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8189;
}
.margin-note {
  position: relative;
  margin: 22px 0 0;
  padding: 14px 18px 14px 22px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 2px solid var(--gold);
  font-size: 0.86rem;
  color: #6b5560;
  max-width: 56ch;
}
.margin-note strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.letter--sm {
  max-width: 560px;
  padding: clamp(24px, 3.4vw, 40px);
}
.letter--sm p {
  font-size: 1rem;
}

.docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
@media (max-width: 820px) {
  .docs {
    grid-template-columns: 1fr;
  }
}
.doc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px 18px 2px 18px;
  padding: 20px 22px;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .doc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
  }
}
.doc-card h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: #2b2130;
  margin-bottom: 6px;
}
.doc-card p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.doc-card a {
  font-size: 0.84rem;
  font-weight: 600;
}

.divider {
  display: grid;
  place-items: center;
  padding: clamp(26px, 4vw, 44px) 0;
  color: var(--gold);
}
.divider span {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.divider span::before,
.divider span::after {
  content: "";
  width: clamp(40px, 10vw, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.divider span::after {
  background: linear-gradient(270deg, transparent, var(--line-strong));
}
.divider--dark {
  color: var(--gold-soft);
}
.divider--dark span::before,
.divider--dark span::after {
  background: linear-gradient(90deg, transparent, rgba(217, 189, 147, 0.5));
}
.divider--dark span::after {
  background: linear-gradient(270deg, transparent, rgba(217, 189, 147, 0.5));
}

.head-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, #fff);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.head-bar .in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 13px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  color: #2b2130;
  text-decoration: none;
  font-size: 0.98rem;
}
.brand .bm {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wine);
  font-family: var(--font-display);
  font-size: 0.94rem;
  border-radius: 10px 10px 10px 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 6px 14px -10px rgba(91, 31, 60, 0.9);
}
.nav {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover {
  color: var(--wine);
}
@media (max-width: 820px) {
  .nav {
    display: none;
  }
}

.stage {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  padding: clamp(26px, 4.5vw, 58px) 0 clamp(120px, 16vw, 190px);
  overflow: hidden;
  background: radial-gradient(
    120% 90% at 50% -10%,
    #39406e 0%,
    #272c4b 42%,
    #1b1f36 100%
  );
  color: #f3e9ec;
}
.stage__window {
  position: absolute;
  left: 50%;
  top: -8%;
  transform: translateX(-50%);
  width: min(760px, 80vw);
  height: 76%;
  border-radius: 52% 52% 0 0/38% 38% 0 0;
  background: linear-gradient(180deg, #414a7e 0%, #2f3760 46%, #232a49 100%);
  border: 18px solid #1a1e33;
  box-shadow: inset 0 0 80px rgba(16, 20, 38, 0.75);
  overflow: hidden;
}
.stage__window::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 100%;
  background: #1a1e33;
  transform: translateX(-50%);
}
.stage__window::after {
  content: "";
  position: absolute;
  top: 46%;
  left: 0;
  width: 100%;
  height: 12px;
  background: #1a1e33;
}
.stage__moon {
  position: absolute;
  left: 26%;
  top: 16%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 34%,
    #fff6ea,
    #f0dcc6 62%,
    #d9be9f 100%
  );
  box-shadow:
    0 0 42px 16px rgba(246, 226, 200, 0.5),
    0 0 120px 60px rgba(200, 170, 190, 0.22);
}
.stage__beam {
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(680px, 72vw);
  height: 70%;
  transform: translateX(-50%) rotate(6deg);
  background: linear-gradient(
    100deg,
    rgba(246, 230, 208, 0.16),
    rgba(246, 230, 208, 0.03) 42%,
    transparent 70%
  );
  filter: blur(14px);
  pointer-events: none;
}
.stage__sill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, #1a1e33 0%, #151830 100%);
  border-top: 1px solid rgba(217, 189, 147, 0.28);
}
.stage__sill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 120% at 50% 0%,
    rgba(246, 226, 200, 0.1),
    transparent 70%
  );
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    115% 85% at 50% 40%,
    transparent 44%,
    rgba(14, 17, 31, 0.74) 100%
  );
}

@media (max-width: 760px) {
  .stage__window {
    width: 94vw;
    height: 56%;
    border-width: 12px;
  }
  .stage__moon {
    width: 56px;
    height: 56px;
    left: 22%;
  }
}

.hero-card {
  position: relative;
  z-index: 3;
  width: min(780px, 92vw);
  margin-inline: auto;
  padding: clamp(28px, 4.2vw, 50px) clamp(24px, 4.4vw, 56px)
    clamp(24px, 3.4vw, 40px);
  background: linear-gradient(180deg, #fdfaf8, #f7ece9);
  color: var(--ink);
  border: 1px solid #d8bdb6;
  box-shadow: 0 40px 90px -40px rgba(9, 11, 22, 0.9);
  transform: rotate(-0.4deg);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #ddc6c0;
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(198, 165, 178, 0.38);
  pointer-events: none;
}
.hero-card .seal {
  position: absolute;
  top: -24px;
  right: -16px;
  --s: 58px;
  transform: rotate(8deg);
}
.hero-card .eyebrow {
  display: block;
  text-align: center;
  color: #8a6b74;
  margin-bottom: 16px;
}
.hero-card h1 {
  text-align: center;
  max-width: 20ch;
  margin: 0 auto 14px;
}
.hero-card .lede {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 48ch;
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-card .fine {
  text-align: center;
  margin-top: 16px;
}

.hero-scene {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3vw, 34px);
  transform: translateX(-50%);
  z-index: 4;
  width: min(820px, 92vw);
}
.dbox {
  position: relative;
  padding: 26px 34px 18px;
  background: #f9edf2;
  color: #382e43;
  border: 4px double #ad7e95;
  min-height: 118px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}
.dbox .speaker {
  position: absolute;
  top: -16px;
  left: 24px;
  padding: 2px 20px;
  background: var(--wine);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.dbox p {
  margin: 0;
  font-family: var(--font-lit);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  min-height: 2.6em;
}
.dbox .next {
  display: block;
  text-align: right;
  color: var(--wine);
  font-size: 12px;
  animation: nextPulse 1.8s ease-in-out infinite;
}
@keyframes nextPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

.scene-choices {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.scene-choices label {
  cursor: pointer;
  padding: 8px 18px;
  border: 1px solid #b995ac;
  border-radius: 2px 16px;
  background: rgba(35, 39, 65, 0.72);
  color: #f0dfe6;
  font-size: 0.84rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.scene-choices label:has(:checked) {
  background: #f1dbe0;
  color: #382e43;
  border-color: #f1dbe0;
}
.scene-choices input {
  accent-color: var(--wine);
  margin-right: 7px;
}
.scene-caption {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(243, 233, 236, 0.55);
}

.passes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .passes {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}
.pass {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--line-strong);
  border-radius: 32px 4px 4px 4px;
  padding: 26px 24px;
  display: grid;
  gap: 6px;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pass:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
  }
}
.pass--featured {
  border-top-color: var(--wine);
  background: linear-gradient(180deg, #fffafc, #fdf3f5);
}
.pass h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #2b2130;
}
.pass__count {
  color: var(--wine);
  font-weight: 650;
  font-size: 0.94rem;
}
.pass__price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #2b2130;
  line-height: 1.15;
  margin: 6px 0 4px;
}
.pass__price small {
  font-family: var(--font-text);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.pass p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.pass .btn {
  min-height: 44px;
  font-size: 0.9rem;
}
.purchase-note {
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin-top: 22px;
  max-width: 88ch;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, #fffdfc, #f8efec);
  border: 1px solid var(--line);
  border-radius: 2px 22px 2px 22px;
  padding: clamp(22px, 3vw, 34px);
}
.contact h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #2b2130;
  margin-bottom: 6px;
}
.contact p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.94rem;
}
@media (max-width: 720px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.foot {
  padding: 40px 0 48px;
  background: #241f2c;
  color: #cbbfc8;
  font-size: 0.84rem;
}
.foot .in {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.foot a {
  color: #e3d4dc;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .foot .in {
    grid-template-columns: 1fr;
  }
  .foot .links {
    justify-content: flex-start;
  }
}

/* Producción: flujo adaptable, contraste y controles reales. */
:root {
  --ink-faint: #695b6c;
  --brand: var(--wine);
}
html {
  scroll-padding-top: 110px;
}
button,
input,
select {
  font: inherit;
}
a,
button,
input,
summary {
  touch-action: manipulation;
}
img {
  height: auto;
}
h1,
h2 {
  text-wrap: balance;
}
[id] {
  scroll-margin-top: 110px;
}
.head-bar {
  position: relative;
  background: var(--paper);
  backdrop-filter: none;
}
.head-bar .in {
  flex-wrap: wrap;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.stage {
  min-height: 0;
  padding: 58px 0 26px;
  gap: 36px;
}
.stage::after {
  z-index: 0;
}
.stage .hero-card {
  transform: none;
}
.hero-card .eyebrow {
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0.025em;
  font-size: 0.88rem;
}
.hero-card h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.9rem);
}
.hero-card .fine {
  max-width: 56ch;
  margin-inline: auto;
}
.hero-scene {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-inline: auto;
}
.scene-choices {
  border: 0;
  padding: 0;
  margin-bottom: 0;
}
.scene-choices legend {
  padding: 0;
  color: #f0dfe6;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 12px;
}
.scene-choices label {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.scene-caption {
  position: relative;
  bottom: auto;
  margin: auto;
  width: min(820px, 92vw);
  color: #e1ced7;
  font-size: 0.78rem;
  letter-spacing: 0;
}
.stage :focus-visible {
  outline-color: #f4dcb9;
}
.hero-card :focus-visible {
  outline-color: var(--wine);
}
.dbox .next {
  animation: nextPulse 1.8s ease-in-out infinite;
}
.dbox p {
  min-height: 3.3em;
}
.real-capture {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 28px;
  margin-block: 40px;
}
.real-capture img {
  border: 5px solid var(--lilac);
  border-radius: 4px;
}
.real-capture figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.real-capture strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.comparison {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}
.comparison th,
.comparison td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.comparison thead {
  background: var(--lilac);
}
.comparison tbody th {
  width: 30%;
}
.fine-print {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.slot__meta {
  text-transform: none;
  letter-spacing: 0;
}
.slot__body .btn {
  min-height: 44px;
}
.bl-item summary {
  min-height: 52px;
}
.bl-item summary .q {
  color: #795c33;
}
.margin-note strong {
  color: #795c33;
}
.divider span {
  color: #795c33;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.85rem;
}
.letter {
  transform: none;
}
.letter__date {
  position: static;
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 20px;
}
.letter .sign {
  flex-wrap: wrap;
}
.letter .sign .role {
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}
.letter p {
  font-size: 1.12rem;
}
.doc-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact {
  margin-top: 28px;
}
::selection {
  background: #e4c7da;
  color: #2e2536;
}
@media (max-width: 820px) {
  .head-bar .in {
    padding: 14px 0;
    gap: 8px;
  }
  .nav {
    display: flex;
    font-size: 0.83rem;
    gap: 0 18px;
  }
  .stage {
    padding-top: 36px;
    gap: 28px;
  }
  .stage__window {
    height: 100%;
  }
  .hero-card {
    width: 88vw;
    padding: 32px 24px 28px;
  }
  .hero-card .seal {
    right: -10px;
    top: -20px;
    --s: 46px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-card .lede {
    font-size: 1rem;
  }
  .scene-choices {
    gap: 8px;
  }
  .scene-choices label {
    padding: 8px 12px;
  }
  .dbox {
    padding: 28px 18px 14px;
  }
  .dbox p {
    min-height: 5em;
  }
  .real-capture {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .comparison th,
  .comparison td {
    padding: 12px;
    min-width: 110px;
  }
  .letter {
    width: 100%;
  }
  .letter-wrap {
    padding-inline: 0;
  }
  .letter__seal {
    right: -5px;
    --s: 44px;
  }
  .divider span {
    gap: 10px;
  }
}
/* ============================================================================
   MOVIMIENTO
   ----------------------------------------------------------------------------
   Criterio tomado de tools/ui-skills/ (Emil Kowalski):
   - La portada se ve una o dos veces: es el nivel «raro», donde vive el
     presupuesto de deleite. Por eso admite mas movimiento que la aplicacion.
   - Lo que el usuario lee no se mueve: cifras, precios y requisitos, fijos.
   - Solo transform, opacity, translate y clip-path. Nunca transition: all.
   - UI por debajo de 300 ms; los revelados explicativos pueden durar mas.
   - Todo se apaga en prefers-reduced-motion, al final del archivo.
   ========================================================================== */

/* --- Entrada del heroe, sin JavaScript --- */
@starting-style {
  .stage .hero-card {
    opacity: 0;
    transform: translateY(10px);
  }
  .hero-scene {
    opacity: 0;
    transform: translateY(10px);
  }
}
.hero-card {
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
}
.hero-scene {
  transition:
    opacity 450ms var(--ease-out) 120ms,
    transform 450ms var(--ease-out) 120ms;
}

/* --- Revelado al entrar en pantalla ---
   El estado oculto solo existe cuando hay JavaScript: sin el, el contenido se
   ve completo. Se anima translate y no transform para no pisar las
   rotaciones de la carta y de las tarjetas. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    translate: 0 14px;
  }
}
.reveal.is-in {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 450ms var(--ease-out),
    translate 450ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}

/* --- Petalos de la escena --- */
.petal {
  position: absolute;
  top: -6%;
  z-index: 2;
  width: 9px;
  height: 13px;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(160deg, #e6b7c3, #c98a9f);
  opacity: 0;
  pointer-events: none;
  animation: petalDrift 18s linear infinite;
}
@keyframes petalDrift {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translate3d(5vw, 92vh, 0) rotate(220deg);
    opacity: 0;
  }
}
.petal--1 {
  left: 8%;
  animation-duration: 21s;
  animation-delay: -3s;
}
.petal--2 {
  left: 31%;
  animation-duration: 17s;
  animation-delay: -9s;
  width: 8px;
  height: 11px;
}
.petal--3 {
  left: 58%;
  animation-duration: 25s;
  animation-delay: -15s;
}
.petal--4 {
  left: 82%;
  animation-duration: 19s;
  animation-delay: -6s;
  width: 7px;
  height: 10px;
}
.petal--5 {
  left: 46%;
  animation-duration: 27s;
  animation-delay: -20s;
  width: 10px;
  height: 14px;
}

/* --- Cambio de idioma: fundido con un desenfoque en la costura ---
   Sin el desenfoque el ojo lee dos textos distintos sustituyendose. */
.dbox p #scene-dialogue {
  transition:
    opacity 160ms ease,
    filter 160ms ease;
}
.dbox p #scene-dialogue.is-swapping {
  opacity: 0.7;
  filter: blur(2px);
}

/* --- Accesibilidad: menos movimiento, no cero --- */
@media (prefers-reduced-motion: reduce) {
  .petal,
  .dbox .next,
  .bl-item[open] .a {
    animation: none;
  }
  .reveal,
  .reveal.is-in,
  .hero-card,
  .hero-scene,
  .dbox p #scene-dialogue,
  .btn,
  .slot,
  .slot__thumb,
  .pass,
  .doc-card,
  .meter__cell,
  .node__mark,
  .node__mark span,
  .seal {
    transition: none;
  }
  .reveal {
    opacity: 1;
    translate: 0 0;
  }
  .route::before,
  .route.is-drawn::before {
    clip-path: none;
  }
  /* Sin posado, sello ni brillo: la carta aparece entera. */
  .letter-wrap .letter.is-in,
  .letter-wrap .letter.is-in .letter__seal,
  .letter-wrap .letter.is-in::after {
    animation: none;
  }
  .petal {
    display: none;
  }
}
