:root {
    --primary-color: #f69714;
    --secondary-color: #2b695e;
    --navidad-fondo: #123f37;
    --white: #ffffff;
    --black: #000000;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --suelo: #123f37;
    --guirnalda-top: 70px;
}

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

html {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--navidad-fondo);
}

[hidden] {
    display: none !important;
}

/* Navigation Bar */
.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 {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--black);
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

/* Hero */
.hero {
    padding: 7rem 2rem 3rem;
    text-align: center;
    color: var(--white);
    animation: aparecer 280ms var(--ease-out) both;
}

.logo {
    width: 220px;
    max-width: 60%;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-intro {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.fechas {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.fecha {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
}

.fecha-dia {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navidad-fondo);
    background-color: var(--primary-color);
    border-radius: 10px;
}

.fecha-texto {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.fecha-texto strong {
    font-size: 1.1rem;
}

.fecha.is-cerrado .fecha-dia {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-aviso {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Carta */
.carta {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    animation: aparecer 280ms var(--ease-out) 60ms both;
}

.categoria + .categoria {
    margin-top: 2.5rem;
}

.categoria h2,
.pedido h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

.categoria h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 0.5rem;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.categoria ul {
    list-style: none;
    margin-top: 0.75rem;
}

.plato {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px dashed rgba(43, 105, 94, 0.25);
}

.plato:last-child {
    border-bottom: none;
}

.plato-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.plato-nombre {
    font-size: 1.1rem;
    font-weight: 600;
}

.plato-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
}

.plato-precio {
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-variant-numeric: tabular-nums;
}

/* Cómo encargar */
.pedido {
    margin-top: 2.5rem;
    padding: 2rem;
    text-align: center;
    background-color: rgba(246, 151, 20, 0.1);
    border-radius: 15px;
    font-size: 0.95rem;
}

.pedido a {
    color: inherit;
    text-decoration: none;
}

.pedido .pedido-telefono {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.75rem 0 1rem;
    padding: 0.8rem 1.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    background-color: var(--secondary-color);
    border-radius: 30px;
    transition: transform 160ms var(--ease-out), background-color 0.2s ease;
    touch-action: manipulation;
}

.pedido .pedido-telefono:active,
.barra-encargo:active {
    transform: scale(0.97);
}

/* Botón fijo de llamada (solo móvil) */
.barra-encargo {
    display: none;
}

/* Nieve acumulada sobre la carta */
.carta::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 36px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36C10 12 40 14 70 18S130 2 190 10 280 22 340 12 440 0 510 12 610 20 670 10 770 8 800 36 800 36Z' fill='%23ffffff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    pointer-events: none;
}

/* Footer */
footer {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--white);
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover,
    .social-icons a:hover {
        color: var(--primary-color);
    }

    .pedido .pedido-telefono:hover {
        background-color: var(--navidad-fondo);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .carta {
        animation: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.25rem 2.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .fechas {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .carta {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }

    .barra-encargo {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        padding: 0.9rem 1rem;
        font-weight: 700;
        text-decoration: none;
        color: var(--navidad-fondo);
        background-color: var(--primary-color);
        border-radius: 30px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.35);
        transition: transform 160ms var(--ease-out);
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    footer {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    :root {
        --guirnalda-top: 64px;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .categoria h2,
    .pedido h2 {
        font-size: 2rem;
    }

    .plato {
        gap: 1rem;
    }

    .plato-nombre {
        font-size: 1rem;
    }

    .plato-precio {
        font-size: 1.1rem;
    }

    .pedido {
        padding: 1.5rem 1rem;
    }
}
/* Notas de la carta: IVA y alérgenos */
.carta-notas {
    display: grid;
    gap: 0.4rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(43, 105, 94, 0.25);
    font-size: 0.9rem;
    color: #555;
}

.carta-notas i {
    width: 1.1em;
    margin-right: 0.5rem;
    text-align: center;
    color: var(--secondary-color);
}
