:root {
    --primary-color: #3182ce;  
    --primary-hover: #2b6cb0;
    --bg-color: #0b192c;       
    --card-bg: #1e3e62;        
    --text-main: #ffffff;
    --font-display: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 600; 
    overflow-y: hidden; 
}

a { text-decoration: none; color: var(--text-main); }
ul { list-style: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9999;
    background-color: var(--bg-color);
    border-bottom: 2px solid #1e3e62;
}

.logo { height: 60px; filter: invert(1); transition: transform 0.3s; }
.logo:hover { transform: scale(1.05) rotate(-2deg); }

.main-nav { background-color: var(--text-main); padding: 0.4rem 1.5rem; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a { font-family: var(--font-display); font-size: 1.2rem; color: var(--bg-color); text-transform: uppercase; letter-spacing: 1px; }
.main-nav a:hover { color: var(--primary-color); }

/* LAYOUT HORIZONTAL */
.horizontal-layout {
    display: flex;
    width: 100vw; height: 100vh;
    overflow-x: auto; overflow-y: hidden;
}

.panel {
    position: relative;
    flex: 0 0 100vw;
    height: 100vh;
    padding-top: 100px;
    border-right: 5px solid var(--primary-color);
}

/* ==========================================================================
   PÁGINA DE MENÚ
   ========================================================================== */
.menu-page {
    background-color: var(--bg-color);
    padding-top: 100px;
    overflow-y: auto; 
}

.menu-container {
    background-color: #ffffff; 
    color: #0b192c; 
    max-width: 1200px;
    margin: 2rem auto;
    padding: 3rem;
    box-shadow: 8px 8px 0px var(--primary-color);
    border: 2px solid #0b192c;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr auto 1.5fr;
    gap: 3rem;
}

.menu-category {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.menu-list {
    list-style: none;
    text-align: left;
    margin-left: 0;
    column-count: 2;
    column-gap: 1.5rem;
}

.menu-list li, .menu-item h3 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s;
    break-inside: avoid-column;
}

.menu-list li:hover, .menu-item:hover h3 {
    color: var(--primary-color); 
}

.menu-item p {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #444;
}

/* ==========================================================================
   ANIMACIONES, GRÁFICOS Y DESTELLOS DEL MENÚ
   ========================================================================== */

/* Columna Central */
.menu-center {
    display: flex;
    justify-content: center;
    align-items: center; 
    padding-top: 0; 
}

/* Animación de SOUR DOUGH */
@keyframes sourdoughPulse {
    0%, 100% { filter: drop-shadow(0px 0px 0px transparent); }
    50% { filter: drop-shadow(6px 6px 0px var(--primary-color)); }
}

.menu-sourdough {
    width: 110px;
    height: auto;
    animation: sourdoughPulse 3s infinite;
}

/* Destello Aleatorio (Llamado a la acción) */
.menu-list li.random-glow,
.menu-item.random-glow h3 {
    color: #0b192c !important; 
    background-color: var(--primary-color); 
    box-shadow: 4px 4px 0px #000000; 
    transform: scale(1.05) rotate(-3deg); 
    padding: 0.1rem 0.4rem; 
    border-radius: 2px;
    display: inline-block; 
    transition: all 0.1s ease-in-out; 
}

/* Contenedor de Fantasmas Menú */
.ghost-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 5rem 0; 
}

/* Animación Fantasmas en Patineta */
@keyframes skateFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.menu-ghosts {
    width: 270px;
    height: auto;
    animation: skateFloat 3.5s ease-in-out infinite; 
    filter: drop-shadow(6px 10px 0px rgba(0, 0, 0, 0.2)); 
}

/* ==========================================================================
   MODAL DE VIDEO
   ========================================================================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 25, 44, 0.9); 
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: #000;
    border: 4px solid var(--primary-color);
    box-shadow: 10px 10px 0px rgba(0,0,0,0.5);
}

.modal-content video {
    width: 100%;
    display: block;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 3rem;
    font-family: var(--font-display);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ff003c;
}

/* ==========================================================================
   ESTRUCTURA DE COLLAGE EN PC (Inicio)
   ========================================================================== */
.hero-collage {
    position: relative;
    padding: 120px 4% 4rem 4%;
    overflow: hidden;
}

.schedule-widget {
    position: absolute;
    top: 110px;
    left: 4%;
    width: 495px; 
    background-color: var(--card-bg);
    border: 2px solid #3182ce;
    padding: 1.8rem; 
    z-index: 20;
    text-align: center;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
}

.widget-info {
    height: 145px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-title { 
    font-family: var(--font-display); 
    font-size: 2.5rem; 
    line-height: 1; 
    text-transform: uppercase; 
    margin-bottom: 0.4rem; 
    letter-spacing: 1px;
}
.hours-text { 
    font-family: var(--font-display); 
    font-size: 1.35rem; 
    color: #ffffff; 
    letter-spacing: 1px;
}

.roulette-container {
    display: flex; justify-content: space-between; width: 100%; gap: 0.3rem; margin-top: 1rem;
}

.day-box {
    flex: 1; font-family: var(--font-display); font-size: 1rem; color: #cbd5e0;
    border: 1px solid #4a5568; background-color: var(--bg-color); padding: 0.5rem 0; cursor: pointer; transition: all 0.2s;
}
.day-box:hover { color: var(--text-main); border-color: var(--text-main); }
.day-box.active-day {
    background-color: var(--primary-color); color: var(--text-main); border-color: var(--primary-color); transform: scale(1.1);
}

.hero-content {
    position: absolute;
    top: 470px; 
    left: 4%;
    width: 540px;
    z-index: 10;
}

.hero-content h1 { 
    font-family: var(--font-display); 
    font-size: clamp(4rem, 6.5vw, 7rem); 
    line-height: 0.85; 
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
}

.hero-content h2 { 
    font-family: var(--font-display); 
    font-size: clamp(1.6rem, 2.5vw, 2.4rem); 
    color: #63b3ed; 
    margin: 0.8rem 0 1rem 0; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p { 
    font-size: 1.25rem; 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
    color: #ffffff; 
    letter-spacing: 0.5px;
}

.btn-primary { 
    background-color: var(--text-main); 
    color: var(--bg-color); 
    font-family: var(--font-display); 
    font-size: 1.2rem; 
    padding: 0.9rem 2rem; 
    display: inline-block; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-weight: 700;
    box-shadow: 4px 4px 0px #3182ce; 
}

.btn-primary:hover { 
    background-color: var(--primary-color); 
    color: var(--text-main);
    box-shadow: 4px 4px 0px #ffffff;
}

/* WIDGET DE CLIMA EN EL JARDIN */
.garden-weather-widget {
    position: absolute;
    top: 135px; /* Lo bajamos de 80px a 135px para que respire */
    right: 28%; /* Lo empujamos un poco a la derecha */
    background-color: #1e3e62;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 750;
    width: 270px;
    padding: 1.2rem;
    border: 2px solid #3182ce;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.4);
    z-index: 14;
    transform: rotate(-5deg); /* Rotación más sutil */
}

.weather-header { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: bold; color: #cbd5e0; border-bottom: 1px dashed #4a5568; padding-bottom: 0.4rem; margin-bottom: 0.8rem; }
.weather-temp { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; text-transform: uppercase; color: #63b3ed; }
.weather-desc { font-size: 0.85rem; font-weight: 800; color: #fff; margin: 0.4rem 0; letter-spacing: 1px; text-transform: uppercase; }
.weather-advice { font-size: 0.9rem; font-weight: 700; margin-top: 0.4rem; line-height: 1.3; color: #cbd5e0; }

/* 3. Ticket del Grano */
.doom-ticket {
    position: absolute;
    top: 400px; 
    left: 36%;  
    right: auto; 
    background-color: #f4f4f0; 
    color: #0b192c;
    font-family: 'Courier New', Courier, monospace; 
    font-weight: 750; 
    width: 310px;
    padding: 1.2rem;
    border: 2px dashed #0b192c;
    box-shadow: -6px 8px 0px #3182ce; 
    z-index: 15;
    transform: rotate(-4deg); 
}

.ticket-header { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: bold; color: #444; border-bottom: 1px dashed #ccc; padding-bottom: 0.4rem; margin-bottom: 0.8rem; }
.ticket-title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; text-transform: uppercase; color: var(--bg-color); }
.ticket-roaster { font-size: 0.85rem; font-weight: 800; color: #3182ce; margin-bottom: 0.8rem; letter-spacing: 1px; }
.ticket-divider { border: none; border-top: 2px dashed #0b192c; margin: 0.8rem 0; }
.ticket-data p { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.ticket-footer { display: flex; gap: 0.4rem; margin-top: 1rem; }
.ticket-btn { flex: 1; background-color: var(--bg-color); color: #fff; border: none; padding: 0.4rem; font-family: var(--font-display); font-size: 0.85rem; cursor: pointer; letter-spacing: 1px; }
.ticket-btn:hover, .ticket-btn.active { background-color: var(--primary-color); }

/* FANTASMAS FONDO */
.ghost-scene {
    position: absolute;
    top: 250px; 
    right: 0%;  
    width: 950px; 
    z-index: 5; 
    pointer-events: none;
}

.scene-bg {
    width: 100%;
    height: auto;
    filter: drop-shadow(4px 4px 0px rgba(255,255,255,0.08));
}

.draggable-sticker {
    position: absolute;
    cursor: grab;
    width: 85px; 
    filter: drop-shadow(4px 6px 0px rgba(0, 0, 0, 0.4));
    transition: transform 0.1s;
    pointer-events: auto;
}

.draggable-sticker:active {
    cursor: grabbing;
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(8px 12px 0px rgba(0, 0, 0, 0.5));
}

#ghost1 { top: 62%; left: 24%; } 
#ghost2 { top: 76%; left: 42%; } 
#ghost3 { top: 78%; left: 56%; } 
#ghost4 { top: 51%; left: 51%; } 

/* INFO SECTION */
.info-section { display: flex; align-items: center; justify-content: center; }
.info-grid { display: flex; gap: 3rem; width: 80%; margin: 0 auto; }
.info-card { border: 3px solid #3182ce; background-color: var(--card-bg); padding: 3rem; flex: 1; box-shadow: 6px 6px 0px rgba(0,0,0,0.3); }
.info-card h3 { font-family: var(--font-display); font-size: 2.5rem; color: #63b3ed; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.info-card li, .info-card p { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: #edf2f7; }

/* ==========================================================================
   MENÚ VOLADOR (Animación de viento)
   ========================================================================== */
.flying-menu {
    position: fixed; 
    top: 50%;
    left: 50%;
    width: 130px; 
    z-index: 9000; 
    pointer-events: auto; 
    cursor: pointer;
    filter: drop-shadow(8px 12px 6px rgba(0,0,0,0.4));
    transition: top 3.5s ease-in-out, left 4.5s ease-in-out, transform 4s ease-in-out;
}

.flying-menu img {
    width: 100%;
    height: auto;
    pointer-events: none;
}

.flying-menu:hover {
    filter: drop-shadow(15px 20px 10px rgba(0,0,0,0.6));
    transform: scale(1.15) !important; 
    transition: all 0.2s ease-out; 
    z-index: 9999;
}

/* ==========================================================================
   WIDGET DE UBICACIÓN (GPS)
   ========================================================================== */
.location-widget {
    position: absolute;
    top: 120px; /* Queda justo arriba de tu ticket del grano */
    left: 36%;  /* A un lado de tus horarios */
    width: 300px;
    background-color: var(--card-bg);
    border: 2px solid var(--primary-color);
    padding: 1.2rem;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    z-index: 18;
    transform: rotate(2deg);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.4);
    display: block;
    animation: gpsGlitch 4s infinite; 
}

/* Animación de destello que atrae la vista */
@keyframes gpsGlitch {
    0%, 85%, 100% { 
        background-color: var(--card-bg); 
        color: #ffffff; 
        box-shadow: 6px 6px 0px rgba(0,0,0,0.4); 
        transform: rotate(2deg);
    }
    88% { 
        background-color: var(--primary-color); 
        color: #0b192c; 
        box-shadow: -6px -6px 0px #ffffff; 
        transform: rotate(0deg) scale(1.02);
    }
    92% { 
        background-color: var(--card-bg); 
        color: #ffffff; 
        box-shadow: 6px 6px 0px rgba(0,0,0,0.4); 
        transform: rotate(2deg);
    }
    95% { 
        background-color: #ffffff; 
        color: #0b192c; 
        box-shadow: 8px 8px 0px var(--primary-color); 
        transform: rotate(4deg) scale(1.05);
    }
}

.loc-header { 
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px dashed #4a5568; 
    padding-bottom: 0.5rem; 
    margin-bottom: 0.8rem; 
    font-weight: bold; 
    font-size: 0.8rem;
}
/* Reemplazamos el parpadeo molesto por un color fijo neón */
.blinking-dot { color: #63b3ed; }

.loc-title { 
    font-family: var(--font-display); 
    font-size: 2.2rem; 
    color: #63b3ed; 
    line-height: 1; 
    margin-bottom: 0.5rem; 
    text-transform: uppercase;
}

.loc-body p { 
    font-weight: 700; 
    font-size: 0.95rem; 
    line-height: 1.4; 
    margin-bottom: 1rem; 
    color: #cbd5e0; 
}

.loc-action { 
    background-color: var(--bg-color); 
    color: #ffffff; 
    text-align: center; 
    padding: 0.6rem; 
    font-family: var(--font-display); 
    font-size: 1.1rem;
    letter-spacing: 2px; 
    transition: 0.2s; 
    border: 1px solid #4a5568;
}

/* Efecto al pasar el mouse por encima */
.location-widget:hover {
    animation: none; /* Se detiene el glitch para que puedan dar clic cómodamente */
    transform: rotate(0deg) scale(1.05);
    box-shadow: 8px 8px 0px #ffffff;
}

.location-widget:hover .loc-action {
    background-color: var(--primary-color);
    color: #0b192c;
}

/* ==========================================================================
   DISEÑO PARA MÓVILES Y PANTALLAS PEQUEÑAS
   ========================================================================== */
@media screen and (max-width: 1200px) {
    body { overflow-y: auto; overflow-x: hidden; }
    .horizontal-layout { display: block; height: auto; width: 100%; }
    
    .main-header { flex-direction: column; padding: 0.8rem 3%; width: 100%; }
    .main-nav { width: 100%; display: flex; justify-content: center; }
    .logo { height: 35px; }
    
    .panel { 
        flex: none; width: 100%; height: auto; border-right: none; 
        padding-top: 120px; padding-left: 4%; padding-right: 4%; padding-bottom: 4rem;
        display: flex; flex-direction: column; align-items: center;
    }
    
    .hero-collage {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem; 
        padding-top: 120px;
    }

    .schedule-widget { 
        position: relative; 
        top: 0; left: 0; 
        width: 96%; 
        max-width: 100%; 
        padding: 1.2rem; 
        margin: 0 auto;
        order: 1; 
        transform: rotate(-2deg); 
        box-shadow: 4px 6px 0px rgba(0, 0, 0, 0.4);
    }

    .widget-info { height: 115px; }
    .status-title { font-size: 2.2rem; }
    .hours-text { font-size: 1.2rem; }
    .roulette-container { margin-top: 0.8rem; }
    .day-box { font-size: 0.95rem; padding: 0.4rem 0; }

    .hero-content { 
        position: relative; 
        top: 0; left: 0; 
        width: 100%; 
        text-align: center; 
        order: 3; 
        z-index: 10; 
        padding: 1rem 0;
    }
    .hero-content h1 { font-size: 3.8rem; } 

    .garden-weather-widget {
        position: relative;
        top: 0; right: 0;
        width: 90%;
        align-self: flex-end; 
        transform: rotate(3deg); 
        text-align: left;
        order: 4; 
        box-shadow: -4px 6px 0px rgba(0, 0, 0, 0.4); 
        margin-bottom: -2rem; 
        z-index: 12;
    }
    
    .ghost-scene {
        position: relative; 
        top: 0; right: 0;
        width: 110%; 
        margin-left: -5%;
        margin-top: 0;
        order: 5; 
        z-index: 1;
    }

    .draggable-sticker { width: 50px; }
    #ghost1 { top: 58%; left: 25%; } 
    #ghost2 { top: 30%; left: 8%; } 
    #ghost3 { top: 20%; left: 70%; } 
    #ghost4 { top: 48%; left: 45%; } 

    .doom-ticket { 
        position: relative; 
        top: 0; left: 0; right: auto;
        width: 94%; 
        align-self: flex-start; 
        transform: rotate(-3deg); 
        text-align: left;
        box-shadow: 6px 6px 0px #3182ce; 
        margin-top: -3rem; 
        order: 5; 
        z-index: 15; 
    }
    
    .info-grid { flex-direction: column; width: 100%; }

    /* ==========================================
       AJUSTES DE MENÚ PARA MÓVIL
       ========================================== */
    .menu-container {
        padding: 1.5rem; 
        margin: 1.5rem auto;
        transform: rotate(1deg); 
        box-shadow: -8px 10px 0px var(--primary-color);
    }

    .menu-grid {
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }

    .menu-category {
        font-size: 2.2rem; 
        margin-bottom: 1.5rem;
        display: inline-block;
    }

    /* Rotación intercalada de títulos */
    .menu-col:nth-child(1) .menu-category:first-of-type { transform: rotate(-3deg); }
    .menu-col:nth-child(1) .menu-category:last-of-type { transform: rotate(2deg); }

    .menu-list {
        column-count: 2; 
        column-gap: 1rem; 
        max-width: 320px; 
        margin: 0 auto; 
        text-align: center;
    }

    .menu-list li {
        font-size: 0.85rem; 
        margin-bottom: 1rem;
        break-inside: avoid;
        transition: transform 0.1s ease, color 0.1s ease;
    }

    .menu-list li:active {
        transform: scale(1.15) rotate(-3deg); 
        color: var(--primary-color);
        font-weight: 900;
    }

    .ghost-container {
        margin: 2.5rem 0; 
    }

    .menu-ghosts {
        width: 220px; 
    }

    /* Divisor de Sour Dough (Restaurado) */
    .menu-center {
        padding-top: 0;
        margin: 3rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
    }

    .menu-sourdough { 
        transform: rotate(-90deg); 
        height: 280px; 
        width: auto; 
        /* La animación de sombra sigue funcionando sin romper el giro */
    }

    .menu-item {
        text-align: left; 
        margin-bottom: 1.8rem;
    }
    
    .menu-item h3 {
        font-size: 1.05rem;
    }
    
    .menu-item p {
        font-size: 0.8rem; 
        margin-bottom: 0;
    }

    /* Ajuste de Ubicación en Móvil */
    .location-widget {
        position: relative;
        top: 0; 
        left: 0;
        width: 94%;
        order: 2; /* Lo manda hasta el final del collage */
        margin: 1rem auto 2rem auto;
        transform: rotate(2deg);
        box-shadow: -4px 6px 0px rgba(0,0,0,0.5);
    }
}