/* --- VARIABLES CARLED (Pink & White Edition) --- */
:root {
    --led-blue: #00f2ff;    /* Rosa Eléctrico (Nota: el hex es cian, pero mantengo tu nombre) */
    --led-purple: #ffffff;  /* Blanco Puro */
    --bg-dark: #141414;
    --card-bg: #1b1b1b;
    --glow: 0 0 15px var(--led-blue), 0 0 30px rgba(255, 0, 183, 0.3);
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; /* Mejora tactil en móvil */
}

body {
    margin: 0;
    background: var(--bg-dark);
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

#starlight-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- CONTENEDOR PRINCIPAL --- */
.reserva-container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 100px 5% 150px; 
}

/* Ajuste Móvil: Menos espacio arriba */
@media (max-width: 768px) {
    .reserva-container {
        padding: 40px 5% 120px;
    }
}

.reserva-header { text-align: center; margin-bottom: 60px; }
.reserva-header h1 { font-weight: 900; letter-spacing: 5px; font-size: clamp(1.8rem, 5vw, 2.5rem); /* Texto fluido */ }
.reserva-header h1 span { 
    color: var(--led-blue); 
    text-shadow: 0 0 15px var(--led-blue); 
}
.reserva-header p { color: #666; font-size: 0.9rem; letter-spacing: 1px; }

.back-btn { 
    text-decoration: none; 
    color: #444; 
    font-size: 0.75rem; 
    font-weight: 900; 
    transition: 0.3s; 
    letter-spacing: 2px;
}
.back-btn:hover { color: var(--led-blue); }

/* --- BLOQUES DE FORMULARIO --- */
.form-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

/* Ajuste Móvil: Padding interno más cómodo */
@media (max-width: 600px) {
    .form-section { padding: 25px 20px; }
}

.form-section h3 {
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: var(--led-purple);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-section h3 i { color: var(--led-blue); filter: drop-shadow(0 0 5px var(--led-blue)); }

/* --- REJILLA DE INPUTS --- */
.grid-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reducido minmax para móviles estrechos */
    gap: 25px;
}

@media (min-width: 1024px) {
    .grid-inputs {
        grid-template-columns: repeat(3, 1fr); 
    }
}

input {
    background: #161618;
    border: 1px solid #2a2a2a;
    padding: 18px;
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat';
    font-size: 16px; /* Evita zoom en iOS */
    transition: 0.4s;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: var(--led-blue);
    background: #1c1c1f;
    box-shadow: 0 0 20px rgba(255, 0, 183, 0.15);
}

/* --- SELECTS / DESPLEGABLES (SOLUCIÓN FLECHA) --- */
select {
    background-color: #161618;
    border: 1px solid #2a2a2a;
    padding: 18px;
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat';
    font-size: 16px; /* Evita zoom en iOS */
    cursor: pointer;
    transition: 0.4s;
    width: 100%;
    
    /* SOLUCIÓN DE LA FLECHA: */
    appearance: none; /* Elimina estilo nativo feo */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Icono SVG incrustado */
    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='%2300f2ff' 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 1.5rem center;
    background-size: 1em;
    padding-right: 3rem; /* Espacio para que el texto no toque la flecha */
}

select:focus {
    outline: none;
    border-color: var(--led-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #0f0f10;
}

/* --- FILTROS MARCA/MODELO --- */
.filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

/* Ajuste Móvil: Uno debajo del otro */
@media (max-width: 600px) {
    .filter-group {
        grid-template-columns: 1fr;
    }
}

/* --- CALENDARIO Y TURNOS --- */
.calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .calendar-grid {
        grid-template-columns: 1.2fr 0.8fr; 
    }
}

.calendar-input-wrapper label, .slots-wrapper label {
    display: block;
    font-size: 0.7rem;
    color: #555;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

#fecha-cita {
    text-align: center;
    font-weight: 900;
    color: var(--led-blue);
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- TURNO ÚNICO --- */
.single-slot-display {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--led-blue);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    color: white;
    font-weight: 700;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.single-slot-display i {
    color: var(--led-blue);
    font-size: 1.2rem;
}

.slot-btn {
    background: #161618;
    border: 1px solid #2a2a2a;
    color: white;
    padding: 18px;
    border-radius: 12px;
    font-family: 'Montserrat';
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slot-btn:hover { border-color: var(--led-blue); color: var(--led-blue); }

.slot-btn.active {
    background: var(--led-blue);
    border-color: var(--led-blue);
    color: black;
    box-shadow: var(--glow);
    transform: scale(1.02) translateX(10px);
}

/* --- PACKS CARDS --- */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Ajuste Móvil: Cards un poco más pequeñas para que quepan 2 si es posible o 1 grande */
@media (max-width: 500px) {
    .packs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    .pack-card { padding: 25px 15px; }
}

.pack-card {
    position: relative;
    background: var(--card-bg);
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid #222;
}

.pack-card.active::before {
    content: "";
    position: absolute;
    width: 250%; height: 250%;
    background: conic-gradient(transparent, var(--led-blue), transparent 40%);
    top: -75%; left: -75%;
    animation: rotateLED 3s linear infinite;
    z-index: 1;
}

.pack-card.active::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--card-bg);
    border-radius: 18px;
    z-index: 2;
}

.pack-card * { position: relative; z-index: 3; }

.pack-card i { font-size: 1.8rem; margin-bottom: 20px; color: #333; transition: 0.4s; }
.pack-card h4 { font-size: 0.85rem; margin: 0; font-weight: 700; }
.pack-card p { font-size: 0.7rem; color: #555; margin: 10px 0; }
.pack-card .price { font-weight: 900; color: var(--led-blue); font-size: 1rem; }

.pack-card.active i { color: var(--led-blue); filter: drop-shadow(0 0 10px var(--led-blue)); }

@keyframes rotateLED {
    100% { transform: rotate(360deg); }
}

/* --- STICKY FOOTER RESUMEN --- */
.resumen-footer {
        position: relative; 
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 20px; 
        margin-top: 40px;
        display: flex; /* Añadido flex explícito */
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        backdrop-filter: none;
        background: rgba(20, 20, 22, 1);
        border: 1px solid var(--led-blue);
    }

.total-box span { font-size: 0.65rem; letter-spacing: 2px; color: #555; font-weight: 900; }
.total-box h2 { margin: 0; color: var(--led-blue); font-size: 2.2rem; text-shadow: var(--glow); }

.action-btns { display: flex; gap: 20px; }

.btn-pdf, .btn-submit {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.4s;
    border: none;
    font-family: 'Montserrat';
    text-transform: uppercase;
    width: 100%; /* Asegura ancho completo en móvil */
}

.btn-pdf { background: #1a1a1c; color: white; border: 1px solid #333; }
.btn-pdf:hover { background: white; color: black; }

.btn-submit { 
    background: var(--led-blue); 
    color: black; 
    box-shadow: var(--glow);
}
.btn-submit:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 0 40px var(--led-blue); }

/* --- FLATPICKR OVERRIDES --- */
.flatpickr-calendar {
    background: #0f0f11 !important;
    border: 1px solid var(--led-blue) !important;
    box-shadow: 0 0 40px rgba(255, 0, 183, 0.2) !important;
}
.flatpickr-day { color: white !important; }
.flatpickr-day.selected { background: var(--led-blue) !important; color: black !important; border: none !important; }
.flatpickr-day.today { border-color: var(--led-blue) !important; }
.flatpickr-day.flatpickr-disabled { color: #222 !important; }
.flatpickr-current-month, .flatpickr-month { color: white !important; fill: white !important; }
.flatpickr-weekday { color: #444 !important; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .resumen-footer {
        bottom: 0;
        width: 100%;
        border-radius: 0;
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }
    .reserva-container { 
        padding-bottom: 50px; 
    }
}

@media (max-width: 600px) {
    .action-btns { flex-direction: column; width: 100%; }
    .btn-pdf, .btn-submit { width: 100%; }
    .reserva-header h1 { font-size: 1.8rem; letter-spacing: 2px; }
    
    /* Ajuste adicional para slots de hora en móvil */
    .slot-btn { padding: 15px; font-size: 0.75rem; }
}

/* MODALES */
.success-modal {
    border-color: #00ff88;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.4));
}

.order-info {
    background: rgba(0, 242, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--led-blue);
    margin-bottom: 20px;
    display: inline-block;
}

.legal-disclaimer {
    font-size: 0.7rem;
    color: #666;
    font-style: italic;
    margin-top: 20px;
    line-height: 1.4;
}

.modal-actions-final {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-pdf-final {
    background: var(--led-blue);
    color: black;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
}

.btn-volver-final {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.6;
}

.btn-volver-final:hover { opacity: 1; }

/* --- NUEVA INTERFAZ DE CATÁLOGO --- */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-toggle-packs {
    background: linear-gradient(90deg, var(--led-blue), var(--led-purple));
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    color: black;
    font-weight: 900;
    font-size: 0.7rem;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: var(--glow);
    transition: 0.3s;
}

.btn-toggle-packs:hover { transform: scale(1.05); filter: brightness(1.2); }

/* Contenedor de Packs (Oculto/Visible) */
.packs-container-hidden {
    display: none;
    background: rgba(0, 242, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px dashed var(--led-blue);
    animation: fadeInDown 0.5s ease;
}

.packs-container-visible { display: block; }

.packs-grid-exclusive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Estilo especial para los Packs Completos */
.pack-card.is-pack {
    background: #1a1a1c;
    border: 1px solid var(--led-blue);
}

.pack-card.is-pack h4 { color: var(--led-blue); font-size: 1.1rem; }

.extras-header, .packs-header { margin: 20px 0; }
.extras-header h4, .packs-header h4 { font-size: 0.75rem; letter-spacing: 2px; color: #888; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bloque de opciones recomendadas */
.options-display-area {
    background: rgba(0, 242, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    border-left: 4px solid var(--led-blue);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

/* Barra de acción para el botón de Packs */
.action-bar-reserva {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
}

/* Sticky Footer para Escritorio (Fijado) */
@media (min-width: 901px) {
    .resumen-footer {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1100px;
        flex-direction: row;
        border-radius: 100px;
        padding: 20px 40px;
        backdrop-filter: blur(20px);
    }
}

/* Animaciones extra */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-subtitle {
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- FIX MODAL: CAPA SUPERIOR CENTRADA --- */
.modal-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); 
    backdrop-filter: blur(10px);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 99999; 
    padding: 20px;
}

.success-modal {
    background: #111;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid #00ff88;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- ESTILOS DE LA PASARELA DE PAGO --- */
.payment-modal {
    background: #111;
    padding: 0; /* Sin padding general para diseño split */
    border-radius: 25px;
    border: 1px solid var(--led-blue);
    max-width: 800px;
    width: 95%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15);
}

@media (min-width: 768px) {
    .payment-modal { flex-direction: row; }
}

/* Columna Izquierda: Resumen */
.pay-summary {
    background: #161618;
    padding: 30px;
    flex: 1;
    border-right: 1px solid #222;
}

.pay-summary h3 { margin-top: 0; color: white; letter-spacing: 2px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: #888; font-size: 0.9rem; }
.summary-total { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 20px; border-top: 1px dashed #333; color: var(--led-blue); font-weight: 900; font-size: 1.2rem; }

/* Columna Derecha: Tarjeta */
.pay-form-area {
    padding: 30px;
    flex: 1.2;
    background: linear-gradient(145deg, #1a1a1c, #111);
}

/* Visualización Tarjeta Virtual */
.card-preview {
    background: linear-gradient(135deg, #00f2ff, #0051ff);
    height: 180px;
    border-radius: 15px;
    margin-bottom: 30px;
    padding: 20px;
    color: white;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 81, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chip {
    width: 40px; height: 30px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 5px;
    margin-bottom: 10px;
}

.card-number-display { font-family: 'Courier New', monospace; font-size: 1.2rem; letter-spacing: 3px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.card-name-display { font-size: 0.8rem; text-transform: uppercase; opacity: 0.9; }
.card-logo { position: absolute; top: 20px; right: 20px; font-weight: 900; font-style: italic; }

/* Inputs del Formulario Pago */
.pay-inputs input {
    background: #0f0f11;
    border: 1px solid #333;
    padding: 12px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.row-inputs { display: flex; gap: 15px; }

.btn-pay-now {
    width: 100%;
    background: var(--led-blue);
    color: black;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.btn-pay-now:hover { transform: scale(1.02); box-shadow: 0 0 40px rgba(0, 242, 255, 0.5); }
.btn-pay-now:disabled { background: #333; color: #666; cursor: wait; box-shadow: none; }

.loader-spinner {
    display: none;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #000;
    border-radius: 50%;
    width: 20px; height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   10. PASARELA DE PAGO (MODAL & TARJETA)
   ========================================= */

/* Contenedor Principal del Modal */
.payment-modal {
    background: #111;
    padding: 0;
    border-radius: 25px;
    border: 1px solid var(--led-blue);
    max-width: 850px;
    width: 95%;
    display: flex;
    flex-direction: column; /* Diseño vertical para móvil por defecto */
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15);
    position: relative;
    
    /* --- FIX MÓVIL CRÍTICO --- */
    max-height: 90vh;      /* Evita que sea más alto que la pantalla */
    overflow-y: auto;      /* Permite hacer scroll si no cabe */
    margin: 20px auto;     /* Un poco de margen en bordes */
}

/* Columna Izquierda: Resumen */
.pay-summary {
    background: #161618;
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #222; /* Línea separadora en móvil */
}

.pay-summary h3 { margin-top: 0; color: white; letter-spacing: 2px; font-size: 1rem; margin-bottom: 20px;}

.summary-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 12px; 
    color: #aaa; 
    font-size: 0.85rem; 
    border-bottom: 1px solid #222; 
    padding-bottom: 5px;
}

.summary-total { 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 2px dashed #333; 
    color: var(--led-blue); 
    font-weight: 900; 
    font-size: 1.4rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

/* Columna Derecha: Formulario y Tarjeta */
.pay-form-area {
    padding: 25px;
    flex: 1.3;
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
}

/* --- TARJETA VIRTUAL (VISUAL) --- */
.card-preview {
    background: linear-gradient(135deg, #00f2ff, #0051ff);
    height: 180px;
    border-radius: 18px;
    margin-bottom: 25px;
    padding: 20px;
    color: white;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 81, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Efecto brillo de fondo en la tarjeta */
.card-preview::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: rotate(30deg); pointer-events: none;
}

.chip {
    width: 45px; height: 35px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.2);
    position: relative; z-index: 2;
}

.card-number-display { 
    font-family: 'Courier New', monospace; 
    font-size: 1.2rem; /* Tamaño móvil seguro */
    letter-spacing: 2px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
    z-index: 2; 
    font-weight: bold;
    white-space: nowrap; /* Evita que el número se parta en dos líneas */
}

.card-name-display { font-size: 0.75rem; text-transform: uppercase; opacity: 0.9; letter-spacing: 1px; z-index: 2;}
.card-logo { position: absolute; top: 20px; right: 25px; font-weight: 900; font-style: italic; font-size: 1.2rem; z-index: 2;}

/* --- INPUTS DEL PAGO --- */
.pay-inputs label { 
    font-size: 0.7rem; 
    color: #888; 
    margin-bottom: 6px; 
    display: block; 
    letter-spacing: 1px; 
    font-weight: 700; 
}

.pay-inputs input {
    background: #0f0f11;
    border: 1px solid #333;
    padding: 14px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    border-radius: 8px;
    color: white;
    width: 100%;
    transition: 0.3s;
}

.pay-inputs input:focus { border-color: var(--led-blue); outline: none; }

.row-inputs { display: flex; gap: 15px; }

/* Botón Pagar Ahora */
.btn-pay-now {
    width: 100%;
    background: var(--led-blue);
    color: black;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-pay-now:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0, 242, 255, 0.5); }
.btn-pay-now:disabled { background: #333; color: #666; cursor: not-allowed; transform: none; box-shadow: none; }

/* Loader Spinner */
.loader-spinner {
    display: none;
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid #000;
    border-radius: 50%;
    width: 24px; height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.cancel-link {
    text-align: center; margin-top: 15px; font-size: 0.8rem; 
    color: #666; text-decoration: underline; cursor: pointer;
}
.cancel-link:hover { color: white; }

/* =========================================
   MEDIA QUERY: PANTALLAS GRANDES (PC/TABLET)
   ========================================= */
@media (min-width: 768px) {
    .payment-modal { 
        flex-direction: row; /* Vuelve a ponerlo lado a lado */
        max-height: none; 
        overflow-y: visible;
        margin: 0;
    }
    
    .pay-summary { 
        border-right: 1px solid #222; 
        border-bottom: none; 
        padding: 30px; 
    }
    
    .pay-form-area { padding: 30px; }
    
    .card-number-display { 
        font-size: 1.4rem; 
        letter-spacing: 3px; 
    }
}

/* =========================================
   11. PERSONALIZACIÓN BARRA SCROLL (MODO LED)
   ========================================= */

/* Para Firefox */
.payment-modal {
    scrollbar-width: thin; /* La hace muy fina */
    scrollbar-color: var(--led-blue) transparent; /* Color del "dedo" y fondo transparente */
}

/* Para Chrome, Edge, Safari (Webkit) */
.payment-modal::-webkit-scrollbar {
    width: 4px; /* Grosor ultra fino (como un cable) */
}

.payment-modal::-webkit-scrollbar-track {
    background: transparent; /* El fondo es invisible */
    margin: 10px 0; /* Un poco de margen arriba y abajo */
}

.payment-modal::-webkit-scrollbar-thumb {
    background: var(--led-blue); /* El color del LED cian */
    border-radius: 20px; /* Redondeada */
    
    /* El truco del brillo LED: */
    box-shadow: 0 0 10px var(--led-blue); 
}

.payment-modal::-webkit-scrollbar-thumb:hover {
    background: #fff; /* Al pasar el ratón (en PC) se pone blanca brillante */
    box-shadow: 0 0 15px #fff, 0 0 5px var(--led-blue);
}

/* --- ESTILO TURNO ÚNICO --- */
.single-slot-display {
    background: rgba(0, 242, 255, 0.05); /* Fondo sutil cian */
    border: 1px solid var(--led-blue);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
    animation: fadeIn 0.5s ease;
}

.single-slot-display i {
    font-size: 1.5rem;
    color: var(--led-blue);
    text-shadow: 0 0 10px var(--led-blue);
}

/* --- DÍAS OCUPADOS / DESHABILITADOS --- */
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    background: rgba(255, 0, 60, 0.15) !important; /* Fondo rojo suave */
    color: #ff3333 !important; /* Texto rojo neón */
    border: 1px solid rgba(255, 0, 60, 0.3) !important;
    text-decoration: line-through; /* Tachado */
    cursor: not-allowed;
    opacity: 0.8;
}

/* Excepción para fines de semana (para que no sean tan agresivos si quieres) */
.flatpickr-day.flatpickr-disabled.flatpickr-weekend {
    background: transparent !important;
    border: none !important;
    color: #444 !important; /* Fines de semana en gris */
    text-decoration: none;
}
/* =========================================
   ESTILOS BOTONES DE PAGO (GRANDES Y HORIZONTALES)
   ========================================= */

.payment-tabs {
    display: flex;           /* Alineación horizontal obligatoria */
    gap: 15px;               /* Espacio entre botones */
    margin-bottom: 25px;
    width: 100%;
}

.pay-tab {
    flex: 1;                 /* Los 3 ocupan el mismo ancho exacto */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px 10px;      /* Más altura interna */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Organización interna vertical (Icono arriba, texto abajo) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;       /* Altura mínima para que se vean grandes */
}

/* El Icono Grande */
.pay-tab i {
    font-size: 2.2rem;       /* Tamaño de icono aumentado */
    margin-bottom: 12px;
    color: #666;
    transition: 0.3s;
}

/* El Texto */
.pay-tab span {
    font-size: 0.75rem;
    font-weight: 800;        /* Letra más gruesa */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

/* --- ESTADOS INTERACTIVOS --- */

/* Hover (Al pasar el ratón) */
.pay-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px); /* Se levanta un poco */
    border-color: #555;
}

.pay-tab:hover i {
    color: white;
}

/* Active (Seleccionado) */
.pay-tab.active {
    border-color: #00f2ff;   /* Borde Cian */
    background: rgba(0, 242, 255, 0.08); /* Fondo cian muy suave */
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.15); /* Resplandor */
}

.pay-tab.active i {
    color: #00f2ff;          /* Icono Cian */
    transform: scale(1.1);   /* Icono crece un poco */
}

.pay-tab.active span {
    color: white;
}

/* Ajuste para móviles muy pequeños (evita que se rompa el texto) */
@media (max-width: 400px) {
    .payment-tabs { gap: 8px; }
    .pay-tab { padding: 15px 5px; min-height: 90px; }
    .pay-tab i { font-size: 1.5rem; }
    .pay-tab span { font-size: 0.6rem; }
}

/* =========================================
   CALCULADORA DE FINANCIACIÓN (PREMIUM UI)
   ========================================= */

.finance-calculator {
    background: #0a0a0b;        /* Fondo muy oscuro */
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    position: relative;
    /* Sutil resplandor azulado para destacar que es una herramienta */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}

/* Filas de texto (Etiqueta ----- Valor) */
.finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #888;
}

.finance-val {
    font-family: 'Montserrat', monospace; /* Monospaced para números */
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

/* El valor grande destacado (Cuota mensual) */
.highlight-val {
    font-size: 1.6rem;
    color: var(--accent); /* Cian */
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

/* --- SLIDER PERSONALIZADO (RANGE) --- */
.range-slider {
    -webkit-appearance: none; /* Quitar estilo por defecto */
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 5px;
    outline: none;
    margin: 20px 0;
    cursor: pointer;
}

/* Bolita del slider (Chrome/Safari) */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00f2ff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.6); /* Glow intenso */
    border: 2px solid white;
    transition: transform 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Bolita del slider (Firefox) */
.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00f2ff;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
}

/* --- SELECTOR DE MESES --- */
.months-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.month-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #444;
    color: #666;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.month-btn:hover {
    border-color: #fff;
    color: #fff;
}

.month-btn.active {
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
    color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Separador visual */
.finance-calculator hr {
    border: 0;
    height: 1px;
    background: #333;
    margin: 20px 0;
}