/* =========================================================================
   PALETA — más vibrante que la anterior (#C65A1E), pediste "colores
   llamativos". Sigo usando las mismas variables por si algo más del sitio
   las referencia; solo cambié los valores hex.
   ========================================================================= */
:root {
    --color-primary: #F97316;        /* naranja vivo (antes #C65A1E, más apagado) */
    --color-primary-light: rgba(249, 115, 22, 0.12);
    --color-primary-dark: #C2410C;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --color-border: #e2e8f0;
    --color-disabled: #cbd5e0;
    --color-success: #16A34A;
    --color-error: #DC2626;
}

/* =========================================================================
   ⚠️ ESTE RESET ES GLOBAL Y CARGA EN TODO EL SITIO (bus_tickets_scripts no
   tiene guarda de página, ver conversación anterior). No lo toco ahora
   porque quitarlo a ciegas puede romper el layout de páginas que no son
   del tour, pero es lo primero que arreglaría junto a la guarda condicional.
   ========================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Override de flatpickr para que combine con la paleta nueva */
.flatpickr-day.selected {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Honeypot anti-spam — se sigue usando en el form del wizard */
.hp-field {
    display: none;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

/* =========================================================================
   intl-tel-input — SIGUE EN USO (campo #telefono del wizard, paso 4)
   ========================================================================= */
.intl-tel-input {
    display: block;
    width: 100%;
}

.intl-tel-input .flag-container {
    padding: 0 5px 0 8px;
}

.intl-tel-input .selected-flag {
    padding: 0 15px 0 8px;
}

.intl-tel-input input {
    padding-left: 48px !important;
    width: 100% !important;
}

.country-list {
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
}

/* =========================================================================
   ⚠️ NO TOCADO — micuentawebstd_rest_wrapper es el ID estándar del widget
   embebido de Izipay/PayZen, casi seguro pertenece a la página de checkout
   (detrás de izipay_get_route_url('checkout')), que no hemos visto. No se
   toca hasta confirmar con ese archivo.
   ========================================================================= */
.payment-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 20px auto;
}

.payment-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#micuentawebstd_rest_wrapper {
    display: flex;
    justify-content: center;
}

.reserva-confirmada {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reserva-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.reserva-header h2 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.reserva-subtitulo {
    color: #6c757d;
    font-size: 1.1em;
}

.reserva-detalles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.reserva-detalles h3 {
    color: var(--color-primary);
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.reserva-notas {
    background: #f1f8ff;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--color-primary);
}

/* NUEVO: comprobante.php usa estas clases pero no tenían ninguna regla —
   se veían como texto plano sin caja. Estilo mínimo para que combinen
   con el resto de la página de confirmación. */
.reserva-fallida {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.reserva-fallida .reserva-header h2 {
    color: var(--color-error);
}

.reserva-fallida .reserva-header i {
    color: var(--color-error);
    margin-right: 8px;
}

.important-note {
    background: var(--color-primary-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 5px;
    padding: 15px 20px;
    margin: 20px 0;
}

.important-note__title {
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

.important-note__map-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    margin-bottom: 8px;
}

.important-note__message {
    color: var(--color-text-light);
    font-size: 0.9em;
}

.nota {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.nota i {
    margin-right: 10px;
    color: var(--color-primary);
}

.boton-home {
    padding: 15px 20px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 20px;
}

.boton-home:hover {
    color: #fff;
    background-color: var(--color-primary-dark);
}

/* =========================================================================
   RESPONSIVE — solo quedan las reglas de los bloques que mantuve arriba
   ========================================================================= */
@media (max-width: 768px) {
    .reserva-detalle {
        grid-template-columns: 1fr;
    }

    .payment-container {
        display: flex;
        flex-direction: column;
    }
}