/* Rcalendario.css - Diseño espectacular para el sistema de reservas */
/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
    --primary: #ff66ff;
    --primary-dark: #cc44cc;
    --secondary: #00e6e6;
    --secondary-dark: #00b3b3;
    --accent: #ff3366;
    --dark: #0a0a0a;
    --dark-card: rgba(10, 10, 10, 0.95);
    --gray: #888;
    --light: #eee;
    --success: #00cc66;
    --warning: #ffaa00;
    --error: #ff3366;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(255, 102, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.calendario-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2em 5%;
    position: relative;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-calendario {
    text-align: center;
    padding: 4em 2em;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(255, 102, 255, 0.1), transparent 70%);
    border-radius: var(--border-radius);
    margin-bottom: 3em;
}

.hero-calendario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    border-radius: 2px;
}

.titulo-reservas {
    font-family: 'Rouge Script', cursive;
    font-size: 4em;
    background: linear-gradient(135deg, #fff, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5em;
    text-shadow: 0 0 30px rgba(255, 102, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(255, 102, 255, 0.3); }
    to { text-shadow: 0 0 40px rgba(255, 102, 255, 0.6), 0 0 20px rgba(0, 230, 230, 0.3); }
}

.subtitulo-hero {
    font-size: 1.2em;
    color: var(--light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.subtitulo-hero .highlight {
    color: var(--primary);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 102, 255, 0.5);
}

/* ============================================
   TARIFAS HEADER
   ============================================ */
.tarifas-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
    margin-bottom: 3em;
}

.tarifa-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 1.5em;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tarifa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tarifa-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 102, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.tarifa-card:hover::before {
    transform: scaleX(1);
}

.tarifa-card h3 {
    font-size: 1.3em;
    margin-bottom: 0.8em;
    color: #fff;
}

.tarifa-precio {
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tarifa-nota {
    font-size: 0.8em;
    color: var(--gray);
    margin-top: 0.5em;
}

/* ============================================
   MENSAJES DE ERROR/ÉXITO
   ============================================ */
.error-message {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid var(--error);
    border-radius: var(--border-radius-sm);
    padding: 1em 1.5em;
    margin-bottom: 2em;
    text-align: center;
    color: var(--error);
    backdrop-filter: blur(10px);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   CALENDARIO GRID
   ============================================ */
.calendario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2em;
    margin-bottom: 4em;
}

.dia-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.dia-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 102, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.dia-header {
    background: linear-gradient(135deg, rgba(255, 102, 255, 0.15), rgba(0, 230, 230, 0.1));
    padding: 1.2em;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dia-header .fecha {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    font-family: 'Special Elite', monospace;
}

.dia-header .dia-semana {
    font-size: 0.9em;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.horarios-container {
    padding: 1.2em;
}

.horario-item {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-sm);
    padding: 0.8em 1em;
    margin-bottom: 0.8em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: var(--transition);
}

.horario-item:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateX(5px);
}

.horario-item.cerrado {
    background: rgba(255, 51, 102, 0.1);
    opacity: 0.7;
}

.hora {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--secondary);
    font-family: monospace;
}

.estado {
    font-size: 0.8em;
    padding: 0.2em 0.8em;
    border-radius: 20px;
    font-weight: 500;
}

.estado.ocupado {
    background: rgba(255, 51, 102, 0.2);
    color: var(--error);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.estado.disponible {
    background: rgba(0, 204, 102, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 204, 102, 0.3);
}

.btn-reservar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 0.5em 1.2em;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85em;
}

.btn-reservar:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 102, 255, 0.4);
}

.btn-reservar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray);
}

/* ============================================
   TARJETA REGALO SECTION
   ============================================ */
.tarjeta-regalo-section {
    text-align: center;
    padding: 3em;
    background: radial-gradient(circle at center, rgba(255, 102, 255, 0.05), transparent);
    border-radius: var(--border-radius);
    margin: 2em 0;
    border: 1px solid rgba(255, 102, 255, 0.1);
}

.tarjeta-regalo-section h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tarjeta-regalo-section p {
    color: var(--gray);
    margin-bottom: 1.5em;
}

.btn-tarjeta {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border: none;
    padding: 0.8em 2em;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    color: #1a1a2e;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
}

.btn-tarjeta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* ============================================
   MODALES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: linear-gradient(135deg, #0a0a1a, #0a0a2a);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2em;
    position: relative;
    border: 1px solid rgba(255, 102, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.close-modal {
    position: absolute;
    top: 1em;
    right: 1.2em;
    font-size: 2em;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--error);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5em;
}

.modal-header h2 {
    font-size: 1.8em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3em;
}

.modal-header p {
    color: var(--gray);
}

/* ============================================
   FORMULARIO
   ============================================ */
.form-group {
    margin-bottom: 1.2em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: var(--light);
    font-size: 0.9em;
}

.form-group label span {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8em 1em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-size: 0.95em;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 102, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

/* ============================================
   ESTILOS PARA SELECT Y OPTIONS - CORREGIDO
   ============================================ */

/* Estilo base para el select */
.form-group select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: #fff;
    cursor: pointer;
}

/* Forzar que las opciones tengan fondo oscuro y texto visible */
.form-group select option {
    background: #1a1a2e;
    color: #fff;
    padding: 10px;
}

/* Para navegadores WebKit (Chrome, Safari, Edge) */
.form-group select option:hover,
.form-group select option:checked,
.form-group select option:focus {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
}

/* Firefox */
.form-group select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #fff;
}

/* Estilo cuando el select está abierto */
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 102, 255, 0.2);
}

/* Para el primer option (placeholder) */
.form-group select option[value=""] {
    color: rgba(255, 255, 255, 0.6);
    background: #1a1a2e;
}

/* Asegurar que todos los option tengan fondo consistente */
.form-group select optgroup,
.form-group select option {
    background-color: #1a1a2e;
    color: #ffffff;
}

/* Para navegadores que usan el sistema nativo, forzamos el color del texto */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .form-group select,
    .form-group select option {
        background-color: #1a1a2e;
        color: #fff;
    }
}

/* Aviso WhatsApp */
.aviso-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-left: 3px solid #25D366;
    padding: 0.8em 1em;
    border-radius: var(--border-radius-sm);
    margin: 1em 0;
    display: none;
    font-size: 0.85em;
}

.aviso-whatsapp a {
    color: #25D366;
    font-weight: bold;
}

/* Código promocional */
.promo-info {
    margin-top: 0.5em;
    font-size: 0.8em;
}

.promo-valido {
    color: var(--success);
}

.promo-invalido {
    color: var(--error);
}

/* Resumen de precio */
.precio-resumen {
    background: linear-gradient(135deg, rgba(255, 102, 255, 0.1), rgba(0, 230, 230, 0.05));
    border-radius: var(--border-radius-sm);
    padding: 1.2em;
    margin: 1.5em 0;
    text-align: center;
    border: 1px solid rgba(255, 102, 255, 0.15);
}

.precio-resumen h3 {
    color: var(--secondary);
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.precio-total {
    font-size: 2.2em;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.3em 0;
}

.tarifa-nota {
    font-size: 0.75em;
    color: var(--gray);
}

/* Botón submit */
.btn-submit {
    width: 100%;
    padding: 1em;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border: none;
    border-radius: 50px;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 230, 230, 0.3);
}

/* Checkbox personalizado */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5em;
    transform: scale(1.1);
}

/* ============================================
   ANIMACIONES GENERALES
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .calendario-container {
        padding: 1em 4%;
    }
    
    .hero-calendario {
        padding: 2em 1em;
    }
    
    .titulo-reservas {
        font-size: 2.8em;
    }
    
    .subtitulo-hero {
        font-size: 1em;
    }
    
    .calendario-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8em;
    }
    
    .modal-content {
        padding: 1.5em;
        width: 95%;
    }
    
    .tarifas-header {
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
    }
    
    .tarifa-card {
        padding: 1em;
    }
    
    .tarifa-precio {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .tarifas-header {
        grid-template-columns: 1fr;
    }
    
    .titulo-reservas {
        font-size: 2.2em;
    }
    
    .horario-item {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-reservar {
        width: 100%;
    }
    
    .precio-total {
        font-size: 1.8em;
    }
    
    .tarjeta-regalo-section {
        padding: 1.5em;
    }
    
    .tarjeta-regalo-section h2 {
        font-size: 1.5em;
    }
}

/* Efecto de brillo en hover para botones */
.btn-reservar, .btn-submit, .btn-tarjeta {
    position: relative;
    overflow: hidden;
}

.btn-reservar::after, .btn-submit::after, .btn-tarjeta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-reservar:active::after, .btn-submit:active::after, .btn-tarjeta:active::after {
    width: 200px;
    height: 200px;
}