/* =========================================================
   Goddess Divana · v2
   ========================================================= */
:root {
  --bg: #070506;
  --bg-2: #0d0809;
  --card: #120a0c;
  --line: #241316;
  --line-2: #3a1d22;
  --ink: #f5eeeb;
  --muted: #a3969a;
  --dim: #6f6266;
  --red: #e3122d;
  --red-2: #ff2e4a;
  --red-deep: #6e0513;
  --silver: #d9d3d5;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --name: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --pad: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
body.locked { overflow: hidden; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Grano de película por encima de todo */
body::after { content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Piezas comunes ---------- */
.label { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--red-2); }
.label::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.center .label { justify-content: center; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 88px); line-height: 1; letter-spacing: -.015em; margin: 20px 0 24px; }
h2 em, h3 em { font-style: italic; color: var(--red-2); }
.sec { padding: clamp(96px, 13vw, 170px) 0; }
.sec-intro { max-width: 620px; font-size: 18px; color: var(--muted); }
.center .sec-intro { margin: 0 auto; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 30px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; border: 1px solid transparent; transition: background .35s, color .35s, border-color .35s, box-shadow .35s; will-change: transform; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); box-shadow: 0 14px 44px rgba(227, 18, 45, .45); }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--red-2); color: var(--red-2); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 11px; }

.neon { font-family: var(--serif); font-style: italic; color: #ffe8ec;
  text-shadow: 0 0 4px rgba(255, 255, 255, .8), 0 0 10px var(--red-2), 0 0 24px var(--red), 0 0 52px var(--red), 0 0 90px var(--red-deep);
  animation: flicker 7s infinite; }
@keyframes flicker { 0%, 18%, 20%, 22%, 52%, 54%, 100% { opacity: 1; } 19%, 21%, 53% { opacity: .35; text-shadow: none; } }

.js .reveal { opacity: 0; transform: translateY(44px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--red-deep), var(--red-2)); box-shadow: 0 0 10px var(--red-2); pointer-events: none; }

/* Cursor propio (solo ratón) */
.cur-dot, .cur-ring { position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s; }
.cur-dot { width: 6px; height: 6px; background: var(--red-2); box-shadow: 0 0 10px var(--red-2); }
.cur-ring { width: 38px; height: 38px; border: 1px solid rgba(255, 46, 74, .7); transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s; }
.cur-ring.big { width: 72px; height: 72px; background: rgba(227, 18, 45, .1); }
@media (hover: hover) and (pointer: fine) { body.has-cursor .cur-dot, body.has-cursor .cur-ring { opacity: 1; } body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* =========================================================
   Carga + puertas del Palacio (aviso +18)
   ========================================================= */
#gate { position: fixed; inset: 0; z-index: 300; perspective: 2000px; overflow: hidden; }
#gate.done { display: none; }
.loader { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: var(--bg); transition: opacity .8s, visibility .8s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader-in { text-align: center; }
.heel-draw { width: 124px; height: 120px; overflow: visible; }
.heel-draw path { fill: transparent; stroke: var(--red-2); stroke-width: 1.1; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); filter: drop-shadow(0 0 6px rgba(255, 46, 74, .7));
  animation: draw 1.7s var(--ease) .1s forwards, fillin .8s 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: var(--red); } }
.loader .pct { margin-top: 22px; font-family: var(--name); font-size: 12px; letter-spacing: .5em; color: var(--muted); }
.loader .bar { width: 170px; height: 1px; margin: 14px auto 0; background: var(--line-2); overflow: hidden; }
.loader .bar i { display: block; height: 100%; background: var(--red-2); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .35s; }

.door { position: absolute; top: 0; bottom: 0; width: 50.2%; overflow: hidden; transform-style: preserve-3d; backface-visibility: hidden; transition: transform 2s var(--ease-io), filter 2s; }
.door-l { left: 0; transform-origin: left center; }
.door-r { right: 0; transform-origin: right center; }
#gate.opening .door-l { transform: rotateY(-104deg); filter: brightness(.4); }
#gate.opening .door-r { transform: rotateY(104deg); filter: brightness(.4); }
.door-face { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at var(--hx) 50%, rgba(110, 5, 19, .28), transparent 60%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 9px),
  linear-gradient(180deg, #140a0c, #070405 60%, #040203); }
.door-l .door-face { --hx: 100%; border-right: 1px solid #2c1519; }
.door-r .door-face { --hx: 0%; border-left: 1px solid #2c1519; }
.door-studs { position: absolute; inset: 3.2% 7%; border: 4px dotted rgba(217, 211, 213, .3); }
.door-panel { position: absolute; left: 14%; right: 14%; border: 1px solid rgba(255, 46, 74, .6);
  box-shadow: 0 0 14px rgba(227, 18, 45, .35), inset 0 0 14px rgba(227, 18, 45, .25); }
.door-panel::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(217, 211, 213, .1); }
.door-panel.p1 { top: 9%; height: 36%; }
.door-panel.p2 { top: 51%; height: 40%; }
.door-knock { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -10px; border-radius: 50%; border: 3px solid #b9afb2;
  box-shadow: 0 3px 10px #000, inset 0 0 6px rgba(0, 0, 0, .7); }
.door-knock::before { content: ""; position: absolute; left: 50%; top: -14px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8e8487 60%, #3a3335); }
.door-l .door-knock { right: 7%; }
.door-r .door-knock { left: 7%; }
.door-emblem { position: absolute; top: 18%; width: 170px; height: 164px; filter: drop-shadow(0 0 16px rgba(227, 18, 45, .55)); }
.door-l .door-emblem { right: -85px; }
.door-r .door-emblem { left: -85px; }
.gate-flash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(40% 60% at 50% 50%, rgba(255, 46, 74, .55), transparent 70%); }
#gate.opening .gate-flash { animation: flash 2s var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.gate-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 2; background: var(--red-2); box-shadow: 0 0 22px 4px rgba(255, 46, 74, .7); opacity: .55; transition: opacity .4s; }
#gate.opening .gate-seam { opacity: 0; }
.gate-box { position: absolute; left: 50%; top: 50%; z-index: 4; width: min(470px, calc(100% - 32px)); transform: translate(-50%, -50%); text-align: center; padding: 42px 30px 32px;
  background: rgba(9, 5, 6, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8), 0 0 70px rgba(227, 18, 45, .18); transition: opacity .55s, transform .55s var(--ease); }
#gate.opening .gate-box { opacity: 0; transform: translate(-50%, -44%) scale(.94); pointer-events: none; }
.js .gate-box { opacity: 0; transform: translate(-50%, -46%); }
#gate.ask .gate-box { opacity: 1; transform: translate(-50%, -50%); }
.gate-box .heel { display: block; width: 84px; height: 80px; margin: 0 auto 14px; filter: drop-shadow(0 0 14px rgba(227, 18, 45, .6)); }
.gate-box .mono { font-family: var(--name); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.gate-box h2 { font-size: clamp(34px, 8.6vw, 46px); margin: 10px 0 12px; }
.gate-box p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.gate-box .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gate-box .row .btn { flex: 1 1 150px; padding: 0 16px; letter-spacing: .18em; white-space: nowrap; }
.snd-pick { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.snd-pick input { accent-color: var(--red); width: 16px; height: 16px; }
.gate-box small { display: block; margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--dim); }
.gate-box small button { font-size: inherit; color: var(--muted); text-decoration: underline; }
.gate-box small button:hover { color: var(--red-2); }

/* =========================================================
   Cabecera
   ========================================================= */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 5, 6, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.hdr.solid::before { opacity: 1; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; max-width: 1400px; }
.logo { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.logo-mark { width: 62px; height: 60px; flex: none; filter: drop-shadow(0 0 6px rgba(255, 46, 74, .7)); transform-origin: 88% 100%; transition: transform .6s var(--ease), filter .6s; }
.logo:hover .logo-mark { transform: rotate(-7deg); filter: drop-shadow(0 0 13px rgba(255, 46, 74, .85)); }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt small { font-size: 9px; font-weight: 600; letter-spacing: .6em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.logo-txt span { font-family: var(--name); font-weight: 700; font-size: 25px; letter-spacing: .06em; }
.hdr-right { display: flex; align-items: center; gap: 26px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { position: relative; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--red-2); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0 20px; }
.snd { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--muted); transition: color .3s, border-color .3s; }
.snd:hover, .snd[aria-pressed="true"] { color: var(--red-2); border-color: var(--red-2); }
.snd svg { width: 18px; height: 18px; }
.snd .on { display: none; }
.snd[aria-pressed="true"] .on { display: block; }
.snd[aria-pressed="true"] .off { display: none; }
.burger { display: none; }
@media (max-width: 1180px) {
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px; background: rgba(7, 5, 6, .97); opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 34px; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .nav .btn { margin-top: 10px; min-height: 52px; }
  .burger { display: grid; place-items: center; width: 46px; height: 46px; position: relative; z-index: 2; }
  .burger span { position: absolute; width: 26px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
  .burger span:first-child { transform: translateY(-5px); }
  .burger span:last-child { transform: translateY(5px); }
  .burger.x span:first-child { transform: rotate(45deg); }
  .burger.x span:last-child { transform: rotate(-45deg); }
  .hdr-right { gap: 12px; }
}
@media (max-width: 480px) {
  .logo { gap: 9px; }
  .logo-mark { width: 50px; height: 48px; }
  .logo-txt span { font-size: 21px; }
  .logo-txt small { font-size: 8px; letter-spacing: .5em; margin-bottom: 5px; }
  .snd { width: 38px; height: 38px; }
}

/* =========================================================
   Portada 3D
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 660px; overflow: hidden; isolation: isolate; }
#hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -3; }
.hero-fallback { display: none; }
.no-webgl .hero-fallback { display: block; position: absolute; left: 50%; top: 42%; z-index: -2; width: min(64vw, 360px); aspect-ratio: 2 / 3; transform: translate(-50%, -50%);
  border-radius: 50% 50% 0 0 / 33.4% 33.4% 0 0; overflow: hidden; box-shadow: 0 0 0 1.5px var(--red-2), 0 0 50px rgba(227, 18, 45, .6); }
.no-webgl .hero-fallback img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.no-webgl .hero { background: radial-gradient(60% 50% at 50% 40%, rgba(110, 5, 19, .45), transparent 70%), var(--bg); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: -1; pointer-events: none; background: linear-gradient(0deg, var(--bg) 6%, rgba(7, 5, 6, .78) 42%, transparent); }
.hero-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px 0 42px; pointer-events: none; }
.hero-ui .wrap { max-width: 1400px; }
.hero-ui a, .hero-ui button { pointer-events: auto; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 12px var(--red-2); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
h1 { text-align: center; font-weight: 400; line-height: 1; margin-bottom: 26px; }
.h1-small { display: block; font-family: var(--name); font-size: clamp(14px, 1.7vw, 24px); letter-spacing: .7em; text-transform: uppercase; color: var(--silver); margin: 0 0 6px .7em; }
.h1-big { display: block; width: fit-content; margin: 0 auto; padding: 0 .06em; font-family: var(--name); font-size: clamp(62px, 13vw, 220px); line-height: 1; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 18%, #f3dfe1 55%, #ff2e4a 112%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(227, 18, 45, .3)); }
.js .h1-big { clip-path: inset(-20% 100% -20% 0); }
.ready .h1-big { animation: write 2.2s cubic-bezier(.6, .1, .3, 1) .6s both; }
@keyframes write { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }
.js .hero .fade { opacity: 0; transform: translateY(24px); }
.ready .hero .fade { animation: up 1.1s var(--ease) both; animation-delay: var(--d, 1.2s); }
@keyframes up { to { opacity: 1; transform: none; } }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.lead { max-width: 470px; font-size: 16px; color: var(--muted); }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-bottom .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-side { position: absolute; top: 50%; font-size: 10px; font-weight: 600; letter-spacing: .55em; text-transform: uppercase; color: var(--dim); writing-mode: vertical-rl; }
.hero-side.l { left: 24px; transform: translateY(-50%) rotate(180deg); }
.hero-side.r { right: 24px; transform: translateY(-50%); }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--dim); pointer-events: auto; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--red-2), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero-bottom { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .hero-bottom .ctas { justify-content: center; }
  .hero-side, .scroll-cue { display: none; }
  .kicker { justify-content: center; font-size: 10px; letter-spacing: .3em; }
  .lead { font-size: 15px; }
}
@media (max-width: 480px) {
  .hero-ui { padding-bottom: 26px; }
  .hero-bottom .ctas { width: 100%; }
  .hero-bottom .ctas .btn { width: 100%; }
  h1 { margin-bottom: 18px; }
}

/* Separador */
.divider { display: flex; align-items: center; justify-content: center; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 18px var(--pad) 0; }
.divider-line { flex: 1; max-width: 460px; height: 1px; background: linear-gradient(90deg, transparent, var(--red-deep) 45%, var(--red-2)); }
.divider-line:last-child { background: linear-gradient(270deg, transparent, var(--red-deep) 45%, var(--red-2)); }
.divider-mark { width: 48px; height: 46px; flex: none; filter: drop-shadow(0 0 8px rgba(255, 46, 74, .6)); }
.divider + .sec { padding-top: clamp(70px, 9vw, 120px); }

/* =========================================================
   La Diosa: manifiesto que se enciende al bajar + foto 3D
   ========================================================= */
.manifest { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.words { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 50px); line-height: 1.24; margin-top: 26px; }
.words .w { color: rgba(245, 238, 235, .13); transition: color .5s; }
.words .w.on { color: var(--ink); }
.words .w.hot.on { color: var(--red-2); font-style: italic; }
.sign { font-family: var(--name); font-size: 28px; letter-spacing: .04em; color: var(--red-2); margin-top: 30px; }
.tilt { position: relative; transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.tilt.moving { transition: transform .12s linear; }
.tilt .ph { position: relative; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid var(--line-2); }
.tilt .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.tilt .glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 45%); mix-blend-mode: overlay; opacity: 0; transition: opacity .4s; }
.tilt:hover .glare { opacity: 1; }
.tilt .frame { position: absolute; inset: 0; border: 1px solid var(--red-deep); transform: translate3d(22px, 22px, -40px); pointer-events: none; }
.tilt .stamp { position: absolute; left: -22px; bottom: 40px; padding: 14px 18px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .35em; text-transform: uppercase; transform: translateZ(60px); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.traits { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--line); }
.trait { padding: 34px 30px 0 0; }
.trait + .trait { padding-left: 30px; border-left: 1px solid var(--line); }
.trait b { display: block; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 28px; margin-bottom: 8px; }
.trait span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .manifest { grid-template-columns: 1fr; }
  .tilt { max-width: 400px; margin-right: 22px; }
  .tilt .stamp { left: auto; right: -12px; }
  .traits { grid-template-columns: 1fr; }
  .trait, .trait + .trait { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   El Palacio: recorrido lateral con profundidad
   ========================================================= */
.palace-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 92px 0 24px; }
.palace-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(16px, 3vh, 30px); }
.palace-head h2 { margin: 10px 0 0; font-size: clamp(36px, min(5vw, 7.4vh), 76px); }
.palace-head .neon { font-size: clamp(30px, min(3.8vw, 6vh), 58px); line-height: 1; rotate: -4deg; padding-bottom: 6px; white-space: nowrap; }
.palace-track { display: flex; gap: clamp(24px, 3vw, 44px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.room { flex: none; width: clamp(220px, min(27vw, calc((100vh - 380px) * .8)), 400px); transform-style: preserve-3d; transform: perspective(1400px) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); transition: transform .2s linear; }
.room .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line-2); }
.room .ph img { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; object-fit: cover; transform: translateX(var(--px, 0px)); }
.room .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 5, 6, .6), transparent 45%); }
.room .num { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-family: var(--name); font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--silver); }
.room h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; margin: 14px 0 6px; }
.room p { color: var(--muted); font-size: 15px; max-width: 360px; }
.room.intro { width: clamp(280px, 30vw, 440px); display: flex; flex-direction: column; justify-content: center; }
.room.intro p { font-size: 18px; max-width: none; }
.palace-progress { height: 1px; margin: clamp(14px, 3vh, 30px) var(--pad) 0; background: var(--line-2); }
.palace-progress span { display: block; height: 100%; background: var(--red-2); transform-origin: left; transform: scaleX(var(--pp, 0)); box-shadow: 0 0 8px var(--red-2); }
.palace-lead { display: none; }
.palace-hint { margin: 12px var(--pad) 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 900px) {
  .palace { height: auto !important; }
  .palace-sticky { position: relative; height: auto; padding: 96px 0 30px; }
  .palace-head { flex-direction: column; align-items: flex-start; }
  .palace-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; padding-bottom: 6px; }
  .palace-track::-webkit-scrollbar { display: none; }
  .room { width: 78vw; scroll-snap-align: center; transform: none !important; }
  .room.intro { display: none; }
  .palace-lead { display: block; color: var(--muted); margin-top: 16px; max-width: 520px; }
  .palace-progress { display: none; }
}

/* =========================================================
   Lo que busco: cartas que se giran
   ========================================================= */
.seek { background: var(--bg-2); border-block: 1px solid var(--line); }
.seek-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.seek-head p { max-width: 380px; color: var(--muted); }
.flips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flip { perspective: 1100px; min-height: 310px; }
.flip-in { position: relative; height: 100%; min-height: 310px; transform-style: preserve-3d; transition: transform 1s var(--ease); }
@media (hover: hover) { .flip:hover .flip-in { transform: rotateY(180deg); } }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--line-2); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(160deg, #170b0e, #0a0607); }
.face .rn { font-family: var(--name); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--red-2); }
.face h3 { font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin-top: auto; }
.face .hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.face.back { transform: rotateY(180deg); justify-content: space-between; background: linear-gradient(160deg, #4d0511, #120406); border-color: rgba(255, 46, 74, .5); box-shadow: inset 0 0 60px rgba(0, 0, 0, .45); }
.face.back p { color: #ffe3e7; font-size: 16px; }
.face.back h3 { margin: 0 0 14px; }
.face.back .soy { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.face.back .soy:hover { color: #fff; }
.flip.intro .flip-in { transform: none !important; }
.flip.intro .face { background: var(--red); border-color: var(--red); justify-content: center; }
.flip.intro h3 { font-family: var(--serif); font-size: 36px; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.05; margin: 0 0 16px; }
.flip.intro p { color: #ffe3e7; }
@media (max-width: 1020px) { .flips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flips { grid-template-columns: 1fr; } .flip, .flip-in { min-height: 250px; } }

/* =========================================================
   Sesiones
   ========================================================= */
.ses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.ses { position: relative; min-height: 580px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.ses > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.6s var(--ease); filter: saturate(.85); }
.ses:hover > img { transform: scale(1.05); }
.ses::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 5, 6, .98) 20%, rgba(7, 5, 6, .72) 55%, rgba(7, 5, 6, .25)); }
.ses-in { padding: clamp(28px, 4vw, 48px); width: 100%; }
.ses-k { font-size: 11px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--red-2); }
.ses h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 62px); line-height: 1; margin: 12px 0 26px; }
.ses li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.ses li::before { content: ""; width: 14px; height: 1px; background: var(--red-2); flex: none; transform: translateY(-4px); }
@media (max-width: 860px) { .ses-grid { grid-template-columns: 1fr; } .ses { min-height: 520px; } }

/* =========================================================
   Experiencias exclusivas
   ========================================================= */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.xp-section { background: radial-gradient(900px 520px at 50% 0%, rgba(110, 5, 19, .32), transparent 70%); }
.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.xp { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; overflow: hidden; isolation: isolate; transition: transform .6s var(--ease); }
.xp::before { content: ""; position: absolute; inset: 0; z-index: -2; background: conic-gradient(from var(--a), var(--line-2) 0 62%, var(--red-2) 75%, var(--line-2) 88%); }
.xp::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: linear-gradient(160deg, #170b0e, #0a0607 70%); }
.xp:hover { transform: translateY(-8px); }
.xp:hover::before { animation: spin 2.6s linear infinite; }
@keyframes spin { to { --a: 360deg; } }
.xp .ico { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--red-2); margin-bottom: 26px; }
.xp .ico svg { width: 26px; height: 26px; }
.xp .tag { position: absolute; top: 30px; right: 26px; font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); }
.xp h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.xp p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.xp .go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--ink); }
.xp .go span { transition: transform .4s var(--ease); }
.xp .go:hover { color: var(--red-2); }
.xp .go:hover span { transform: translateX(6px); }
@media (max-width: 1020px) { .xp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .xp-grid { grid-template-columns: 1fr; } }

/* =========================================================
   La carta: rueda 3D de prácticas
   ========================================================= */
.carta { --r: 400px; --iw: 250px; --ih: 300px; }
.ring-stage { position: relative; height: calc(var(--ih) + 60px); margin: 50px 0 10px; perspective: 1200px; touch-action: pan-y; cursor: grab; user-select: none; }
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateY(var(--rot, 0deg)); transition: transform 1s var(--ease); }
.ring.drag { transition: none; }
.ring-item { position: absolute; left: calc(var(--iw) / -2); top: calc(var(--ih) / -2); width: var(--iw); height: var(--ih); display: flex; flex-direction: column; justify-content: space-between; text-align: left; padding: 28px 24px;
  transform: rotateY(calc(var(--i) * 60deg)) translateZ(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--line-2); background: linear-gradient(170deg, #1b0c10, #090506); transition: border-color .5s, box-shadow .5s, background .5s; }
.ring-item .n { font-family: var(--name); font-size: 14px; color: var(--red-2); letter-spacing: .2em; }
.ring-item b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.ring-item small { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ring-item .cnt { font-size: 11px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--dim); }
.ring-item.on { border-color: var(--red-2); box-shadow: 0 0 50px rgba(227, 18, 45, .35), inset 0 0 40px rgba(227, 18, 45, .12); background: linear-gradient(170deg, #3a0810, #0c0507); }
.ring-nav { display: flex; justify-content: center; gap: 14px; }
.ring-nav button { width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 20px; transition: border-color .3s, color .3s; }
.ring-nav button:hover { border-color: var(--red-2); color: var(--red-2); }
.ring-panel { max-width: 900px; margin: 34px auto 0; text-align: center; }
.ring-panel .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ring-panel .tags li { padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; background: rgba(18, 10, 12, .7); animation: tagIn .6s var(--ease) both; animation-delay: calc(var(--k) * 35ms); }
@keyframes tagIn { from { opacity: 0; transform: translateY(12px); } }
.pact { margin: 40px auto 0; max-width: 560px; text-align: center; color: var(--dim); font-size: 14px; }
@media (max-width: 760px) { .carta { --r: 230px; --iw: 180px; --ih: 240px; } .ring-item { padding: 22px 18px; } .ring-item b { font-size: 26px; } .ring-item small { font-size: 13px; } }

/* =========================================================
   Juegos: test y obediencia
   ========================================================= */
.games { background: var(--bg-2); border-block: 1px solid var(--line); }
.game-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 40px 0 34px; }
.game-tabs button { padding: 13px 22px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); transition: .35s; }
.game-tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.game-panel { display: none; }
.game-panel.active { display: block; animation: up .7s var(--ease) both; }
.box { max-width: 780px; margin: 0 auto; border: 1px solid var(--line-2); background: radial-gradient(600px 300px at 50% 0%, rgba(110, 5, 19, .3), transparent 70%), linear-gradient(170deg, #140a0c, #080506); padding: clamp(24px, 4vw, 48px); position: relative; }

/* Test */
.quiz { perspective: 1400px; }
.q-dots { display: flex; gap: 8px; margin-bottom: 26px; }
.q-dots i { flex: 1; height: 2px; background: var(--line-2); transition: background .4s; }
.q-dots i.done { background: var(--red-2); box-shadow: 0 0 8px var(--red-2); }
.q-card { transform-origin: left center; }
.q-card.in { animation: qin .7s var(--ease) both; }
.q-card.out { animation: qout .45s var(--ease-io) both; }
@keyframes qin { from { opacity: 0; transform: rotateY(28deg) translateX(40px); } }
@keyframes qout { to { opacity: 0; transform: rotateY(-28deg) translateX(-40px); } }
.q-num { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--red-2); }
.q-text { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 12px 0 26px; }
.q-answers { display: grid; gap: 12px; }
.q-answers button { display: flex; gap: 16px; align-items: center; text-align: left; padding: 16px 20px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); transition: border-color .3s, background .3s, transform .4s var(--ease); }
.q-answers button b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-size: 12px; color: var(--red-2); }
.q-answers button:hover { border-color: var(--red-2); background: rgba(227, 18, 45, .08); transform: translateX(6px); }
.q-result { text-align: center; }
.q-result .k { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.q-result .t { font-family: var(--name); font-weight: 700; font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 14px 0 16px; color: var(--red-2); text-shadow: 0 0 30px rgba(227, 18, 45, .45); }
.q-result p { max-width: 520px; margin: 0 auto 28px; color: var(--silver); font-size: 17px; }
.q-result .row, .g-over .row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Juego */
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.g-top b { color: var(--ink); font-family: var(--name); font-size: 18px; letter-spacing: .05em; margin-left: 6px; }
.g-lives { display: flex; gap: 6px; }
.g-lives svg { width: 20px; height: 20px; fill: var(--red-2); filter: drop-shadow(0 0 6px rgba(255, 46, 74, .6)); transition: opacity .3s, transform .3s; }
.g-lives svg.lost { opacity: .15; transform: scale(.8); filter: none; }
.g-order { min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 18px 0 14px; }
.g-order em { display: block; min-height: 18px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--red-2); }
.g-order strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin-top: 8px; }
.g-order.pop strong { animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.g-timer { height: 3px; background: var(--line-2); overflow: hidden; }
.g-timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-2)); transform-origin: left; transform: scaleX(var(--t, 1)); }
.g-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.g-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #1a0c0f, #0a0607);
  font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); transition: border-color .2s, box-shadow .2s, transform .12s, color .2s; touch-action: manipulation; }
.g-btn svg { width: 46px; height: 46px; color: var(--ink); }
.g-btn:hover { border-color: var(--red-deep); color: var(--ink); }
.g-btn:active { transform: scale(.97); }
.g-btn.good { border-color: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, .25), inset 0 0 30px rgba(255, 255, 255, .08); }
.g-btn.bad { border-color: var(--red-2); box-shadow: 0 0 30px rgba(255, 46, 74, .5); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.g-btn kbd { font-family: var(--sans); font-size: 10px; color: var(--dim); }
.game-box.hurt { animation: hurt .5s; }
@keyframes hurt { 30% { box-shadow: inset 0 0 0 2px var(--red-2), 0 0 60px rgba(255, 46, 74, .4); } }
.g-over { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: rgba(8, 5, 6, .94); backdrop-filter: blur(6px); }
.g-over[hidden] { display: none; }
.g-over h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin-bottom: 12px; }
.g-over p { max-width: 460px; color: var(--muted); margin-bottom: 24px; }
.g-over .t { font-family: var(--name); font-weight: 700; font-size: clamp(26px, 4vw, 40px); color: var(--red-2); margin: 6px 0 10px; text-shadow: 0 0 26px rgba(227, 18, 45, .5); }
.g-over .score { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.g-rules { list-style: none; text-align: left; margin: 0 auto 26px; max-width: 440px; color: var(--silver); font-size: 15px; }
.g-rules li { padding: 6px 0 6px 26px; position: relative; }
.g-rules li::before { content: "✦"; position: absolute; left: 0; color: var(--red-2); font-size: 12px; top: 9px; }
@media (max-width: 480px) { .g-btn { min-height: 100px; } .g-btn svg { width: 38px; height: 38px; } .g-btn kbd { display: none; } }

/* =========================================================
   Contrato de sumisión
   ========================================================= */
.contract { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; margin-top: 56px; }
.c-form { display: grid; gap: 26px; }
.field label, .field .lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field input[type="text"], .field textarea { width: 100%; padding: 12px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); font-size: 17px; outline: none; transition: border-color .3s; resize: vertical; }
.field input[type="text"]:focus, .field textarea:focus { border-color: var(--red-2); }
.field textarea { min-height: 80px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button, .chip { padding: 10px 16px; border: 1px solid var(--line-2); font-size: 13px; transition: background .3s, border-color .3s, color .3s; }
.chip { border-radius: 999px; padding: 8px 14px; }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--silver); cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 4px; flex: none; }
.sig { position: relative; height: 160px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02); touch-action: none; }
.sig canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.sig .ph-txt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--dim); pointer-events: none; transition: opacity .3s; }
.sig.signed .ph-txt { opacity: 0; }
.sig .clear { position: absolute; right: 8px; top: 8px; z-index: 1; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; }
.sig .clear:hover { color: var(--red-2); }
.c-note { font-size: 13px; color: var(--dim); }
.c-error { color: var(--red-2); font-size: 14px; min-height: 1.4em; }
.doc-wrap { position: sticky; top: 104px; }
.doc { position: relative; padding: clamp(28px, 4vw, 46px); background: radial-gradient(500px 300px at 50% 0%, rgba(110, 5, 19, .25), transparent 70%), linear-gradient(170deg, #150b0d, #090506);
  border: 1px solid rgba(217, 211, 213, .16); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); font-family: var(--serif); }
.doc::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 46, 74, .25); pointer-events: none; }
.doc .seal { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--red-2); box-shadow: 0 0 24px rgba(227, 18, 45, .4); }
.doc .seal svg { width: 36px; height: 35px; }
.doc h3 { text-align: center; font-family: var(--name); font-weight: 700; font-size: 22px; letter-spacing: .08em; }
.doc .sub { text-align: center; font-family: var(--sans); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); margin: 6px 0 24px; }
.doc ol { list-style: none; counter-reset: c; font-size: 16px; line-height: 1.55; color: var(--silver); }
.doc ol li { counter-increment: c; position: relative; padding-left: 34px; margin-bottom: 12px; }
.doc ol li::before { content: counter(c, upper-roman) "."; position: absolute; left: 0; color: var(--red-2); font-family: var(--name); font-size: 13px; top: 3px; }
.doc .v { color: var(--ink); font-style: italic; border-bottom: 1px dotted rgba(255, 46, 74, .6); }
.doc .v.empty { color: var(--dim); }
.doc .signs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; font-family: var(--sans); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.doc .signs div { border-top: 1px solid var(--line-2); padding-top: 8px; }
.doc .signs .img { height: 64px; display: flex; align-items: flex-end; justify-content: center; }
.doc .signs .img img { max-height: 64px; }
.doc .signs .goddess { font-family: var(--name); font-size: 20px; color: var(--red-2); text-transform: none; letter-spacing: .02em; height: 64px; display: flex; align-items: flex-end; justify-content: center; }
.doc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 900px) { .contract { grid-template-columns: 1fr; } .doc-wrap { position: static; } }

/* =========================================================
   Tributo
   ========================================================= */
.tribute { text-align: center; background: radial-gradient(700px 400px at 50% 100%, rgba(110, 5, 19, .35), transparent 70%); }
.amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 40px auto 18px; max-width: 760px; }
.amount { min-width: 104px; padding: 16px 20px; border: 1px solid var(--line-2); font-family: var(--name); font-weight: 700; font-size: 22px; transition: background .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.amount:hover { border-color: var(--red-2); transform: translateY(-3px); }
.amount[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 12px 40px rgba(227, 18, 45, .45); }
.amount-other { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); padding: 6px 4px; margin-bottom: 30px; }
.amount-other input { width: 120px; background: transparent; border: 0; outline: none; font-family: var(--name); font-size: 22px; text-align: center; }
.amount-other span { color: var(--muted); }
.tribute .note { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* =========================================================
   Galería
   ========================================================= */
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.gal-head p { color: var(--muted); max-width: 340px; }
.gallery { columns: 3; column-gap: 16px; }
.g-item { position: relative; display: block; width: 100%; margin-bottom: 16px; overflow: hidden; break-inside: avoid; background: var(--card); cursor: zoom-in; }
.g-item img { width: 100%; transition: transform 1.2s var(--ease); }
.g-item::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 60px; font-weight: 300; color: #fff; background: rgba(110, 5, 19, .45); opacity: 0; transition: opacity .5s; }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after { opacity: 1; }
@media (max-width: 860px) { .gallery { columns: 2; column-gap: 10px; } .g-item { margin-bottom: 10px; } }
.lb { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(5, 3, 4, .96); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: min(92vw, 1100px); max-height: 84vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 120px rgba(227, 18, 45, .2); }
.lb button { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line-2); background: rgba(7, 5, 6, .6); font-size: 22px; transition: border-color .3s, color .3s; }
.lb button:hover { border-color: var(--red-2); color: var(--red-2); }
.lb .x { top: 18px; right: 18px; }
.lb .prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .35em; color: var(--muted); }
@media (max-width: 600px) { .lb .prev, .lb .next { top: auto; bottom: 10px; transform: none; } .lb .count { bottom: 28px; } }

/* =========================================================
   Protocolo y normas
   ========================================================= */
.proto { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 64px; }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40%; height: 1px; background: var(--red-2); box-shadow: 0 0 10px var(--red-2); }
.step .n { font-family: var(--name); font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--silver); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step q { color: var(--ink); font-style: italic; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 44px 30px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.rule { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 36px 34px; background: var(--bg); }
.rule svg { width: 34px; height: 34px; stroke: var(--red-2); fill: none; stroke-width: 1.2; }
.rule h3 { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 8px; }
.rule p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } .rule { padding: 28px 22px; grid-template-columns: 44px 1fr; gap: 16px; } }

/* =========================================================
   Contacto
   ========================================================= */
.cta { padding: clamp(110px, 15vw, 200px) 0; overflow: hidden; isolation: isolate; text-align: center; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; opacity: .22; filter: grayscale(.3) blur(2px); transform: scale(1.05); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(110, 5, 19, .55), var(--bg) 85%); }
.cta h2 { font-size: clamp(50px, 8.5vw, 124px); }
.cta .lede { max-width: 520px; margin: 0 auto; color: var(--silver); font-size: 18px; }
.cta .order { font-size: clamp(36px, 5vw, 64px); margin: 44px 0 46px; }
.cta .ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta .phone { margin-top: 30px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.cta .phone a:hover { color: var(--red-2); }

/* =========================================================
   Pie y botón flotante
   ========================================================= */
footer { border-top: 1px solid var(--line); padding: 46px 0 40px; font-size: 13px; color: var(--dim); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
footer .logo { color: var(--ink); }
footer nav { display: flex; gap: 10px 22px; flex-wrap: wrap; }
footer nav button { font-size: 13px; color: var(--muted); transition: color .3s; }
footer nav button:hover { color: var(--red-2); }
.r18 { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--muted); }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 10px 34px rgba(227, 18, 45, .5); transform: translateY(120px); transition: transform .5s var(--ease), background .3s; }
.fab.show { transform: none; }
.fab:hover { background: var(--red-2); }
.fab svg { width: 26px; height: 26px; }

/* Aviso al copiar un mensaje */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 600; max-width: calc(100% - 32px); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; padding: 14px 22px; background: #160a0d; border: 1px solid var(--red-2); font-size: 14px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), visibility .5s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }


/* =========================================================
   Ajustes
   ========================================================= */
#gate.skip .door, #gate.skip .gate-seam, #gate.skip .gate-box, #gate.skip .gate-flash { display: none; }
body.has-cursor input, body.has-cursor textarea { cursor: text; }
body.has-cursor #sig-canvas { cursor: crosshair; }
.xp { transition: translate .6s var(--ease); }
.xp:hover { transform: none; translate: 0 -8px; }

/* =========================================================
   Textos legales (de la v1)
   ========================================================= */
/* ---------- Textos legales ---------- */
#legal { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 4, .9); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
#legal.open { opacity: 1; visibility: visible; }
#legal .sheet { position: relative; width: 100%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); }
#legal .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 28px 8px; }
#legal .top h2 { font-size: 28px; margin: 0; }
#legal .top button { width: 44px; height: 44px; border: 1px solid var(--line-2); font-size: 22px; flex: none; }
#legal .top button:hover { border-color: var(--red-2); color: var(--red-2); }
#legal { grid-template-columns: minmax(0, 1fr); justify-items: center; }
#legal .sheet, #legal .body { min-width: 0; }
#legal .top, #legal .ltabs { flex: none; }
#legal .ltabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
#legal .ltabs::-webkit-scrollbar { display: none; }
#legal .ltab { flex: none; padding: 12px 12px 13px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s; }
#legal .ltab:hover { color: var(--ink); }
#legal .ltab[aria-selected="true"] { color: var(--ink); border-color: var(--red-2); }
#legal .body { overflow-y: auto; padding: 22px 28px 34px; color: var(--muted); font-size: 15px; }
#legal .doc { display: none; }
#legal .doc.active { display: block; }
#legal .body h3 { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; margin: 28px 0 10px; }
#legal .body p, #legal .body li { margin-bottom: 10px; }
#legal .body ul { list-style: disc; padding-left: 20px; }
#legal .body strong { color: var(--ink); font-weight: 600; }
#legal .body a, #legal .ilink { color: var(--red-2); text-decoration: underline; font-size: inherit; }
#legal .upd { font-size: 12px; color: var(--dim); }
#legal .tbl { overflow-x: auto; margin: 6px 0 16px; }
#legal table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13.5px; }
#legal th, #legal td { text-align: left; vertical-align: top; padding: 9px 11px; border: 1px solid var(--line-2); }
#legal th { color: var(--ink); font-weight: 600; background: rgba(255, 255, 255, .03); }
@media (max-width: 560px) {
  #legal { padding: 8px; }
  #legal .sheet { max-height: 94vh; }
  #legal .top { padding: 16px 18px 6px; }
  #legal .top h2 { font-size: 24px; }
  #legal .ltabs { padding: 0 10px; }
  #legal .body { padding: 18px 18px 28px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   v4 · Negro, rojo y plata (sobre la v2)
   ========================================================= */
:root {
  --silver: #dcdce2;
  --silver-2: #a8a8b1;
  --line-s: rgba(220, 220, 226, .2);
  --chrome: linear-gradient(180deg, #ffffff 12%, #d6d6dc 42%, #7d7d87 56%, #cfcfd6 72%, #f4f4f7 92%);
  --lacquer: linear-gradient(180deg, #e3162f, #8a0a1c);
}
/* Nombre y títulos en plata; el rojo queda para los acentos */
.h1-big { background: var(--chrome) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 34px rgba(227, 18, 45, .25)) !important; }
.logo-txt span { background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h2 { background: linear-gradient(180deg, #ffffff 25%, #c8c8cf 70%, #9a9aa3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
h2 em, h3 em { -webkit-text-fill-color: currentColor; color: var(--red-2); }
.label { color: var(--silver-2); }
.label::before { background: linear-gradient(90deg, transparent, var(--red-2)); }
.sign { background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kicker { color: var(--silver-2); }
.divider-line { background: linear-gradient(90deg, transparent, rgba(220, 220, 226, .35) 45%, var(--red-2)); }
.divider-line:last-child { background: linear-gradient(270deg, transparent, rgba(220, 220, 226, .35) 45%, var(--red-2)); }

/* Botones: rojo lacado con filo plateado, y plata */
.btn-red { background: var(--lacquer); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 30px -14px rgba(227, 18, 45, .8); }
.btn-red:hover { background: linear-gradient(180deg, #ff2b45, #a00c22); }
.btn-ghost { border-color: var(--line-s); color: var(--silver); }
.btn-ghost:hover { border-color: var(--silver); color: #fff; }

/* Fotos con paspartú plateado */
.tilt .ph, .room .ph, .ses, .g-item, .duo-ph, .feet-ph { border-color: transparent; outline: 1px solid rgba(220, 220, 226, .3); outline-offset: 5px; }
.tilt .frame { border-color: rgba(220, 220, 226, .3); }
.tilt .stamp { background: #0b0809; color: var(--silver); border: 1px solid rgba(220, 220, 226, .45); }
.room .num { -webkit-text-stroke: 1px #fff; }
.palace-progress span { background: linear-gradient(90deg, var(--silver), var(--red-2)); }

/* Cartas y tarjetas: negro con filo de plata, el rojo solo al girar */
.face { border-color: var(--line-s); background: linear-gradient(160deg, #141012, #070506); }
.face .rn { -webkit-text-stroke: 1px var(--silver); }
.face.back { background: linear-gradient(160deg, #3a0510, #0c0304); border-color: rgba(220, 220, 226, .35); }
.face.back p { color: #f1eff1; }
.xp::before { background: conic-gradient(from var(--a), var(--line-s) 0 62%, var(--silver) 72%, var(--red-2) 80%, var(--line-s) 90%); }
.xp::after { background: linear-gradient(160deg, #141012, #070506 70%); }
.xp .ico { border-color: var(--line-s); color: var(--silver); }
.trait b { color: #fff; }

/* Sesiones conjuntas */
.duo-ses { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 22px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line-s); background: linear-gradient(160deg, #120d0f, #070506); }
.duo-ph { aspect-ratio: 4 / 5; overflow: hidden; }
.duo-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.duo-in h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 62px); line-height: 1; margin: 12px 0 16px; color: #fff; }
.duo-in > p { color: var(--silver); font-size: 18px; max-width: 520px; }
.duo-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; margin: 22px 0 28px; }
.duo-list li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-family: var(--serif); font-size: 20px; }
.duo-list li::before { content: "◆"; font-size: 8px; color: var(--red-2); transform: translateY(-3px); }

/* Mis Pies (ocupa el sitio de la pupila) */
.feet { background: radial-gradient(900px 520px at 50% 0%, rgba(110, 5, 19, .26), transparent 70%); }
.feet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 46px 0 40px; }
.feet-ph { aspect-ratio: 3 / 4; overflow: hidden; }
.feet-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1.2s var(--ease); }
.feet-ph:hover img { transform: scale(1.05); }

/* Galería: rejilla igualada, nunca deja huecos (10 fotos = 5×2 o 2×5) */
.gallery { columns: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.g-item { margin: 0; aspect-ratio: 3 / 4; }
.g-item img { height: 100%; object-fit: cover; object-position: 50% 30%; }
.g-item::after { background: rgba(7, 5, 6, .55); }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .duo-ses { grid-template-columns: 1fr; }
  .feet-grid { grid-template-columns: 1fr 1fr; }
  .feet-grid .feet-ph:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3.6; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .duo-list { grid-template-columns: 1fr; }
}
/* Menú con una estancia más: que no se parta en dos líneas */
@media (min-width: 1181px) {
  .nav a:not(.btn) { white-space: nowrap; letter-spacing: .16em; }
  .nav { gap: clamp(14px, 1.5vw, 24px); }
}
/* La rueda 3D de prácticas sobresalía por la derecha en el móvil */
#practicas { overflow-x: clip; }
/* Rueda de prácticas: botón para girarla y giro largo */
.ring.spin { transition: transform 3.2s cubic-bezier(.12, .62, .08, 1); }
.ring-nav { align-items: center; }
.ring-nav button.ring-spin { width: auto; height: 52px; padding: 0 26px; border-radius: 999px; border-color: rgba(220, 220, 226, .4); color: var(--silver); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.ring-nav button.ring-spin:hover { border-color: var(--red-2); color: #fff; background: rgba(227, 18, 45, .18); }

/* Cartas de «Lo que busco»: foto del tema en rojo y negro detrás del texto */
.face.back { overflow: hidden; isolation: isolate; }
.face.back .back-ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(1) hue-rotate(-48deg) saturate(2.6) contrast(1.12) brightness(.82); }
.face.back::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 3, 4, .9) 0%, rgba(12, 3, 5, .62) 38%, rgba(12, 3, 5, .12) 62%, rgba(8, 3, 4, .78) 100%); }
.face.back h3, .face.back p { text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }

/* La puerta de la portada: aviso para pinchar el arco y ver el vídeo */
.door-hint { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid rgba(220, 220, 226, .45); background: rgba(7, 5, 6, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; transition: opacity .5s, background .3s, border-color .3s; white-space: nowrap; }
.door-hint:hover { background: rgba(227, 18, 45, .35); border-color: var(--red-2); }
.door-hint .dh-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lacquer); box-shadow: 0 0 18px rgba(227, 18, 45, .6); }
.door-hint svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.js .hero .door-hint { opacity: 0; }
.ready .hero .door-hint { opacity: 1; transition-delay: 2.6s; }
.hero.door-on .door-hint { opacity: .35; transition-delay: 0s; }
.hero.door-on .door-hint .dh-txt::after { content: " · Pausa"; }
.hero .hero-ui { transition: opacity .8s; }
.hero.door-on .hero-ui { opacity: .12; }
.no-webgl .door-hint { display: none; }
@media (max-width: 600px) { .door-hint { font-size: 9.5px; padding: 6px 12px 6px 6px; } .door-hint .dh-ico { width: 28px; height: 28px; } }
