/* ==========================================================================
   VALACH 1893 — Landing Page
   ========================================================================== */

@font-face {
    font-family: 'Alagard';
    src: url('assets/alagard.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-ink: #100e0b;
    --bg-graphite: #1a1713;
    --card-bg: #24201a;
    --card-border: #3d372e;
    --paper-grey: #9e9885;
    --bone-white: #d4ceb8;
    --bone-bright: #f2ebd9;

    --amber-glow: #ffaa00;
    --amber-light: #ffd275;
    --crimson-blood: #8b0000;

    --font-heading: 'Alagard', 'Cinzel', Georgia, serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --nav-height: 72px;
    --shadow-amber: 0 0 25px rgba(255, 170, 0, 0.25);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.8);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    background-color: var(--bg-ink);
    color: var(--bone-white);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.6;
}

body {
    background-color: var(--bg-ink);
    overflow-x: hidden;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-ink); }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-glow); }

/* Efectos de fondo */
.dither-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.08;
    background-image: radial-gradient(var(--bone-white) 1px, transparent 0);
    background-size: 4px 4px;
}

.ambient-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 40%, rgba(10, 8, 6, 0.92) 100%);
}

#fogCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow { max-width: 760px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(16, 14, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 55, 46, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bone-bright);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wordmark { white-space: nowrap; }

.logo-symbol {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px var(--amber-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    min-width: 44px;
    min-height: 40px;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--bone-bright);
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.8rem;
}

.lang-btn:hover { border-color: var(--amber-glow); color: var(--amber-glow); }

.nav-links a {
    color: var(--paper-grey);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-fast);
}

.nav-links a:hover { color: var(--amber-glow); }

.nav-links .btn-nav-cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--amber-glow);
    color: var(--amber-glow);
    border-radius: 4px;
}

.nav-links .btn-nav-cta:hover {
    background: var(--amber-glow);
    color: var(--bg-ink);
    box-shadow: var(--shadow-amber);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--bone-bright);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.3rem;
    line-height: 0;
}

/* Hero */
.hero {
    position: relative;
    z-index: 10;
    padding: 10rem 1rem 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-halloween {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(139, 0, 0, 0.25);
    border: 1px solid var(--crimson-blood);
    color: #ff6b6b;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 11vw, 6rem);
    white-space: nowrap;
    font-weight: 900;
    color: var(--bone-bright);
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

/* El año va debajo del nombre, al mismo tamaño (como en la cabecera de itch.io) */
.title-year {
    display: block;
    margin-top: 0.12em;
}

.hero-tagline {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-style: italic;
    color: var(--bone-white);
    max-width: 800px;
    margin: 0 auto 1rem;
}

.hero-description {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--paper-grey);
    margin: 0 auto 2.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.steam-note {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--paper-grey);
    margin: 0 auto 3.25rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--amber-glow);
    color: var(--bg-ink);
    box-shadow: var(--shadow-amber);
}

.btn-primary:hover {
    background: var(--amber-light);
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(255, 170, 0, 0.5);
}

.btn-secondary {
    background: rgba(36, 32, 26, 0.8);
    color: var(--bone-bright);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    border-color: var(--bone-white);
    background: var(--card-bg);
    transform: translateY(-3px);
}

/* Teaser */
.teaser-wrapper {
    position: relative;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-dark);
}

.frame-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--amber-glow);
    z-index: 5;
}

.corner-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #24201a 0%, #000 100%);
    border: none;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.video-overlay-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
}

.play-button {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    color: var(--amber-glow);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.flame-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 15px var(--amber-glow));
    animation: flameFlicker 1.5s infinite alternate;
}

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(-2deg); opacity: 0.85; }
    100% { transform: scale(1.1) rotate(2deg); opacity: 1; }
}

.video-placeholder:hover .play-button,
.video-placeholder:focus-visible .play-button {
    transform: scale(1.08);
    color: var(--bone-bright);
}

.hidden-video {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Marco sin teaser: clip en bucle (o su póster), sin botón de reproducir */
.hero-loop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.no-teaser .hero-loop { display: block; }
.no-teaser .video-placeholder { display: none; }

/* Secciones */
section {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
}

/* El juego */
.section-game {
    background: var(--bg-graphite);
    border-top: 1px solid rgba(61, 55, 46, 0.3);
    border-bottom: 1px solid rgba(61, 55, 46, 0.3);
}

.story {
    font-size: 1.3rem;
    color: var(--bone-white);
    margin-bottom: 1.5rem;
}

.pillars {
    list-style: none;
    margin-top: 3rem;
    border-top: 1px solid var(--card-border);
}

.pillars li {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.pillars strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--amber-glow);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.pillars span {
    font-size: 1.15rem;
    color: var(--paper-grey);
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 4 capturas: 2 x 2 (1 columna en móvil) */
    gap: 2rem;
}

@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item a { display: block; }

.gallery-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
}

.gallery-caption {
    padding: 1rem;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--bone-white);
    text-align: center;
}

/* Newsletter */
.section-newsletter {
    background: radial-gradient(circle at center, var(--card-bg) 0%, var(--bg-ink) 100%);
}

.newsletter-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 3.5rem 3rem;
    background: var(--card-bg);
    border: 1px solid var(--amber-glow);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

.newsletter-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--bone-bright);
    margin-bottom: 1rem;
}

.newsletter-box p {
    font-size: 1.15rem;
    color: var(--paper-grey);
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 550px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    position: relative;
    background: var(--bg-ink);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.input-group:focus-within {
    border-color: var(--amber-glow);
    box-shadow: var(--shadow-amber);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 1.55rem;
    transform: translateY(-50%);
    color: var(--paper-grey);
    width: 20px;
    height: 20px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    min-width: 0;
    padding: 1.1rem 1rem 1.1rem 3.2rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--bone-bright);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.newsletter-form button {
    padding: 0 2rem;
    background: var(--amber-glow);
    color: var(--bg-ink);
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form button:hover { background: var(--amber-light); }
.newsletter-form button:disabled { opacity: 0.7; cursor: wait; }

.form-status {
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.form-status.success { color: #51cf66; }
.form-status.error { color: #ff6b6b; }

.newsletter-box .privacy-note {
    margin: 1.5rem auto 0;
    max-width: 520px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--paper-grey);
}

.privacy-note a,
.footer-contact a { color: var(--bone-white); }

.privacy-note a:hover,
.footer-contact a:hover { color: var(--amber-glow); }

/* Footer */
.footer {
    background: #0a0806;
    border-top: 1px solid var(--card-border);
    padding: 3rem 0 1.5rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--bone-bright);
}

.footer-brand p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--paper-grey);
    margin-top: 0.25rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.75rem;
}

.footer-socials a {
    display: inline-block;
    padding: 0.55rem 0.15rem;   /* zona de toque de ~44 px */
    color: var(--paper-grey);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.footer-socials a:hover { color: var(--amber-glow); }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(61, 55, 46, 0.2);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--paper-grey);
}

/* Móvil */
@media (max-width: 900px) {
    .mobile-menu-btn { display: block; }

    .nav-container { padding: 0 1rem; }

    .nav-logo { font-size: 1.15rem; letter-spacing: 1px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(16, 14, 11, 0.97);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--card-border);
        box-shadow: var(--shadow-dark);
    }

    .nav-links.active { display: flex; }

    .hero { padding-top: 7rem; }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .container { padding: 0 1rem; }

    .pillars li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .newsletter-box { padding: 2.5rem 1.25rem; }

    .input-group { flex-direction: column; }

    .newsletter-form button { padding: 1rem; }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .flame-icon { animation: none; }
    .btn-primary:hover, .btn-secondary:hover { transform: none; }
}

/* Alagard tiene un único grosor: sin negrita sintética (la emborronaba) */
.nav-logo, .hero-title, .btn-primary, .btn-secondary, .play-button,
.pillars strong, .newsletter-box h2, .newsletter-form button, .footer-brand {
    font-weight: normal;
    font-synthesis: none;
}
