:root {
    --red-singapur: #e71d36;
    --bg-main: #000000;
}

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

body, html {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================================
   BACKGROUND CON GRADIENTE ARRIBA Y ABAJO
   ========================================= */
.background_container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000000;
}

.background_container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
    opacity: 0;
    animation: revealBackground 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* Orden según tu HTML: 1. pc, 2. mobile, 3. tablet */
.background_container img:nth-child(2) {
    display: block; 
}

@media (min-width: 768px) {
    .background_container img:nth-child(2) { display: none; }
    .background_container img:nth-child(3) { display: block; }
}

@media (min-width: 1024px) {
    .background_container img:nth-child(3) { display: none; }
    .background_container img:nth-child(1) { display: block; }
}

/* Gradiente equilibrado arriba y abajo para destacar textos y botón sin ensuciar el centro */
.background_container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: revealBackground 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* =========================================
   CONTENEDOR DEL BOTÓN
   ========================================= */
.boton_container {
    position: fixed;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    padding: 0 20px;
    opacity: 0;
    animation: revealButton 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@media (min-width: 1024px) {
    .boton_container {
        top: 83%; 
    }
}

.btn-reserva {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    padding: 18px 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff2a47 0%, #a80e22 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 42, 71, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    animation: botonBrilloConstante 3.5s infinite ease-in-out;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
    .btn-reserva {
        max-width: 400px;
        padding: 22px 36px;
        font-size: 1.05rem;
        letter-spacing: 3px;
    }
}

.btn-reserva::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: brilloDeslizante 3s infinite ease-in-out;
}

.btn-reserva:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 45px rgba(255, 42, 71, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    filter: brightness(1.15);
    color: #ffffff;
}

/* =========================================
   KEYFRAMES
   ========================================= */
@keyframes revealBackground {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes revealButton {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes botonBrilloConstante {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 42, 71, 0.35), 0 5px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 42, 71, 0.85), 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

@keyframes brilloDeslizante {
    0% { left: -100%; }
    25% { left: 100%; }
    100% { left: 100%; }
}