/* thecrimsonmanor.com — Victorian playbill: framed plates, double rules, gaslight gold on dark wood. */
:root {
    --ink: #0d0908;
    --wood: #1a1110;
    --panel: #201513;
    --crimson: #7a0f0f;
    --crimson-bright: #b3261e;
    --gold: #c9a45c;
    --gold-dim: #8a7243;
    --paper: #efe6d5;
    --paper-dim: #c9bda8;
    --display: modesto-condensed, "Playfair Display SC", "Times New Roman", serif;
    --body: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --measure: 62ch;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #e6c98a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13, 9, 8, .94);
    border-bottom: 3px double var(--gold-dim);
}
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { font-family: var(--display); font-size: 1.55rem; color: var(--paper); text-decoration: none; white-space: nowrap; margin-right: auto; }
.brand span { color: var(--crimson-bright); }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { font-family: var(--display); font-size: 1.25rem; color: var(--paper-dim); text-decoration: none; white-space: nowrap; }
.menu a:hover, .menu a[aria-current] { color: var(--gold); }
.menu .lang { border: 1px solid var(--gold-dim); padding: 0 9px; font-size: 1.05rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--gold-dim); color: var(--paper); font-family: var(--display); font-size: 1.2rem; padding: 4px 12px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--display); font-size: 1.6rem; line-height: 1; letter-spacing: .03em;
    text-decoration: none; text-align: center;
    padding: 15px 30px 16px;
    color: #fff; background: linear-gradient(#b3261e, #7a0f0f);
    border: 1px solid #e0b96a;
    box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--gold-dim), 0 10px 30px rgba(0, 0, 0, .6);
    transition: filter .2s, transform .2s;
}
.btn:hover { color: #fff; filter: brightness(1.18); transform: translateY(-1px); }
.btn svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.btn.small { font-size: 1.2rem; padding: 8px 16px 9px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--gold-dim); box-shadow: none; }
.btn.ghost:hover { color: var(--gold); border-color: var(--gold); filter: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; text-align: center; padding: 54px 0 64px; border-bottom: 3px double var(--gold-dim); }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: drift 40s ease-in-out infinite alternate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(13, 9, 8, .35), rgba(13, 9, 8, .86) 70%),
        linear-gradient(rgba(13, 9, 8, .5), rgba(13, 9, 8, .2) 40%, var(--ink));
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-1.5%); } }
.hero-logo { width: min(520px, 82%); margin: 0 auto 6px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8)); }
.eyebrow { font-family: var(--display); font-size: 1.25rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); margin: 0 auto 14px; text-shadow: 0 3px 14px #000; }
.hero h1 em { font-style: normal; color: #e9c77f; display: block; }
.lede { max-width: 56ch; margin: 0 auto 26px; font-size: 1.08rem; color: var(--paper); text-shadow: 0 2px 8px #000; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; margin-bottom: 14px; }
.cta-note { font-size: .86rem; color: var(--paper-dim); margin: 0 0 26px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 900px; margin: 0 auto; }
.facts li { font-family: var(--display); font-size: 1.15rem; letter-spacing: .05em; padding: 3px 14px 4px; border: 1px solid var(--gold-dim); background: rgba(13, 9, 8, .7); color: var(--paper); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.wall { background: linear-gradient(rgba(13, 9, 8, .8), rgba(13, 9, 8, .8)), #120b0a url(imagenes/Background.jpg) center / 520px auto; border-block: 3px double var(--gold-dim); }
.head { text-align: center; margin-bottom: 44px; }
.head h2 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); color: var(--paper); }
.head h2 em { font-style: normal; color: var(--crimson-bright); }
.head p { max-width: var(--measure); margin: 14px auto 0; color: var(--paper-dim); }
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px auto 0; color: var(--gold); max-width: 420px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 3px; border-block: 1px solid var(--gold-dim); }
.rule span { font-size: 1.1rem; line-height: 1; }

/* framed plate, like a hung picture */
.plate { border: 9px double var(--crimson); outline: 1px solid var(--gold-dim); outline-offset: -5px; background: #000; }
.plate img { width: 100%; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar { background: var(--panel); border: 1px solid var(--gold-dim); outline: 1px solid var(--gold-dim); outline-offset: 4px; padding: 28px 24px 14px; margin: 5px; text-align: center; }
.pillar .num { font-family: var(--display); font-size: 1.15rem; letter-spacing: .25em; color: var(--gold); }
.pillar h3 { font-size: 2rem; color: #e9c77f; margin: 4px 0 12px; }
.pillar p { font-size: .96rem; color: var(--paper-dim); }

/* the two wings */
.wings { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: start; margin-top: 54px; }
.wing figcaption { text-align: center; padding-top: 12px; font-size: .95rem; color: var(--paper-dim); }
.wing figcaption b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--paper); letter-spacing: .04em; }
figure { margin: 0; }
.lift { text-align: center; font-family: var(--display); color: var(--gold); width: 120px; align-self: center; }
.lift i { display: block; width: 46px; height: 120px; margin: 0 auto 8px; border: 2px solid var(--gold-dim); position: relative; overflow: hidden; background: #0a0706; }
.lift i::after { content: ""; position: absolute; left: 5px; right: 5px; height: 30px; background: var(--crimson); border: 1px solid var(--gold); animation: lift 5s ease-in-out infinite alternate; }
@keyframes lift { from { top: 5px; } to { top: 81px; } }
.lift span { font-size: 1.15rem; letter-spacing: .08em; line-height: 1.1; display: block; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: s; border-top: 3px double var(--gold-dim); padding-top: 16px; }
.steps li::before { content: counter(s, upper-roman) "."; font-family: var(--display); font-size: 2.2rem; color: var(--crimson-bright); display: block; line-height: 1; }
.steps h3 { font-size: 1.6rem; color: var(--paper); margin: 6px 0 8px; }
.steps p { font-size: .95rem; color: var(--paper-dim); margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery a { display: block; transition: transform .25s; }
.gallery a:hover { transform: scale(1.02); }
.gallery.two { grid-template-columns: repeat(4, 1fr); }

/* buy box */
.buy { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.buy h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 12px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "\2766"; position: absolute; left: 0; color: var(--gold); }
.widget { margin-top: 22px; background: #000; border: 1px solid var(--gold-dim); min-height: 190px; }
.widget iframe { display: block; width: 100%; height: 190px; border: 0; }
.buy .cta-row { justify-content: flex-start; margin-top: 22px; }

/* faq */
.faq details { border-bottom: 1px solid var(--gold-dim); }
.faq details:first-of-type { border-top: 3px double var(--gold-dim); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.65rem; line-height: 1.15; padding: 16px 40px 16px 0; position: relative; color: var(--paper); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; color: var(--gold); font-size: 2rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--paper-dim); max-width: var(--measure); }

/* single-player */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.duo h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 14px; }
.duo .sp-logo { width: min(360px, 80%); margin-bottom: 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.edition { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; margin-top: 60px; padding: 28px; background: var(--panel); border: 1px solid var(--gold-dim); outline: 1px solid var(--gold-dim); outline-offset: 4px; }
.edition h3 { font-size: 2.2rem; color: #e9c77f; margin-bottom: 10px; }

.final { text-align: center; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 14px; }
.final p { max-width: 52ch; margin: 0 auto 26px; color: var(--paper-dim); }

footer { border-top: 3px double var(--gold-dim); padding: 40px 0 96px; text-align: center; font-size: .9rem; color: var(--paper-dim); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 18px; }
footer nav a { font-family: var(--display); font-size: 1.3rem; text-decoration: none; }
footer img { margin: 0 auto 16px; width: 170px; opacity: .85; }
footer small { display: block; max-width: 70ch; margin: 10px auto 0; font-size: .78rem; line-height: 1.6; }

/* sticky mobile call to action */
.stick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 9, 8, .96); border-top: 3px double var(--gold-dim); transform: translateY(110%); transition: transform .3s; }
.stick.on { transform: none; }
.stick .btn { width: 100%; font-size: 1.4rem; padding: 12px 16px 13px; box-shadow: none; }

/* lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; }
dialog.lb::backdrop { background: rgba(0, 0, 0, .92); }
dialog.lb img { max-height: 86vh; width: auto; margin: 0 auto; border: 6px double var(--crimson); }
dialog.lb form { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; }
dialog.lb button { font-family: var(--display); font-size: 1.3rem; background: var(--ink); color: var(--paper); border: 1px solid var(--gold-dim); padding: 4px 16px; cursor: pointer; }
dialog.lb p { margin: 0; font-size: .85rem; color: var(--paper-dim); text-align: center; flex: 1; }

/* gentle entrance: content is visible without JS, the script only adds the motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .gallery.two { grid-template-columns: repeat(2, 1fr); }
    .buy { grid-template-columns: 220px 1fr; gap: 28px; }
}
@media (max-width: 860px) {
    .menu-btn { display: block; }
    .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 3px double var(--gold-dim); padding: 6px 0 16px; }
    .menu.open { display: flex; }
    .menu a { padding: 9px 0; font-size: 1.5rem; }
    .menu .btn { margin-top: 8px; }
    .pillars { grid-template-columns: 1fr; }
    .wings { grid-template-columns: 1fr; }
    .lift { width: auto; display: flex; align-items: center; justify-content: center; gap: 14px; }
    .lift i { margin: 0; height: 70px; }
    @keyframes lift { from { top: 4px; } to { top: 32px; } }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .buy, .duo, .edition { grid-template-columns: 1fr; }
    .buy .poster { max-width: 240px; margin-inline: auto; }
    .buy .cta-row { justify-content: center; }
    .edition img { max-width: 240px; margin-inline: auto; }
    .stick { display: block; }
    section { padding: 54px 0; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .wrap, .narrow { width: calc(100% - 32px); }
    .hero { padding: 34px 0 46px; }
    .btn { font-size: 1.4rem; padding: 14px 20px 15px; width: 100%; }
    .btn.small { width: auto; }
    .stores .btn { width: 100%; }
    .steps { grid-template-columns: 1fr; }
    .gallery, .gallery.two { grid-template-columns: 1fr; }
    .facts li { font-size: 1.05rem; padding: 2px 10px 3px; }
    .plate { border-width: 7px; }
    .edition { padding: 20px; }
    .faq summary { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg img, .lift i::after { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .gallery a, .stick { transition: none; }
}
