/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuentes personalizadas */
@font-face {
    font-family: 'BlackSheepGrunge';
    src: url('fonts/BlackSheepGrunge.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BlackSheep';
    src: url('fonts/BlackSheep.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #020307; /* fondo más oscuro de nuevo, pero no negro puro */
    color: #FFFFFF;
    font-family: 'BlackSheep', 'Arial', sans-serif !important;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 15px;
}

/* Protección de imágenes - Todas las imágenes */
img {
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}


/* Loader de página completa al iniciar */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: radial-gradient(circle at top, #111118, #020307 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.loader-logo img {
    height: 70px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 22px rgba(242, 60, 60, 0.7));
}

.loader-bar {
    position: relative;
    width: 180px;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.loader-bar span {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(159, 241, 253, 0.1), #f23c3c, rgba(249, 176, 249, 0.1));
    animation: loaderSweep 1s linear infinite;
}

@keyframes loaderSweep {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(260%);
    }
}

.loader-text {
    font-family: 'BlackSheep', 'Arial', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Animated Noise/Static Effect on body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Scanlines rojas y celestes tipo TV */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(242, 60, 60, 0.05) 2px,
            rgba(242, 60, 60, 0.05) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(159, 241, 253, 0.05) 2px,
            rgba(159, 241, 253, 0.05) 4px
        ),
        /* Scratches diagonales “sucios” */
        repeating-linear-gradient(
            -35deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 5px
        );
    background-size: 50px 50px;
    animation: noiseMove 0.5s steps(8) infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes noiseMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 50px 50px, -50px -50px;
    }
}

/* Floating particles overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(242, 60, 60, 0.22) 0px, transparent 60px),
        radial-gradient(circle at 60% 70%, rgba(159, 241, 253, 0.22) 0px, transparent 60px),
        radial-gradient(circle at 80% 40%, rgba(249, 176, 249, 0.22) 0px, transparent 60px),
        radial-gradient(circle at 40% 80%, rgba(242, 60, 60, 0.22) 0px, transparent 60px);
    animation: particlesFloat 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes particlesFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.6;
    }
}

/* Frame del menú: define el área visible y crea margen fijo arriba/abajo */
.menu-frame {
    position: fixed;
    top: 72px;   /* margen superior más compacto para dar más espacio al contenido */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    z-index: 1;
}

/* Menu Container - Scroll Continuo dentro del frame */
.menu-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px; /* padding top pequeño; el margen real lo controla .menu-frame */
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
    overflow-y: auto;
    padding-bottom: 40px; /* valor base; se ajusta dinámicamente con JS según la altura del footer */
}


/* Tabs Bebidas / Comida - botones reutilizados en el footer */
.menu-tab {
    font-family: 'BlackSheep', 'Arial', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #777777;
    letter-spacing: 0.12em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.menu-tab:hover {
    color: #ffffff;
    opacity: 1;
}

.menu-tab.active {
    color: #ffffff;
    background: rgba(242, 60, 60, 0.18);
}

.menu-tab-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.menu-tab-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-tab-label {
    font-size: 0.7rem;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Footer fijo tipo menú de app */
.menu-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 18px calc(8px + env(safe-area-inset-bottom, 0px)); /* footer más compacto */
    transform: translateY(0); /* estado base para que la transición funcione en ambas direcciones */
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
    background: transparent; /* sin barra negra, solo botones */
    border-top: none;
    box-shadow: none;
}

.menu-footer .menu-tab {
    flex: 1;
    max-width: 220px;
}

.footer-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Page Break */
.page-break {
    height: 0;
    width: 100%;
    margin: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* Títulos principales - FUENTE GRANDE Y LEGIBLE */
.main-title {
    font-family: 'BlackSheepGrunge', 'Anton', sans-serif;
    font-size: clamp(4rem, 15vw, 8rem); /* 100pt base */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px 0;
    line-height: 0.9;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: titleBounce 2s ease-in-out infinite;
}

/* Bounce animation with different delays for each section */
@keyframes titleBounce {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-15px);
    }
}

/* Different delays for each category */
.juguitos-section .main-title {
    animation-delay: 0s;
}

.cocteles-section .main-title {
    animation-delay: 0.3s;
}

.otros-section .main-title {
    animation-delay: 0.6s;
}

.shots-section .main-title {
    animation-delay: 0.9s;
}

.shots-individual-section .main-title {
    animation-delay: 1.2s;
}

.litros-section .main-title {
    animation-delay: 1.5s;
}

.botellas-section .main-title {
    animation-delay: 1.8s;
}

.main-title span {
    line-height: 0.9;
    display: block;
}

.title-red {
    color: #f23c3c;
}

.title-red-animated {
    color: #f23c3c;
    animation: colorCycle 6s ease-in-out infinite;
}

@keyframes colorCycle {
    0%, 25% { 
        color: #f23c3c; /* Red */
    }
    25.1%, 50% { 
        color: #9ff1fd; /* Blue */
    }
    50.1%, 75% { 
        color: #f9b0f9; /* Pink */
    }
    75.1%, 100% { 
        color: #f23c3c; /* Red */
    }
}

.main-title > span:not(.title-red):not(.title-red-animated):not(.subtitle-red) {
    margin-top: -10px;
}

.subtitle-red {
    color: #f23c3c;
    font-size: clamp(1.5rem, 7vw, 3.5rem); /* 47pt base */
    margin-top: -10px;
}

.section-subtitle {
    font-family: 'BlackSheep', 'Arial', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.8;
    text-align: center;
}

/* Items del menú */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Items especiales - BOXES de comida */
.menu-item.menu-box {
    position: relative;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(242, 60, 60, 0.6);
    background: radial-gradient(circle at 0% 0%, rgba(242, 60, 60, 0.22), rgba(0, 0, 0, 0.9));
    box-shadow: 0 0 10px rgba(242, 60, 60, 0.3);
    overflow: hidden;
}

.menu-item.menu-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: -10%;
    width: 5px;
    height: 120%;
    background: linear-gradient(180deg, #f23c3c, #f9b0f9, #9ff1fd);
}

.menu-item.menu-box .item-name {
    font-weight: 700;
    padding-left: 6px;
}

.menu-item.menu-box .flavor-variant {
    display: block;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.35);
    color: #9ff1fd;
    font-size: 0.85em;
    text-transform: uppercase;
}

.menu-item.menu-box .item-price {
    font-size: clamp(1.1rem, 3.8vw, 1.6rem);
}

.menu-item.centered-item {
    justify-content: center;
}

.menu-item.centered-item .item-name {
    text-align: center;
    flex: none;
}

.menu-item.centered-item .item-price {
    text-align: center;
    margin-left: 0;
}

.item-name {
    font-family: 'BlackSheep', 'Arial', sans-serif !important;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}

.item-price {
    font-family: 'BlackSheep', 'Arial', sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: #f23c3c;
    margin-left: 15px;
    white-space: nowrap;
}

.flavor-variant {
    color: #f23c3c;
    font-size: 0.85em;
}

/* Lista de menú */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-list.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.menu-list.two-columns .item-name {
    font-size: clamp(0.9rem, 3vw, 1.3rem);
}

.menu-list.two-columns .item-price {
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    color: #f23c3c;
}

/* Juguitos Header Image */
.juguitos-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.juguitos-header-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

/* Secciones */
.section {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}


/* Shots Section Parte 1 */
.shots-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .shots-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .shots-price {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .shots-title-container {
        order: 2;
    }
    
    .shots-price:first-child {
        order: 1;
        display: none; /* Hide first price on mobile */
    }
    
    .shots-price:last-child {
        order: 3;
    }
}

.price-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.header-price {
    font-family: 'BlackSheepGrunge', 'Anton', sans-serif;
    font-size: clamp(3rem, 9vw, 4.5rem);
    font-weight: 700;
    color: #f23c3c;
    line-height: 0.9;
}

.price-title-center {
    margin: 0;
    flex: 0 0 auto;
}

.footer-price {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.footer-price span {
    font-family: 'BlackSheepGrunge', 'Anton', sans-serif;
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 700;
    color: #f23c3c;
}

.shots-title-container {
    text-align: center;
}

.shots-main {
    margin: 0;
}

.shots-subtitle {
    font-family: 'BlackSheepGrunge', 'Anton', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -10px;
}

.shots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.shot-line {
    font-family: 'BlackSheep', 'Arial', sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    color: #FFFFFF;
    line-height: 1.6;
    margin: 0;
}

.shot-bounce {
    display: inline-block;
}

/* Border animation for shots list */
.shots-list {
    padding: 15px;
    border: 2px solid rgba(242, 60, 60, 0.3);
    border-radius: 10px;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { 
        border-color: rgba(242, 60, 60, 0.3);
        box-shadow: 0 0 0px rgba(242, 60, 60, 0);
    }
    50% { 
        border-color: rgba(242, 60, 60, 0.8);
        box-shadow: 0 0 15px rgba(242, 60, 60, 0.5);
    }
}

/* Sheep Large */
.sheep-large-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.sheep-large {
    width: 100%;
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    animation: sheepWiggle 4s ease-in-out infinite;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

@keyframes sheepWiggle {
    0%, 100% { 
        transform: rotate(0deg); 
    }
    25% { 
        transform: rotate(-2deg); 
    }
    75% { 
        transform: rotate(2deg); 
    }
}

/* PAGE 2 STYLES */

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    padding: 20px 20px 0 20px;
}

.header-logo {
    width: 60px;
    height: auto;
}

.brand-title {
    font-family: 'BlackSheepGrunge', 'Anton', sans-serif;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Litros Section */
.litros-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .litros-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .litros-price {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .litros-header .main-title {
        order: 2;
    }
    
    .litros-price:first-child {
        order: 1;
        display: none; /* Hide first price on mobile */
    }
    
    .litros-price:last-child {
        order: 3;
    }
}

.litros-price {
    font-family: 'BlackSheepGrunge', 'Anton', sans-serif;
    font-size: clamp(3rem, 9vw, 4.5rem);
    font-weight: 700;
    color: #f23c3c;
    line-height: 0.9;
}

.litros-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    border: 2px solid rgba(242, 60, 60, 0.3);
    border-radius: 10px;
    animation: borderPulse 2s ease-in-out infinite;
}

.litro-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.litro-item {
    font-family: 'BlackSheep', 'Arial', sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    color: #FFFFFF;
    line-height: 1.6;
    margin: 0;
}

/* Sheep Decoration */
.sheep-decoration {
    display: flex;
    justify-content: center;
    padding: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.sheep-deco-img {
    width: 120px;
    height: auto;
}

/* Circuito Can */
.circuito-can {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.circuito-placeholder {
    font-family: 'BlackSheep', 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #f23c3c;
    padding: 20px;
    border: 2px solid #FFFFFF;
    text-align: center;
}


/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .menu-container {
        padding: 15px;
        gap: 20px;
    }
    
    
    .menu-list.two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .logo-circle {
        width: 220px;
        height: 220px;
    }
    
    .shots-header,
    .litros-header {
        flex-wrap: wrap;
    }
    
    .page-break {
        margin: 20px 0;
    }
}

/* Smooth scroll */
* {
    scroll-behavior: smooth;
}

/* Secciones (sin animaciones de aparición por scroll) */
.section {
    position: relative;
}

/* Hamburger Menu */
.menu-toggle {
    position: fixed;
    top: 18px; /* centrado aproximadamente en el nuevo header más bajo */
    left: 30px;
    z-index: 1100; /* siempre por encima del overlay y del menú lateral */
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

/* Logo en el margen superior, centrado */
.menu-logo {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    pointer-events: none; /* no bloquea interacción con el contenido ni el menú */
    height: 72px; /* ligeramente más alto que el logo para dejar espacio arriba y abajo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-logo img {
    height: 58px;
    width: auto;
    display: block;
}

.menu-toggle:hover {
    opacity: 0.7;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #f23c3c;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menú lateral como overlay centrado de secciones */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 100px;
    background: radial-gradient(circle at top, rgba(242, 60, 60, 0.25), rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.side-nav a {
    display: block;
    font-family: 'BlackSheep', 'Arial', sans-serif;
    font-size: clamp(1rem, 3.2vw, 1.6rem); /* texto más pequeño */
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 22px;      /* menos padding vertical */
    margin-bottom: 8px;     /* menos espacio entre botones */
    border-radius: 999px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    text-align: center;
    letter-spacing: 0.16em;
}

.side-nav a:hover {
    color: #000000;
    background: #f23c3c;
    border-color: #f23c3c;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75);
}

.side-nav a.active {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    border-color: #f23c3c;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
