/* =========================================================
   RESERVAS PREMIUM $10K - LA NONNA RÚSTICA
   ========================================================= */

:root {
    --res-red: #C8102E;
    --res-blue: #1A2744;
    --res-gold: #E8A020;
    --res-white: #ffffff;
    --res-glass: rgba(255, 255, 255, 0.1);
    --res-glass-border: rgba(255, 255, 255, 0.2);
    --res-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    --res-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets for this page */
.page-reservas {
    background: var(--res-blue);
    color: var(--res-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Section cinematográfica */
.res-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.res-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(26, 39, 68, 0.6), rgba(26, 39, 68, 0.9)),
                url('img/madrizole/Mariscada de la casa para 2 personas.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
}

.res-hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.res-hero-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Contenedor de Reserva (Glassmorphism) */
.res-booking-section {
    position: relative;
    margin-top: -12vh;
    padding: 0 2rem 8rem 2rem;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.glass-booking-container {
    width: 95%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--res-glass-border);
    border-radius: 30px;
    padding: 4.5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

/* Permitir que los hijos escalen correctamente sin desbordar el grid */
.booking-info, .booking-form-container {
    min-width: 0;
}

.booking-info h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--res-gold);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.booking-info p {
    font-family: 'Outfit', sans-serif;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    font-size: 1.05rem;
}

/* Formulario Premium */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.input-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--res-gold);
}

.input-reserva {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--res-transition);
}

.input-reserva:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--res-gold);
}

/* Custom Selectors */
.people-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.person-chip {
    flex: 1;
    min-width: 50px;
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--res-transition);
}

.person-chip.active, .person-chip:hover {
    background: var(--res-red);
    border-color: var(--res-red);
}

.res-btn-submit {
    background: var(--res-red);
    color: white;
    padding: 1.5rem;
    border: none;
    border-radius: 15px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--res-transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(200, 16, 46, 0.3);
    width: 100%;
}

.res-btn-submit:hover {
    background: #a00020;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(200, 16, 46, 0.5);
}

/* Occasion Carousel Premium */
.occasion-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.2rem;
    padding: 0.5rem 0.5rem 1.5rem 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--res-gold) transparent;
    cursor: grab;
    width: 100%;
    max-width: 100%;
}

.occasion-carousel::-webkit-scrollbar {
    height: 4px;
}

.occasion-carousel::-webkit-scrollbar-thumb {
    background: var(--res-gold);
    border-radius: 10px;
}

.occasion-card {
    flex: 0 0 160px;
    height: 120px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--res-transition);
    background: var(--res-blue);
}

.occasion-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s;
}

.oc-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.9) 0%, transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    z-index: 2;
}

.oc-overlay span {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.occasion-card.active {
    border-color: var(--res-gold);
    box-shadow: 0 10px 25px rgba(232, 160, 32, 0.3);
    transform: translateY(-5px);
}

.occasion-card.active img {
    opacity: 1;
    transform: scale(1.1);
}

.occasion-card:hover:not(.active) img {
    opacity: 0.9;
}

/* Footer Compatibility */
.footer-reservas {
    background: transparent;
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .glass-booking-container {
        padding: 3rem 2rem;
        margin: 0 1rem;
    }
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .res-hero {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .res-hero {
        height: 45vh;
    }

    .res-hero-content h1 {
        font-size: 2rem;
        letter-spacing: 2px;
        line-height: 1.2;
        padding: 0 1rem;
    }

    .res-hero-content p {
        font-size: 0.85rem;
    }

    .res-booking-section {
        margin-top: -5vh;
        padding: 0 1rem 10rem 1rem;
        width: 100%;
        overflow: hidden; /* Evitar que el elástico del scroll rompa el layout */
    }

    .glass-booking-container {
        width: 100%;
        max-width: 100%;
        padding: 2rem 1rem;
        border-radius: 20px;
        margin: 0;
    }

    .booking-info h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .booking-info p {
        font-size: 0.85rem;
        text-align: center;
    }

    /* Carrusel Mobile Fix */
    .occasion-carousel {
        width: 100%;
        max-width: calc(100vw - 4rem); /* Ajuste preciso al contenedor */
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .occasion-card {
        flex: 0 0 140px; /* Un poco más pequeño en móvil */
        height: 100px;
    }

    /* Stack vertical en móvil */
    .premium-form div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
        width: 100%;
    }

    .people-selector {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .person-chip {
        min-width: unset;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .res-btn-submit {
        width: 100%;
        padding: 1.2rem;
        font-size: 1rem;
    }

    .footer-reservas {
        padding-bottom: 150px;
    }
}

/* Classes to be used as starting points for GSAP animations */
.gsap-reveal {
    will-change: opacity, transform;
}

/* Mobile Header Refinement: Hide Cart */
@media (max-width: 900px) {
    body .nav-cart-wrapper,
    body .global-nav-actions .nav-cart-wrapper {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}
