/* --- Estilos Globales de la Marca --- */
:root {
    --irrestricta-green: #1b3022;
    --irrestricta-green-deep: #0f1c14;
    --irrestricta-gold: #d4a373;
    --irrestricta-ochre: #c4783a;
    --irrestricta-cream: #f5efe6;
    --irrestricta-red: #b23a2f;
    --background-light: #fdfcf9;
    --text-dark: #2a241c;
    --header-h: 6.25rem;
    --brand-font: 'Oswald', sans-serif;
    --body-font: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    --serif-font: 'Cormorant Garamond', Georgia, serif;
    --arcade-font: 'Press Start 2P', cursive;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    overflow-x: clip;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    font-family: var(--body-font);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    max-width: 100%;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, .brand-font {
    font-family: var(--brand-font);
    text-transform: uppercase;
    font-weight: 700;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: var(--irrestricta-gold);
    color: var(--irrestricta-green);
    padding: 0.6rem 1rem;
    font-family: var(--brand-font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* --- Header fijo --- */
#site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(15, 28, 20, 0.92) 0%, rgba(27, 48, 34, 0.78) 100%);
    border-bottom: 1px solid rgba(212, 163, 115, 0.18);
    backdrop-filter: blur(12px);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#site-header.is-scrolled {
    background: rgba(15, 28, 20, 0.96);
    border-bottom-color: var(--irrestricta-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--irrestricta-cream);
}

.brand-lockup img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--irrestricta-gold);
    box-shadow: 0 0 0 3px rgba(27, 48, 34, 0.85);
    flex-shrink: 0;
}

.brand-lockup-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-lockup-text strong {
    font-family: var(--brand-font);
    font-size: 1.12rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.brand-lockup-text small {
    font-family: var(--brand-font);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--irrestricta-gold);
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    color: rgba(245, 239, 230, 0.82);
    text-decoration: none;
    font-family: var(--brand-font);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--irrestricta-green);
    background: var(--irrestricta-gold);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1.5px solid var(--irrestricta-gold);
    border-radius: 10px;
    background: rgba(212, 163, 115, 0.18);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--irrestricta-gold);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
    :root {
        --header-h: 4.35rem;
    }

    #site-header {
        height: var(--header-h);
    }

    .header-inner {
        width: calc(100% - 1.25rem);
    }

    .brand-lockup img {
        width: 48px;
        height: 48px;
    }

    .brand-lockup-text strong { font-size: 0.82rem; letter-spacing: 0.12em; }
    .brand-lockup-text small { font-size: 0.52rem; }

    .nav-toggle { display: inline-flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 1rem 1.1rem;
        background: rgba(15, 28, 20, 0.98);
        border-bottom: 1px solid var(--irrestricta-gold);
        z-index: 70;
    }

    .site-nav.is-open { display: flex; }

    .site-nav a { width: 100%; text-align: center; padding: 0.75rem; }
}

.screen-section {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* --- EL CONTENEDOR DE LA ARCADE (Responsivo) --- */
#game-container {
    width: 100%;           
    max-width: 800px;      /* Se mantiene centrado en PC */
    margin: 0 auto;        
    background-color: #2d1e16; 
    border: 15px solid #3d2b1f; 
    border-radius: 20px;
    padding: 10px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    box-sizing: border-box; /* Crucial para que el borde no rompa el ancho */
}

.marquee {
    border-bottom: 3px solid var(--irrestricta-gold);
    padding: 8px 0;
    background: rgba(0,0,0,0.5);
    margin-bottom: 10px;
    border-radius: 5px 5px 0 0;
}

.marquee h3 {
    color: var(--irrestricta-gold);
    font-size: 1.1rem;
}

/* --- ÁREA DE PANTALLA DEL JUEGO --- */
.contenedor-juego {
    width: 100%;
    height: 350px; /* Aumentamos de 250px a 350px para darle más altura */
    position: relative;
    background: linear-gradient(#fdfcf9, #e9e4d7);
    overflow: hidden;
    border: 6px solid #111;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

/* Colores de niveles */
.mediodia { background-color: #f1dca7 !important; }
.tarde { background-color: #e67e22 !important; }
.noche { background-color: #1b3022 !important; }
.noche .score { color: #fdfcf9; }

/* --- ENTIDADES DEL JUEGO --- */
.dino {
    width: 84px;
    height: 84px;
    position: absolute;
    bottom: 22px;
    left: 42px;
    z-index: 2;
    background: url(../img/kegpet.png) repeat-x 0px 0px;
    background-size: 336px 84px;
    /* transform: scaleX(-1); Refleja la imagen para que mire al frente */
}

.dino-corriendo {
    animation: animarDino 0.25s steps(2) infinite;
}

.dino-estrellado {
    background-position-x: -252px;
}

.suelo {
    width: 200%;
    height: 42px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: url(../img/suelo.png) repeat-x 0px 0px;
    background-size: 50% 42px;
}

/* --- OBSTÁCULOS VARIADOS --- */
.cactus {
    width: 50px;
    height: 80px;
    position: absolute;
    bottom: 22px;
    z-index: 10;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}

/* Clases específicas para cada imagen - Tamaños incrementados */
.obs-botella { background-image: url(../img/botella.png); width: 48px; height: 100px; }
.obs-lupulo { background-image: url(../img/lupulo.png); width: 65px; height: 65px; }
.obs-taphead { background-image: url(../img/taphead.png); width: 75px; height: 85px; }
.obs-foamhead { background-image: url(../img/foamhead.png); width: 75px; height: 85px; }

/* Obstáculo volador */
.volador {
    bottom: 140px !important; /* Aumentado de 90px a 140px para dar más espacio abajo */
    animation: flotar 0.6s ease-in-out infinite alternate;
}

@keyframes flotar {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* --- DECORACIÓN DE FONDO (Tótems en las Esquinas) --- */
.totem-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 1; /* Por encima del fondo pero bajo KegPet */
    opacity: 0; /* Ocultos por defecto */
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* No interfieren con los clics */
    transition: opacity 1s, transform 1s;
}

.totem-corner.visible {
    opacity: 0.4; /* Se vuelven visibles */
}

.totem-tl {
    top: -20px;
    left: -20px;
    background-image: url(../img/totem1.png);
    transform: rotate(15deg);
}
.totem-tr {
    top: -20px;
    right: -20px;
    background-image: url(../img/totem2.png);
    transform: rotate(-15deg);
}
.totem-bl {
    bottom: 10px;
    left: -30px;
    background-image: url(../img/totem3.png);
    transform: rotate(-10deg);
    height: 150px;
}
.totem-br {
    bottom: 10px;
    right: -30px;
    background-image: url(../img/totem4.png);
    transform: rotate(10deg);
    height: 150px;
}

/* Mostrar más los tótems cuando el juego está parado o en Game Over */
.contenedor-juego.pausado .totem-corner {
    opacity: 0.6;
}

/* Nubes normales */
.nube {
    width: 110px;
    height: 32px;
    position: absolute;
    z-index: 0;
    background: url(../img/nube.png) no-repeat;
    background-size: contain;
}

.nubei {
    width: 120px;
    height: 60px;
    position: absolute;
    z-index: 0;
    background: url(../img/nubei.png) no-repeat;
    background-size: contain;
}

/* --- INTERFAZ (UI) --- */
.score {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--brand-font);
    font-size: 32px;
    color: #e67e22; /* Naranja Irrestricta */
    font-weight: bold;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    z-index: 10;
}

.game-over {
    display: none;
    position: absolute;
    top: 40%; /* Un poco más arriba del centro */
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--brand-font);
    font-size: 42px; /* Un poco más grande para resaltar */
    color: #e74c3c;
    text-align: center;
    z-index: 20;
    width: 100%;
    background: none; /* Quitamos el fondo blanco/transparente */
    padding: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Sombra para que se lea bien sobre cualquier fondo */
}

/* --- CONTROLES ARCADE --- */
.arcade-controls {
    border-top: 3px solid var(--irrestricta-gold);
    padding-top: 15px;
    margin-top: 10px;
}

.control-text {
    color: #fff;
    font-size: 0.8rem;
}

.btn-arcade {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.2);
}

/* --- MEDIA QUERIES PARA MÓVILES (Borde a Borde) --- */
@media (max-width: 600px) {
    #game-container {
        width: 100%;
        max-width: 100%;
        border-width: 8px;
        border-radius: 12px;
        padding: 6px;
        margin: 0 auto;
    }

    .contenedor-juego {
        height: 210px;
        border-width: 3px;
    }

    .marquee h3 {
        font-size: 0.55rem;
        line-height: 1.5;
    }

    .score {
        font-size: 22px;
        top: 5px;
        right: 10px;
    }
}

/* --- ANIMACIONES --- */
@keyframes animarDino {
    from { background-position-x: -84px; }
    to { background-position-x: -252px; }
}

/* --- MENÚ PREMIUM (ESTILO IRRESTRICTA) --- */
.menu-premium {
    background-color: var(--irrestricta-green);
    color: #fff;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    border: 2px solid var(--irrestricta-gold);
}

.category-header {
    display: inline-block;
    background-color: var(--irrestricta-gold);
    color: var(--irrestricta-green);
    padding: 10px 40px;
    font-family: var(--brand-font);
    font-size: 1.6rem;
    letter-spacing: 3px;
    border-radius: 50px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.menu-item {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.menu-item h4 {
    font-family: var(--brand-font);
    font-size: 1.3rem;
    color: var(--irrestricta-gold);
    margin-bottom: 2px;
}

.menu-item p, .menu-item small {
    color: #e0e0e0;
}

.price-box {
    text-align: right;
    font-family: var(--brand-font);
}

.price-main {
    color: var(--irrestricta-gold);
    font-size: 1.3rem;
    font-weight: bold;
}

.tap-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--irrestricta-gold);
    color: var(--irrestricta-green);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 15px;
}

.tap-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.tap-item:hover {
    background: rgba(255,255,255,0.1);
}

.border-end-gold {
    border-right: 1px solid rgba(212, 163, 115, 0.3);
}

.menu-deco-icon {
    width: 40px;
    height: auto;
    opacity: 0.8;
}

.menu-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 250px;
    opacity: 0.1;
    pointer-events: none;
}

.chalkboard .kegpet-deco {
    position: absolute;
    z-index: 5;
    width: 48px;
    height: auto;
    top: -34px;
    left: 28px;
}

.brewer-bg {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .border-end-gold {
        border-right: none;
        border-bottom: 1px solid rgba(212, 163, 115, 0.3);
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

/* --- FOOTER PREMIUM --- */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #1b3022 0%, #142218 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 3.5rem 0 0;
    margin-top: auto;
    overflow: hidden;
}

.footer-accent {
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--irrestricta-gold) 20%,
        #e8c9a0 50%,
        var(--irrestricta-gold) 80%,
        transparent 100%
    );
}

.footer-main {
    padding: 2.5rem 0 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 992px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-logo {
    width: 88px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.footer-brand-name {
    font-family: var(--brand-font);
    font-size: 1.05rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.35rem;
}

.footer-brand-tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--irrestricta-gold);
    margin: 0;
    opacity: 0.95;
}

.footer-label {
    font-family: var(--brand-font);
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--irrestricta-gold);
    margin-bottom: 1.25rem;
}

.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 992px) {
    .footer-social-list {
        align-items: flex-start;
    }
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(212, 163, 115, 0.25);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.88rem;
    transition: border-color 0.25s, background-color 0.25s, transform 0.25s, color 0.25s;
}

.footer-social-link:hover {
    color: var(--irrestricta-gold);
    border-color: var(--irrestricta-gold);
    background: rgba(212, 163, 115, 0.08);
    transform: translateY(-1px);
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--irrestricta-gold);
    flex-shrink: 0;
}

.footer-social-icon svg {
    width: 100%;
    height: 100%;
}

.footer-social-text {
    letter-spacing: 0.3px;
}

.footer-address {
    font-style: normal;
    line-height: 1.7;
}

.footer-address strong {
    display: block;
    font-family: var(--brand-font);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-address a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-address a:hover {
    color: var(--irrestricta-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 163, 115, 0.15);
    padding: 1.25rem 0 1.75rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .site-footer {
        padding-top: 2.5rem;
    }

    .footer-main {
        padding: 1.5rem 0 1.25rem;
    }

    .footer-label {
        margin-bottom: 1rem;
    }

    .footer-address strong {
        margin-bottom: 0.35rem;
    }
}

/* --- Botones de marca --- */
.btn-gold,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--brand-font);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.9rem 1.7rem;
    transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-gold {
    background: var(--irrestricta-gold);
    color: var(--irrestricta-green);
    border-color: var(--irrestricta-gold);
}

.btn-gold:hover {
    background: #e8c9a0;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--irrestricta-cream);
    border-color: rgba(212, 163, 115, 0.7);
}

.btn-ghost:hover {
    border-color: var(--irrestricta-gold);
    color: var(--irrestricta-gold);
}

.section-kicker {
    font-family: var(--brand-font);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--irrestricta-gold);
    margin: 0 0 0.75rem;
}

.hop-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1.75rem;
    color: var(--irrestricta-gold);
}

.hop-divider::before,
.hop-divider::after {
    content: "";
    width: 4.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

/* --- Hero / Terraza --- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    background: #0f1c14 url("../img/hero-terraza.webp") center/cover no-repeat;
    color: var(--irrestricta-cream);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 28, 20, 0.35) 0%, rgba(10, 16, 12, 0.55) 42%, rgba(10, 16, 12, 0.88) 100%),
        linear-gradient(90deg, rgba(10, 16, 12, 0.45) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 7rem 0 4.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0 0 0.85rem;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-sub {
    font-family: var(--serif-font);
    font-size: clamp(1.25rem, 2.6vw, 1.85rem);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--irrestricta-gold);
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 163, 115, 0.25);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.75);
}

/* --- Historia --- */
.historia {
    background: var(--irrestricta-green-deep);
    color: var(--irrestricta-cream);
    position: relative;
    overflow: hidden;
}

.historia::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -80px;
    bottom: -80px;
    background: url("../img/logo.png") center/contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.historia-grid {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.25rem 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.historia h2 {
    font-family: var(--serif-font);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 1.25rem;
}

.historia p {
    font-family: var(--serif-font);
    font-size: 1.2rem;
    line-height: 1.75;
    color: rgba(245, 239, 230, 0.82);
    margin: 0 0 1.1rem;
}

.historia-quote {
    font-family: var(--serif-font);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--irrestricta-gold);
    border-left: 2px solid var(--irrestricta-gold);
    padding-left: 1.1rem;
    margin: 1.75rem 0 0;
}

.historia-visual {
    display: grid;
    gap: 1rem;
}

.historia-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.historia-visual img:first-child {
    height: min(240px, 28vh);
    border: 1px solid rgba(212, 163, 115, 0.35);
}

.historia-visual img:last-child {
    height: min(180px, 22vh);
    border: 1px solid rgba(212, 163, 115, 0.2);
    filter: saturate(0.92);
}

@media (max-width: 860px) {
    .historia-grid {
        grid-template-columns: 1fr;
        padding: 2rem 0;
        gap: 1.5rem;
    }
}

.photo-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: min(38vh, 340px);
    background: #0f1c14;
}

.photo-band figure {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.photo-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.95);
    transition: transform 0.5s ease, filter 0.4s ease;
}

.photo-band figure:hover img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

@media (max-width: 700px) {
    .photo-band {
        height: 160px;
    }
}

/* --- Carta / pizarra --- */
.menu-section {
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 163, 115, 0.08), transparent 40%),
        #14110e;
    color: #f3ead8;
    padding: 1.5rem 0;
}

.menu-wrap {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.menu-heading {
    text-align: center;
    margin-bottom: 1rem;
}

.menu-heading h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0;
}

.menu-heading .hop-divider {
    margin: 0.7rem 0 0;
}

.chalkboard {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 35%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px),
        #1c1a14;
    border: 14px solid #5c3a24;
    outline: 2px solid #d4a373;
    outline-offset: 3px;
    border-radius: 6px;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.45),
        0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
}

.chalkboard::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(212, 163, 115, 0.18);
    pointer-events: none;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.menu-col h3 {
    color: var(--irrestricta-gold);
    letter-spacing: 0.18em;
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    text-align: center;
}

.chalkboard .tap-item {
    padding: 8px 10px;
    margin-bottom: 6px;
}

.tap-body {
    flex: 1;
    min-width: 0;
}

.tap-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.tap-body h4,
.chalkboard .menu-item h4 {
    margin: 0;
    max-width: 70%;
    line-height: 1.15;
}

.tap-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff9f43;
    font-weight: 600;
}

.price-variants {
    display: flex;
    gap: 0.55rem;
    flex-shrink: 0;
}

.price-variant {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.price-variant small {
    font-size: 0.58rem;
    color: var(--irrestricta-gold);
    text-transform: uppercase;
    white-space: nowrap;
}

.chalkboard .price-main {
    font-size: 1.1rem;
}

.chalkboard .category-header {
    font-size: 1rem;
    padding: 6px 22px;
    margin-bottom: 12px;
}

details.category-block {
    margin-bottom: 1.35rem;
}

details.category-block > summary {
    list-style: none;
    cursor: default;
}

details.category-block > summary::-webkit-details-marker {
    display: none;
}

.menu-tabs {
    display: none;
}

.menu-section.screen-section {
    justify-content: flex-start;
}

.chalkboard .menu-item {
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
}

.chalkboard .menu-item p,
.tap-body p {
    margin: 0.2rem 0 0;
    color: #d8d0c0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.menu-loading,
.menu-empty,
.menu-error {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(243, 234, 216, 0.72);
}

.menu-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(212, 163, 115, 0.25);
    border-top-color: var(--irrestricta-gold);
    border-radius: 50%;
    animation: menu-spin 0.8s linear infinite;
    margin: 0 auto 0.75rem;
}

@keyframes menu-spin {
    to { transform: rotate(360deg); }
}

.menu-section.screen-section {
    justify-content: flex-start;
}

.dish-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.7rem;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.dish-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(212, 163, 115, 0.35);
}

.dish-card h4 {
    font-family: var(--brand-font);
    text-transform: uppercase;
    color: var(--irrestricta-gold);
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}

.dish-card p {
    margin: 0;
    color: #d8d0c0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.menu-note {
    text-align: center;
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 163, 115, 0.8);
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .border-end-gold {
        border-right: none;
        border-bottom: 1px solid rgba(212, 163, 115, 0.3);
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* --- Ubicación --- */
.ubicacion {
    background: var(--irrestricta-cream);
    color: var(--text-dark);
}

.ubicacion-grid {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.ubicacion h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: 0.08em;
    color: var(--irrestricta-green);
    margin: 0 0 1rem;
}

.ubicacion p {
    line-height: 1.7;
    margin: 0 0 1.2rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.contact-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(27, 48, 34, 0.12);
}

.contact-list strong {
    display: block;
    font-family: var(--brand-font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--irrestricta-ochre);
    margin-bottom: 0.2rem;
}

.contact-list a {
    color: var(--irrestricta-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-list a:hover {
    color: var(--irrestricta-ochre);
}

.map-wrap {
    position: relative;
    min-height: 420px;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(27, 48, 34, 0.12);
}

.map-frame {
    min-height: 420px;
    border: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.map-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(15, 28, 20, 0.94);
    color: var(--irrestricta-cream);
    border: 1px solid var(--irrestricta-gold);
    border-radius: 999px;
    padding: 0.45rem 1rem 0.45rem 0.45rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.map-badge img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--irrestricta-gold);
}

.map-badge strong {
    display: block;
    font-family: var(--brand-font);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.map-badge span {
    font-size: 0.75rem;
    color: var(--irrestricta-gold);
}

.irrestricta-marker {
    background: none;
    border: 0;
}

.irrestricta-marker-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    transform: translateY(-6px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.irrestricta-marker-pin img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--irrestricta-gold);
    background: var(--irrestricta-green);
    box-shadow: 0 0 0 3px #fff;
}

.irrestricta-marker-pin i {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 12px solid var(--irrestricta-gold);
    margin-top: -2px;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    font-family: var(--body-font);
}

.leaflet-popup-content strong {
    font-family: var(--brand-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--irrestricta-green);
}

@media (max-width: 860px) {
    .ubicacion-grid {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }

    .map-wrap,
    .map-frame { min-height: 320px; }
}

/* --- Arcade --- */
.arcade-section {
    background:
        radial-gradient(circle at 50% 0%, #3a1f16 0%, #140e0c 55%, #0a0706 100%);
    color: #fff;
    padding: 1.5rem 0 2rem;
    position: relative;
}

.arcade-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.25;
    pointer-events: none;
}

.arcade-inner {
    width: min(900px, calc(100% - 2rem));
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.arcade-inner h2 {
    font-family: var(--arcade-font);
    font-size: clamp(0.85rem, 2.4vw, 1.15rem);
    line-height: 1.6;
    letter-spacing: 0.08em;
    color: var(--irrestricta-gold);
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    text-shadow: 0 0 18px rgba(212, 163, 115, 0.45);
}

.arcade-lead {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto 1rem;
    max-width: 36rem;
}

#arcade-container {
    margin-top: 0.5rem;
}

.arcade-start-row {
    display: flex;
    justify-content: center;
    margin: 0 0 1.25rem;
}

.marquee h3 {
    font-family: var(--arcade-font);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

@media (max-width: 768px) {
    .hero-content {
        padding: calc(var(--header-h) + 0.75rem) 0 1.35rem;
    }

    .hero h1 {
        font-size: 2.05rem;
        margin-bottom: 0.45rem;
    }

    .hero-sub {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.55rem;
    }

    .hero-actions .btn-gold,
    .hero-actions .btn-ghost {
        width: 100%;
        padding: 0.75rem 1.1rem;
        font-size: 0.74rem;
    }

    .hero-meta {
        gap: 0.4rem 0.85rem;
        margin-top: 1.1rem;
        padding-top: 0.85rem;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .screen-section {
        min-height: auto;
        justify-content: flex-start;
    }

    .arcade-section.screen-section {
        min-height: calc(100svh - var(--header-h));
        justify-content: center;
        padding: 0.6rem 0 1rem;
    }

    .arcade-inner {
        width: calc(100% - 1.25rem);
    }

    .arcade-inner h2 {
        font-size: 0.78rem;
        margin-bottom: 0.4rem;
    }

    .arcade-lead {
        font-size: 0.82rem;
        margin-bottom: 0.55rem;
        line-height: 1.4;
    }

    .arcade-controls {
        padding-top: 8px;
        margin-top: 6px;
    }

    .control-text {
        font-size: 0.68rem;
    }

    .menu-section {
        padding: 1rem 0 1.5rem;
    }

    .menu-heading h2 {
        font-size: 1.45rem;
    }

    .menu-heading .hop-divider {
        margin: 0.4rem 0 0;
    }

    .chalkboard {
        border-width: 7px;
        padding: 0.85rem 0.7rem 1rem;
        outline-width: 1px;
    }

    .chalkboard .kegpet-deco {
        display: none;
    }

    .menu-tabs {
        display: flex;
        gap: 0.45rem;
        margin-bottom: 0.85rem;
        position: relative;
        z-index: 2;
    }

    .menu-tab {
        flex: 1;
        font-family: var(--brand-font);
        font-size: 0.78rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--irrestricta-gold);
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(212, 163, 115, 0.4);
        border-radius: 999px;
        padding: 0.55rem 0.4rem;
        cursor: pointer;
    }

    .menu-tab.is-active {
        background: var(--irrestricta-gold);
        color: var(--irrestricta-green);
        border-color: var(--irrestricta-gold);
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-col {
        display: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    .menu-col.is-visible {
        display: block;
    }

    details.category-block > summary.category-header {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    details.category-block > summary::after {
        content: "+";
        font-size: 1.1rem;
        line-height: 1;
        margin-left: 0.5rem;
    }

    details.category-block[open] > summary::after {
        content: "–";
    }

    .chalkboard .category-header {
        margin-bottom: 8px;
    }

    .tap-body p,
    .chalkboard .menu-item p {
        display: none;
    }

    .chalkboard .tap-item {
        padding: 6px 8px;
        margin-bottom: 4px;
    }

    .tap-body h4,
    .chalkboard .menu-item h4 {
        max-width: 62%;
        font-size: 0.95rem;
    }

    .chalkboard .price-main {
        font-size: 0.95rem;
    }

    .map-wrap,
    .map-frame {
        min-height: 260px;
    }

    .map-badge {
        left: 8px;
        bottom: 8px;
        padding: 0.3rem 0.7rem 0.3rem 0.3rem;
    }

    .map-badge img {
        width: 32px;
        height: 32px;
    }

    .map-badge strong {
        font-size: 0.62rem;
    }

    .photo-band {
        height: 140px;
    }
}