/* TZCode · Halloween 2026 · "La oficina embrujada" */

@font-face { font-family: "Gloock"; src: url("../fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../fonts/imfell-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Victor Mono"; src: url("../fonts/victor-italic-var.woff2") format("woff2"); font-style: italic; font-weight: 400 600; font-display: swap; }

:root {
  --noche: #0a0c0b;
  --noche-2: #111513;
  --noche-3: #1a1f1c;
  --hueso: #ece5d3;
  --hueso-2: #b9b2a0;
  --hueso-3: #6f6b60;
  --fatuo: #3ea2ff;
  --fatuo-glow: rgba(62, 162, 255, .45);
  --calabaza: #ff7a1a;
  --calabaza-2: #ffb15c;
  --madera: #2a1c12;
  --line: rgba(236, 229, 211, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Gloock", "Georgia", serif;
  --fell: "IM Fell English", "Georgia", serif;
  --sans: "Familjen Grotesk", system-ui, sans-serif;
  --mono: "Victor Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --lx: 68%; --ly: 42%; --lr: 170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--noche); color: var(--hueso);
  font: 400 clamp(16px, 1.05vw, 18px)/1.6 var(--sans);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--calabaza); color: var(--noche); }
:focus-visible { outline: 2px solid var(--fatuo); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--calabaza); color: var(--noche); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

em { font-family: var(--fell); font-style: italic; font-weight: 400; color: var(--fatuo); letter-spacing: 0; }
strong { color: var(--calabaza-2); font-weight: 600; }

.eyebrow {
  font: italic 500 13px/1.4 var(--mono); letter-spacing: .02em; color: var(--hueso-2);
  margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fatuo); box-shadow: 0 0 12px 3px var(--fatuo-glow); flex: none; animation: wisp 3.2s ease-in-out infinite; }
@keyframes wisp { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: .55; transform: translateY(-3px); } }

.h2 {
  font: 400 clamp(2.4rem, 5.6vw, 5.4rem)/.95 var(--display); letter-spacing: -.02em;
  margin: 0 0 22px; text-wrap: balance; max-width: 16ch;
}
.h2 em { display: inline; }
.sec-head { padding: 0 var(--pad); max-width: 1320px; margin: 0 auto clamp(40px, 6vw, 80px); }
.sec-lede { max-width: 52ch; color: var(--hueso-2); margin: 0; font-size: 1.08em; }

/* ---------- botones ---------- */
.btn {
  --bg: transparent; --fg: var(--hueso); position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--hueso);
  background: var(--bg); color: var(--fg); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn span { position: relative; z-index: 1; pointer-events: none; }
.btn--fire { --bg: var(--calabaza); --fg: #140a02; border-color: var(--calabaza); }
.btn--fire:hover { box-shadow: 0 0 0 6px rgba(255, 122, 26, .16), 0 10px 40px -6px rgba(255, 122, 26, .7); animation: ember 1.2s steps(2) infinite; }
@keyframes ember { 50% { box-shadow: 0 0 0 8px rgba(255, 122, 26, .12), 0 12px 48px -6px rgba(255, 160, 60, .8); } }
.btn--ghost:hover { border-color: var(--fatuo); color: var(--fatuo); box-shadow: 0 0 30px -4px var(--fatuo-glow); }
.btn--xl { min-height: 64px; padding: 0 36px; font-size: 18px; }
.link-arrow { font: italic 500 14px/1.3 var(--mono); color: var(--fatuo); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- capas globales ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, -3%); } }
.bats { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; }
.flash { position: fixed; inset: 0; z-index: 46; pointer-events: none; background: #dfe9ff; opacity: 0; mix-blend-mode: overlay; }

/* araña */
.spider { position: fixed; top: 0; right: clamp(14px, 6vw, 90px); z-index: 48; color: #050605; display: none; pointer-events: none; }
.spider__thread { position: absolute; left: 50%; top: 0; width: 1px; height: var(--drop, 60px); background: linear-gradient(rgba(236,229,211,.15), rgba(236,229,211,.5)); }
.spider__body { position: absolute; left: -22px; top: var(--drop, 60px); transform: rotate(var(--sway, 0deg)); transform-origin: 50% 0; filter: drop-shadow(0 0 6px rgba(236,229,211,.35)); pointer-events: auto; cursor: pointer; }
.spider__body .leg { transform-origin: 32px 30px; animation: legs .5s ease-in-out infinite alternate; animation-play-state: paused; }
.spider.is-walking .leg { animation-play-state: running; }
.spider__body .r1, .spider__body .l2, .spider__body .r3, .spider__body .l4 { animation-delay: -.25s; }
@keyframes legs { to { transform: rotate(6deg); } }
.anim .spider { display: block; }

/* loader */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-content: center; justify-items: center; gap: 26px;
  background: #040504; clip-path: circle(150% at 50% 46%);
}
.loader__candle { position: relative; width: 26px; height: 120px; }
.loader__wax { position: absolute; bottom: 0; left: 0; width: 26px; height: 78px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #cfc7b0, #f3ecd8 45%, #a8a08a); }
.loader__wax::before { content: ""; position: absolute; top: -3px; left: 4px; width: 9px; height: 18px; border-radius: 0 0 6px 6px; background: #efe7d2; }
.loader__wick { position: absolute; bottom: 78px; left: 12px; width: 2px; height: 10px; background: #222; }
.loader__flame {
  position: absolute; bottom: 84px; left: 4px; width: 18px; height: 32px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fff6d8 0 20%, var(--calabaza-2) 45%, var(--calabaza) 70%, transparent 72%);
  box-shadow: 0 0 40px 14px rgba(255, 140, 40, .35); transform: scale(0); transform-origin: 50% 100%;
  animation: flicker .14s ease-in-out infinite alternate;
}
.loader__txt { font: italic 15px var(--mono); color: var(--hueso-2); margin: 0; }
@keyframes flicker { from { rotate: -2deg; } to { rotate: 2.5deg; scale: 1 1.06; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad); transition: transform .5s var(--ease), background .4s;
}
.nav.is-solid { background: rgba(10, 12, 11, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { width: 112px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--hueso-2); position: relative; transition: color .25s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--fatuo); box-shadow: 0 0 10px 2px var(--fatuo-glow); opacity: 0; transform: translate(-50%, 4px); transition: .3s var(--ease);
}
.nav__links a:hover { color: var(--hueso); }
.nav__links a:hover::after { opacity: 1; transform: translate(-50%, 0); }
.nav__cta { border: 1px solid var(--calabaza); color: var(--calabaza) !important; padding: 9px 16px; border-radius: 999px; }
.nav__cta:hover { background: var(--calabaza); color: var(--noche) !important; }
.nav__btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; cursor: pointer; }
.nav__btn span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--hueso); transition: transform .35s var(--ease); }
.nav__btn span:nth-child(1) { top: 18px; } .nav__btn span:nth-child(2) { top: 26px; }
.nav__btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: end; padding: 120px var(--pad) clamp(70px, 10vh, 120px); background: radial-gradient(120% 80% at 70% 30%, #1a1f1c 0%, var(--noche) 60%); }
.hero__notes { position: absolute; inset: 0; }
.note {
  position: absolute; margin: 0; padding: 14px 16px 18px; width: max-content; max-width: 240px;
  background: linear-gradient(#e7dcbc, #d6c99f); color: #2a2418; transform: rotate(var(--r));
  font: italic 500 clamp(12px, 1vw, 14px)/1.3 var(--mono); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .8);
  clip-path: polygon(0 3%, 100% 0, 98% 96%, 3% 100%);
}
.note::before { content: ""; position: absolute; top: -6px; left: 50%; width: 46px; height: 16px; margin-left: -23px; background: rgba(236, 229, 211, .35); transform: rotate(-4deg); }
.note--red span { color: #b3360b; font-weight: 600; }
.n1 { left: 54%; top: 14%; } .n2 { left: 80%; top: 22%; } .n3 { left: 62%; top: 44%; }
.n4 { left: 84%; top: 56%; } .n5 { left: 6%; top: 18%; } .n6 { left: 30%; top: 9%; } .n7 { left: 70%; top: 70%; }
.eyes { position: absolute; width: 54px; fill: var(--fatuo); filter: drop-shadow(0 0 6px var(--fatuo)); animation: blink 5s infinite; transform-origin: center; }
.e1 { left: 44%; top: 28%; } .e2 { left: 92%; top: 40%; width: 40px; animation-delay: -2.2s; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.ghost-mini { position: absolute; width: 70px; fill: rgba(236, 229, 211, .78); filter: drop-shadow(0 0 18px rgba(236,229,211,.4)); animation: bob 4s ease-in-out infinite; }
.ghost-mini .ghost-eye { fill: var(--noche); }
.g1 { left: 74%; top: 36%; } .g2 { left: 20%; top: 30%; width: 48px; animation-delay: -1.6s; opacity: .7; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(3deg); } }

.hero__dark {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--lx) var(--ly), rgba(255, 226, 170, .10) 0, rgba(5, 6, 6, 0) calc(var(--lr) * .9), rgba(5, 6, 6, .9) calc(var(--lr) * 1.5), rgba(5, 6, 6, .97) calc(var(--lr) * 2.6));
}
.hero__copy { position: relative; z-index: 2; max-width: 920px; }
.hero__title { font: 400 clamp(3.4rem, 10.5vw, 10rem)/.86 var(--display); letter-spacing: -.035em; margin: 0 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .w { display: inline-block; }
.hero__title em { color: var(--fatuo); text-shadow: 0 0 40px var(--fatuo-glow); font-size: 1.04em; letter-spacing: -.01em; }
.hero__lede { max-width: 56ch; color: var(--hueso-2); margin: 0 0 32px; font-size: 1.08em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__hint { position: absolute; z-index: 2; right: var(--pad); bottom: 28px; margin: 0; font: italic 13px var(--mono); color: var(--hueso-3); }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

.fog { position: absolute; inset: auto 0 0; height: 46%; pointer-events: none; z-index: 1; }
.fog span { position: absolute; inset: 0 -50%; background:
  radial-gradient(40% 60% at 20% 80%, rgba(200, 210, 205, .14), transparent 70%),
  radial-gradient(35% 50% at 60% 90%, rgba(200, 210, 205, .12), transparent 70%),
  radial-gradient(45% 55% at 90% 85%, rgba(200, 210, 205, .1), transparent 70%);
  filter: blur(14px); animation: drift 26s linear infinite; }
.fog span + span { animation-duration: 38s; animation-direction: reverse; opacity: .8; top: 20%; }
@keyframes drift { to { transform: translateX(33%); } }

/* ---------- plazo ---------- */
.plazo { position: relative; padding: clamp(100px, 14vw, 180px) var(--pad); background: linear-gradient(var(--noche), #0d0a07 40%, var(--noche)); overflow: hidden; }
.plazo__inner { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; }
.plazo .h2 { max-width: 18ch; }
.plazo .h2 em { color: var(--calabaza); text-shadow: 0 0 30px rgba(255, 122, 26, .4); }
.clock { display: flex; flex-wrap: wrap; gap: clamp(10px, 2.4vw, 34px); margin: 40px 0 36px; }
.clock__u { display: grid; gap: 4px; min-width: clamp(70px, 13vw, 190px); padding-top: 14px; border-top: 1px solid rgba(255, 122, 26, .5); }
.clock__n { font: 400 clamp(3.2rem, 10vw, 9rem)/.9 var(--display); color: var(--calabaza); font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(255, 122, 26, .35); }
.clock__n.tick { animation: tick .5s steps(3); }
@keyframes tick { 33% { opacity: .35; } 66% { opacity: 1; } }
.clock__l { font: italic 13px var(--mono); color: var(--hueso-2); }
.plazo__txt { max-width: 62ch; color: var(--hueso-2); margin: 0 0 30px; }
.plazo__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.plazo__pumpkin { position: absolute; right: -2vw; bottom: -2vw; width: clamp(200px, 30vw, 460px); opacity: .9; pointer-events: none; }
.plazo__pumpkin .body { fill: #c4520f; }
.plazo__pumpkin .rib { fill: none; stroke: #8a3509; stroke-width: 3; }
.plazo__pumpkin .stem { fill: #4b5a2a; }
.plazo__pumpkin .face path { fill: #ffd27a; filter: drop-shadow(0 0 12px #ffb347); animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 1; } 40% { opacity: .65; } 44% { opacity: .95; } 70% { opacity: .78; } }

/* ---------- bestiario ---------- */
.bestiario { padding: clamp(90px, 12vw, 160px) 0; }
.beasts { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: 1320px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.beast {
  position: relative; display: grid; min-height: 380px; border-radius: 22px 22px 6px 6px; overflow: hidden; cursor: default;
  background: radial-gradient(120% 70% at 50% 0%, var(--noche-3), var(--noche-2)); border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .5s var(--ease);
}
.beast > div { grid-area: 1 / 1; padding: 28px 26px 30px; display: flex; flex-direction: column; }
.beast__n { font: italic 14px var(--mono); color: var(--hueso-3); }
.beast__ghost { width: 74px; margin: 26px 0 auto; fill: rgba(236, 229, 211, .88); filter: drop-shadow(0 0 20px rgba(236, 229, 211, .3)); animation: bob 4.5s ease-in-out infinite; }
.beast__ghost .ghost-eye { fill: var(--noche-2); }
.beast:nth-child(2n) .beast__ghost { animation-delay: -1.5s; }
.beast:nth-child(3n) .beast__ghost { animation-delay: -3s; }
.beast h3 { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--display); margin: 26px 0 10px; }
.beast p { margin: 0; color: var(--hueso-2); font-size: .97em; }
.beast__haunt { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.beast__cure { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s; justify-content: flex-end; background: radial-gradient(90% 60% at 50% 100%, rgba(62, 162, 255, .16), transparent 70%); }
.beast__tag { font: italic 13px var(--mono); color: var(--fatuo); margin-bottom: 8px; }
.beast h4 { font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.1 var(--display); margin: 0 0 12px; color: var(--hueso); }
.beast__cure p { margin-bottom: 18px; }
.beast:hover, .beast:focus-within, .beast.is-open { border-color: rgba(62, 162, 255, .5); box-shadow: 0 0 60px -20px var(--fatuo-glow); }
.beast:hover .beast__haunt, .beast:focus-within .beast__haunt, .beast.is-open .beast__haunt { opacity: 0; transform: translateY(-30px) scale(.96); }
.beast:hover .beast__cure, .beast:focus-within .beast__cure, .beast.is-open .beast__cure { opacity: 1; transform: none; }
.beast--red .beast__ghost { fill: #ffd2b0; filter: drop-shadow(0 0 22px rgba(255, 122, 26, .55)); }
.beast--red h3 { color: var(--calabaza-2); }
.fx .beast__haunt { filter: url(#ecto); }

/* ---------- ouija ---------- */
.ouija { padding: clamp(90px, 12vw, 160px) 0; background: linear-gradient(var(--noche), #0f0b08 30%, #0f0b08 70%, var(--noche)); }
.ouija__grid { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.spirits { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.spirits legend { font: 400 1.6rem/1.2 var(--display); margin-bottom: 14px; padding: 0; }
.spirit { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .3s, background .3s; }
.spirit input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--hueso-3); flex: none; display: grid; place-content: center; transition: .3s; }
.spirit input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fatuo); box-shadow: 0 0 10px 2px var(--fatuo-glow); transform: scale(0); transition: transform .3s var(--ease); }
.spirit input:checked { border-color: var(--fatuo); }
.spirit input:checked::after { transform: scale(1); }
.spirit:has(input:checked) { border-color: rgba(62, 162, 255, .55); background: rgba(62, 162, 255, .06); }
.spirit:hover { border-color: var(--hueso-3); }
.spirit input:focus-visible { outline: 2px solid var(--fatuo); outline-offset: 3px; }
.ask { margin-top: 12px; }
.ask[disabled] { opacity: .6; cursor: progress; }

.board-wrap { display: grid; gap: 22px; }
.board {
  position: relative; aspect-ratio: 1.55; border-radius: 26px; overflow: hidden; user-select: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(255, 200, 120, .16), transparent 60%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #5a3b22, #3a2414 55%, #2a190d);
  box-shadow: inset 0 0 0 2px rgba(236, 229, 211, .12), inset 0 0 0 10px rgba(0, 0, 0, .22), inset 0 0 0 12px rgba(236, 229, 211, .1), inset 0 0 80px rgba(0, 0, 0, .6), 0 40px 80px -30px #000;
  color: #f1dfb8; font-family: var(--fell);
}
.board__yes, .board__no { position: absolute; top: 8%; font: italic 400 clamp(1.3rem, 2.6vw, 2.4rem)/1 var(--fell); }
.board__yes { left: 9%; } .board__no { right: 9%; }
.board__sun { position: absolute; top: 5%; left: 50%; width: 11%; aspect-ratio: 1; margin-left: -5.5%; border-radius: 50%; border: 1.5px solid currentColor; box-shadow: 0 0 0 6px rgba(241, 223, 184, .08); opacity: .7; }
.board__sun::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: currentColor; opacity: .5; }
.board__row { position: absolute; left: 5%; right: 5%; display: flex; justify-content: space-between; }
.board__row.r1 { top: 30%; } .board__row.r2 { top: 50%; } .board__row.r3 { top: 70%; left: 22%; right: 22%; }
.board__row span { display: block; font: italic 400 clamp(1rem, 2.4vw, 2.3rem)/1 var(--fell); transform: translateY(var(--y, 0)) rotate(var(--rot, 0)); transition: color .3s, text-shadow .3s; }
.board__row span.is-hit, .board [data-ch].is-hit { color: #fff; text-shadow: 0 0 14px var(--fatuo), 0 0 30px var(--fatuo); }
.board__bye { position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%); font: italic clamp(1rem, 2vw, 1.7rem)/1 var(--fell); letter-spacing: .2em; }
.board__brand { position: absolute; bottom: 7%; right: 6%; font: italic 10px var(--mono); opacity: .4; letter-spacing: .1em; }
.planchette {
  --w: clamp(64px, 9vw, 110px);
  position: absolute; left: 0; top: 0; width: var(--w); height: calc(var(--w) * 1.16); z-index: 2;
  translate: var(--px, 0px) var(--py, 0px); margin: calc(var(--w) * -.46) 0 0 calc(var(--w) * -.5);
  background: linear-gradient(170deg, #f2e6c8, #c9b78f);
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .6));
  transition: translate .75s var(--ease);
}
.planchette::after { content: ""; position: absolute; left: 50%; bottom: -9%; width: 22%; aspect-ratio: 1; background: #c9b78f; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.planchette__lens { position: absolute; left: 50%; top: 40%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(62, 162, 255, .14); box-shadow: inset 0 0 0 3px #7a6542, 0 0 0 1px rgba(0,0,0,.3); }
.board.is-asking .planchette { animation: shiver .18s infinite alternate; }
@keyframes shiver { to { rotate: 1.5deg; } }
.verdict { min-height: 120px; }
.verdict__spell { font: 400 clamp(2.4rem, 6vw, 4.6rem)/1 var(--display); letter-spacing: .14em; color: var(--fatuo); text-shadow: 0 0 30px var(--fatuo-glow); margin: 0 0 8px; min-height: 1em; }
.verdict__msg { margin: 0 0 18px; color: var(--hueso-2); max-width: 60ch; }

/* ---------- retratos ---------- */
.retratos { padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.retratos__pin { min-height: 100svh; padding-top: 64px; display: flex; flex-direction: column; justify-content: center; }
.retratos__head { width: 100%; margin-bottom: clamp(30px, 4vw, 50px); }
.hall { display: flex; gap: clamp(26px, 3.6vw, 60px); padding: 10px var(--pad) 30px; width: max-content; align-items: center; }
.portrait { margin: 0; width: min(46vw, calc((100svh - 470px) * 1.5), 620px); flex: none; }
.frame {
  position: relative; padding: clamp(10px, 1.2vw, 18px); border-radius: 6px;
  background: linear-gradient(145deg, #4a3520, #20150b 45%, #3e2c1a);
  box-shadow: inset 0 0 0 2px #6b5233, inset 0 0 0 7px #1a1109, inset 0 0 0 9px #5c4529, 0 30px 60px -25px #000;
}
.frame::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 80, .22), transparent); opacity: var(--lit, 0); pointer-events: none; z-index: -1; transition: opacity .4s; }
.frame picture, .frame img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: top; border-radius: 2px; }
.frame img { filter: grayscale(calc(.85 - var(--lit, 0) * .85)) sepia(calc(.4 - var(--lit, 0) * .4)) brightness(calc(.5 + var(--lit, 0) * .5)); transition: filter .5s; }
.no-anim .frame img { filter: none; }
.portrait figcaption { display: grid; gap: 2px; margin-top: 16px; }
.portrait__n { font: italic 12px var(--mono); color: var(--hueso-3); }
.portrait figcaption strong { font: 400 1.5rem/1.1 var(--display); color: var(--hueso); }
.portrait figcaption span:last-child { color: var(--hueso-2); font-size: .95em; }
.portrait--more { display: grid; place-content: center; width: min(26vw, 320px); aspect-ratio: .9; border: 1px dashed var(--hueso-3); border-radius: 50% 50% 8px 8px; text-decoration: none; font: 400 1.6rem/1.15 var(--display); text-align: center; padding: 30px; transition: border-color .3s, color .3s, box-shadow .4s; }
.portrait--more:hover { border-color: var(--fatuo); color: var(--fatuo); box-shadow: 0 0 60px -20px var(--fatuo-glow); }
.no-pin .hall { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.no-pin .hall::-webkit-scrollbar { display: none; }
.no-pin .portrait { scroll-snap-align: center; }

/* ---------- almas ---------- */
.almas { padding: clamp(90px, 12vw, 150px) 0; }
.stats { list-style: none; margin: 0 auto clamp(50px, 7vw, 90px); padding: 0 var(--pad); max-width: 1320px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats li { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; }
.stat__n { font: 400 clamp(2.8rem, 6vw, 5.2rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.stat__s { font: 400 clamp(1.8rem, 3vw, 3rem)/1 var(--display); color: var(--fatuo); }
.stat__l { flex-basis: 100%; font: italic 13px var(--mono); color: var(--hueso-2); margin-top: 8px; }
.souls { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: 1320px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.souls li { --l: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 calc(var(--l) * 40px) calc(var(--l) * -6px) var(--fatuo-glow); transition: box-shadow .3s; }
.souls img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: grayscale(calc(1 - var(--l))) brightness(calc(.32 + var(--l) * .68)); transition: filter .25s; }
.no-anim .souls li { --l: 1; }
.partners { max-width: 1320px; margin: clamp(40px, 5vw, 60px) auto 0; padding: 0 var(--pad); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.partners img { height: 64px; width: auto; background: var(--hueso); padding: 10px 16px; border-radius: 12px; }

/* ---------- ritual ---------- */
.ritual { padding: clamp(90px, 12vw, 160px) 0; background: radial-gradient(70% 50% at 50% 60%, #15110b, var(--noche) 70%); }
.candles { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: 1320px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 70px) clamp(20px, 3vw, 50px); }
.candle-step { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; align-content: start; }
.candle-step > :not(.cdl) { grid-column: 2; }
.cdl { grid-row: 1 / span 3; position: relative; width: 26px; height: 120px; margin: 0 auto; }
.cdl__wax { position: absolute; bottom: 0; left: 0; width: 26px; height: 80px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #8e8775, #e8e0ca 45%, #6f6a5c); }
.cdl__wax::before { content: ""; position: absolute; left: 11px; top: -9px; width: 2px; height: 10px; background: #111; }
.cdl__flame { position: absolute; bottom: 86px; left: 4px; width: 18px; height: 30px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fff6d8 0 20%, var(--calabaza-2) 45%, var(--calabaza) 70%, transparent 72%);
  box-shadow: 0 0 40px 16px rgba(255, 140, 40, .3); transform-origin: 50% 100%; transform: scale(1); animation: flicker .16s ease-in-out infinite alternate; }
.step__n { font: italic 13px var(--mono); color: var(--calabaza-2); }
.candle-step h3 { font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.1 var(--display); margin: 6px 0 10px; }
.candle-step p { margin: 0; color: var(--hueso-2); }
.anim .candle-step:not(.lit) .cdl__flame { transform: scale(0); box-shadow: none; }
.anim .candle-step:not(.lit) .cdl__wax { filter: brightness(.45); }
.anim .candle-step:not(.lit) h3, .anim .candle-step:not(.lit) p, .anim .candle-step:not(.lit) .step__n { opacity: .32; }
.anim .candle-step .cdl__flame { transition: transform .5s var(--ease), box-shadow .5s; }
.anim .candle-step h3, .anim .candle-step p, .anim .candle-step .step__n, .anim .cdl__wax { transition: opacity .6s, filter .6s; }

/* ---------- faq ---------- */
.faq { padding: clamp(90px, 12vw, 150px) 0; }
.faq__list { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font: 400 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 var(--display); transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 2rem/1 var(--sans); color: var(--fatuo); transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--fatuo); }
.faq details p { margin: 0 0 26px; color: var(--hueso-2); max-width: 70ch; }

/* ---------- contacto ---------- */
.contacto { position: relative; overflow: hidden; padding: clamp(110px, 16vw, 220px) var(--pad) clamp(90px, 10vw, 140px); background: linear-gradient(var(--noche), #0b1220 70%, #0d1626); }
.moon { position: absolute; right: 8vw; top: 12%; width: clamp(140px, 22vw, 320px); fill: #e9e2cc; filter: drop-shadow(0 0 60px rgba(233, 226, 204, .35)); }
.moon .crater { fill: #cfc6ad; }
.contacto__inner { position: relative; max-width: 1320px; margin: 0 auto; }
.contacto__t { font: 400 clamp(3rem, 9vw, 8.6rem)/.9 var(--display); letter-spacing: -.03em; margin: 0 0 24px; max-width: 11ch; }
.contacto__lede { max-width: 50ch; color: var(--hueso-2); margin: 0 0 34px; font-size: 1.1em; }
.contacto__data { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 22px 40px; justify-content: start; }
.contacto__data li { display: grid; gap: 4px; }
.contacto__data .k { font: italic 12px var(--mono); color: var(--hueso-3); }
.contacto__data a { text-decoration: none; }
.contacto__data a:hover { color: var(--fatuo); }

/* ---------- footer ---------- */
.foot { padding: 40px var(--pad) 34px; background: #0d1626; border-top: 1px solid rgba(236, 229, 211, .08); }
.foot__row { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot__row img { width: 100px; height: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { text-decoration: none; color: var(--hueso-2); font-size: 15px; }
.foot__links a:hover { color: var(--hueso); }
.foot__row--small { margin-top: 26px; font-size: 13px; color: var(--hueso-3); }
.foot__row--small p { margin: 0; }
.boo-hint { font: italic 12px var(--mono); }
.credit { color: var(--hueso-2); text-decoration: none; font-size: 14px; }
.credit:hover { color: var(--calabaza-2); }

/* ---------- títulos que parpadean (con JS) ---------- */
.anim .flicker:not(.on) { opacity: 0; }
.flicker.on { animation: neon 1.1s steps(1) both; }
@keyframes neon { 0% { opacity: 0; } 10% { opacity: .8; } 14% { opacity: .1; } 24% { opacity: 1; } 30% { opacity: .3; } 36%, 100% { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .beasts { grid-template-columns: repeat(2, 1fr); }
  .souls { grid-template-columns: repeat(4, 1fr); }
  .contacto__data { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 900px) {
  .nav__btn { display: block; }
  .nav__links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px; background: rgba(6, 7, 7, .97); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; z-index: -1; }
  .nav__links a { font: 400 2rem/1.1 var(--display); color: var(--hueso); }
  .nav__links .nav__cta { font: 600 17px var(--sans); margin-top: 14px; padding: 14px 22px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .ouija__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .candles { grid-template-columns: 1fr 1fr; }
  .portrait { width: min(78vw, 420px); }
  .portrait--more { width: min(60vw, 280px); }
}
@media (max-width: 700px) {
  .frame picture, .frame img { aspect-ratio: .78; }
  .portrait { width: 72vw; }
  .note { max-width: 170px; padding: 10px 12px 13px; }
  .n1 { left: 5%; top: 96px; } .n2 { left: 52%; top: 150px; } .n7 { left: 12%; top: 216px; }
  .n3, .n4, .n5, .n6 { display: none; }
  .e1 { left: 74%; top: 100px; width: 44px; } .e2 { display: none; } .g1 { left: 72%; top: 222px; width: 46px; } .g2 { display: none; }
  .hero { min-height: auto; padding-top: 318px; }
  .hero__hint { left: var(--pad); right: auto; }
  .beasts { grid-template-columns: 1fr; }
  .beast { min-height: 330px; }
  .souls { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .candles { grid-template-columns: 1fr; }
  .contacto__data { grid-template-columns: 1fr; }
  .moon { right: -10vw; top: 6%; opacity: .7; }
  .plazo__pumpkin { opacity: .35; }
  .board { aspect-ratio: 1.15; }
  .board__brand { display: none; }
  .board__row.r1 { top: 28%; } .board__row.r2 { top: 47%; } .board__row.r3 { top: 66%; left: 12%; right: 12%; }
}
@media (hover: none) {
  .souls li { --l: .85; }
  .boo-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .grain, .bats, .flash, .spider { display: none !important; }
  .hero__dark { background: rgba(5, 6, 6, .55); }
  .frame img { filter: none; }
  .souls li { --l: 1; }
}

/* failsafe: si algo falla, la vela no se queda tapando el sitio */
.is-loading .loader { animation: loader-off 0s 4.5s forwards; }
@keyframes loader-off { to { visibility: hidden; opacity: 0; } }
