/* ... Manteniendo todo el contenido original y añadiendo ajustes para la navegación interna... */

:root {
    --primary-color: #f69714;
    --secondary-color: #2b695e;
    --christmas-green: #165b33;
    --christmas-red: #c41e3a;
    --gold: #d4af37;
    --white: #ffffff;
    --black: #000000;
    --off-white: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--secondary-color) 100%);
    color: var(--white);
    min-height: 100vh;
}

/* Navigation Bar - Exactamente igual que en index.html */
.navbar {
    background-color: var(--white);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--black);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    width: 220px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.8rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    animation: glow-christmas 3s ease-in-out infinite;
}

/* Event Dates Section */
.event-dates {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto 1rem;
    flex-wrap: wrap;
    max-width: 750px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.15);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.event-date:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.date-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--christmas-red);
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.date-icon span {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-info {
    text-align: left;
    flex-grow: 1;
}

.date-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.date-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Limited Banner - MODIFICADO PARA ALINEAR HORIZONTALMENTE */
.limited-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem;
    background-color: var(--christmas-red);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 990; /* Aumentado para que esté por encima de los elementos del menú pero por debajo del internal-nav */
    animation: pulse-banner 3s infinite;
}

.limited-banner i {
    font-size: 1.3rem; /* Tamaño ligeramente mayor para el icono */
    animation: pulse-icon 2s ease-in-out infinite; /* Añadiendo animación al icono */
}

.limited-banner p {
    margin: 0; /* Eliminando márgenes para mejor alineación */
}

@keyframes pulse-banner {
    0%, 100% { background-color: var(--christmas-red); }
    50% { background-color: #a81830; }
}

/* Estilos específicos para la navegación interna (complementa los de JS) */
.internal-nav {
    /* Estos estilos serán sobrescritos por los generados en el JS, pero los incluimos como fallback */
    position: sticky;
    top: 70px;
    z-index: 999 !important; /* Aseguramos que esté siempre por encima de los demás elementos */
    background-color: var(--christmas-red);
}

/* Snowflakes Background */
.snowflakes-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.snowflake-bg {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    animation: fall-slow linear infinite;
}

.snowflake-bg:nth-child(1) { left: 15%; animation-duration: 15s; animation-delay: 0s; }
.snowflake-bg:nth-child(2) { left: 35%; animation-duration: 18s; animation-delay: 3s; }
.snowflake-bg:nth-child(3) { left: 55%; animation-duration: 12s; animation-delay: 6s; }
.snowflake-bg:nth-child(4) { left: 75%; animation-duration: 20s; animation-delay: 2s; }
.snowflake-bg:nth-child(5) { left: 90%; animation-duration: 16s; animation-delay: 5s; }
.snowflake-bg:nth-child(6) { left: 25%; animation-duration: 14s; animation-delay: 1s; }
.snowflake-bg:nth-child(7) { left: 65%; animation-duration: 17s; animation-delay: 4s; }
.snowflake-bg:nth-child(8) { left: 45%; animation-duration: 13s; animation-delay: 7s; }
.snowflake-bg:nth-child(9) { left: 5%; animation-duration: 19s; animation-delay: 2.5s; }
.snowflake-bg:nth-child(10) { left: 85%; animation-duration: 15.5s; animation-delay: 5.5s; }

@keyframes fall-slow {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow-christmas {
    0%, 100% { text-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
    50% { text-shadow: 0 0 25px rgba(212, 175, 55, 0.7), 2px 2px 8px rgba(0,0,0,0.4); }
}

/* Menu Container */
.menu-container {
    max-width: 900px;
    margin: 2rem auto 4rem;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: var(--black);
    position: relative;
    z-index: 5; /* Ajustado para estar por debajo de la navegación interna */
    animation: fadeIn 1s ease-out;
}

.menu-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.menu-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: var(--christmas-red);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.menu-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 80%;
    margin: 0 auto 1.5rem;
}

.festive-icons {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.festive-icon {
    font-size: 1.8rem;
    color: var(--gold);
    animation: pulse-icon 2s ease-in-out infinite;
}

.festive-icon:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Menu Sections */
.menu-section {
    margin-bottom: 3.5rem;
    animation: slideUp 0.5s ease-out both;
    background: var(--off-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.menu-section:nth-child(2) { animation-delay: 0.1s; }
.menu-section:nth-child(3) { animation-delay: 0.2s; }
.menu-section:nth-child(4) { animation-delay: 0.3s; }
.menu-section:nth-child(5) { animation-delay: 0.4s; }

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-section h2 i {
    color: var(--gold);
}

.menu-list {
    list-style: none;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px dashed rgba(43, 105, 94, 0.3);
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(246, 151, 20, 0.05);
    padding-left: 1rem;
    padding-right: 1rem;
    transform: translateY(-2px);
    border-radius: 8px;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 1.15rem;
    font-weight: 600;
    flex-grow: 1;
    padding-right: 1rem;
    color: var(--secondary-color);
}

.item-price {
    font-weight: 700;
    color: var(--christmas-red);
    font-size: 1.25rem;
    background: rgba(196, 30, 58, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Menu Footer */
.menu-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gold);
    animation: fadeIn 1s ease-out both;
    animation-delay: 0.5s;
}

.order-info-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--christmas-red);
    margin-bottom: 1.5rem;
}

.order-info {
    background-color: rgba(196, 30, 58, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.order-info::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(196, 30, 58, 0.2);
    border-radius: 18px;
    z-index: -1;
    animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

.order-important {
    border-bottom: 1px dashed rgba(196, 30, 58, 0.3);
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
}

.order-info p {
    color: var(--black);
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-info p i {
    color: var(--christmas-red);
    font-size: 1.2rem;
}

.order-info p strong {
    color: var(--christmas-red);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.back-button {
    background-color: var(--secondary-color);
    color: var(--white);
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 105, 94, 0.3);
    background-color: #337e71;
}

.order-button {
    background: linear-gradient(135deg, var(--christmas-red), #8b1a2e);
    color: var(--white);
}

.order-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
    background: linear-gradient(135deg, #d4273f, #a01e32);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    color: var(--white);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-container {
        margin: 1rem 1rem 3rem;
        padding: 1.5rem;
    }
    
    .menu-header h2 {
        font-size: 2.2rem;
    }
    
    .menu-header p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .menu-section {
        padding: 1.5rem;
    }
    
    .menu-section h2 {
        font-size: 1.8rem;
    }
    
    .item-name {
        font-size: 1.05rem;
    }
    
    .item-price {
        font-size: 1.1rem;
        min-width: 60px;
    }
    
    .festive-icons {
        gap: 1rem;
    }
    
    .festive-icon {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .event-dates {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .event-date {
        width: 100%;
        max-width: 320px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .button-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
    
    .order-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu-header h2 {
        font-size: 1.8rem;
    }
    
    .menu-section {
        padding: 1.2rem;
        scroll-margin-top: 120px; /* Ajuste para el scroll con el menú de navegación interno fijo */
    }
    
    .menu-section h2 {
        font-size: 1.5rem;
    }
    
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .item-name {
        margin-bottom: 0.5rem;
    }
    
    .item-price {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .logo {
        width: 180px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    /* Ajustes responsive para el limited-banner */
    .limited-banner {
        font-size: 0.9rem;
        padding: 0.6rem;
        flex-direction: row; /* Aseguramos que mantenga dirección de fila */
        flex-wrap: nowrap; /* Evita que los elementos se envuelvan */
    }
    
    .limited-banner i {
        font-size: 1.1rem; /* Icono ligeramente más pequeño en móvil */
    }
    
    .order-info-title {
        font-size: 1.8rem;
    }
    
    .date-icon {
        width: 50px;
        height: 50px;
    }
    
    .date-info h3 {
        font-size: 1.1rem;
    }
    
    .date-info p {
        font-size: 0.8rem;
    }
}