/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b132b; /* Azul oscuro lujoso */
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CONTENEDOR PRINCIPAL */
.reservas-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.reservas-card {
    background: linear-gradient(145deg, #131f42 0%, #0a1128 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* ANIMACIÓN DE ENTRADA */
.animacion-entrada {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TEXTOS */
.reservas-header {
    text-align: center;
    margin-bottom: 30px;
}

.titulo-dorado {
    font-family: 'Playfair Display', serif;
    color: #d4af37; /* Dorado */
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 0.9rem;
    color: #a0a5b5;
    font-weight: 300;
}

/* FORMULARIO Y CAMPOS */
.formulario-reservas {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.w-50 {
    width: 50%;
}

.input-lujo {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #fff;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.input-lujo::placeholder {
    color: #7a8296;
}

.input-lujo:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.select-lujo {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.select-lujo option {
    background-color: #0b132b;
    color: #fff;
}

/* BOTÓN DORADO */
.btn-lujo-solido {
    background: linear-gradient(45deg, #b8860b, #ffd700, #b8860b);
    background-size: 200% auto;
    color: #0b132b;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}

.btn-lujo-solido:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-lujo-solido:disabled {
    background: #666;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.btn-volver {
    color: #ffffff;
    text-decoration: none; /* Quita el subrayado del enlace */
}

.btn-volver:hover {
    color: #ffffff; /* Mantiene el blanco al pasar el mouse */
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .reservas-card {
        padding: 30px 20px;
    }
    .input-row {
        flex-direction: column;
        gap: 20px;
    }
    .w-50 {
        width: 100%;
    }
    .titulo-dorado {
        font-size: 1.8rem;
    }
}

/* BOTÓN SECUNDARIO */
.btn-lujo-borde {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}

.btn-lujo-borde:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* MODAL DE RESERVAS */
.modal-reserva-custom {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 19, 43, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-reserva-custom.modal-visible {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.modal-reserva-contenido {
    background: linear-gradient(145deg, #131f42 0%, #0a1128 100%);
    border: 1px solid #d4af37;
    padding: 40px 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: scaleUp 0.3s ease forwards;
}

.cerrar-modal-res {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #d4af37;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar-modal-res:hover {
    color: #fff;
}

.titulo-dorado-modal {
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.texto-modal-reserva {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes scaleUp { to { transform: scale(1); } }


.lista-terminos-modal {
    text-align: left;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 20px;
}

.lista-terminos-modal li {
    margin-bottom: 12px;
}

.lista-terminos-modal strong {
    color: #d4af37; /* Títulos de cada viñeta en dorado */
}

/* ==================================================================
   CORRECCIONES DE NAVEGADOR (TIEMPO, FECHA Y AUTOCOMPLETADO)
   ================================================================== */

/* 1. Forzar a los inputs de fecha y hora a usar el tema oscuro del sistema */
input[type="date"], 
input[type="time"] {
    color-scheme: dark;
}

/* 2. Resaltar el texto de AM/PM para que sea evidente */
input[type="time"]::-webkit-datetime-edit-ampm-field {
    background-color: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 2px 5px;
    border-radius: 4px;
}

/* 3. Cambiar el color del icono del reloj y el calendario a dorado */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(70%) sepia(40%) saturate(1000%) hue-rotate(3deg) brightness(110%) contrast(100%);
    cursor: pointer;
}

/* 4. Bloquear el fondo blanco feo cuando el navegador autocompleta el nombre o teléfono */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #131f42 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}