/* =========================================================
   estilo.css
   Vestido visual tipo "travel app" sobre UIKit:
   tarjetas grandes redondeadas, azul como acento,
   tipografía Poppins, iconos en chips circulares.
   ========================================================= */

:root {
    --azul: #2F6FED;
    --azul-oscuro: #1E4FBB;
    --azul-claro: #EAF1FF;
    --fondo: #F4F6FB;
    --texto-oscuro: #12203A;
    --texto-gris: #6B7280;
    --exito: #1D9E75;
    --exito-claro: #E1F5EE;
    --alerta: #D85A30;
    --alerta-claro: #FAECE7;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--fondo);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--texto-oscuro);
}

/* --- Tarjetas estilo "travel app" --- */
.tarjeta {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(18, 32, 58, 0.06);
    padding: 28px;
    border: none;
}

.tarjeta-chica {
    border-radius: 18px;
    padding: 18px 20px;
}

/* --- Encabezados --- */
h1, h2, h3, h4, .titulo-app {
    font-weight: 700;
    color: var(--texto-oscuro);
}

.subtitulo {
    color: var(--texto-gris);
    font-size: 14px;
}

/* --- Botón primario tipo píldora --- */
.boton-app {
    background: var(--azul);
    color: #FFFFFF !important;
    border: none;
    border-radius: 999px;
    padding: 15px 22px;
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    text-align: center;
    display: inline-block;
    transition: background 0.15s ease, transform 0.1s ease;
    cursor: pointer;
}
.boton-app:hover { background: var(--azul-oscuro); color: #fff; }
.boton-app:active { transform: scale(0.98); }

.boton-app-secundario {
    background: var(--azul-claro);
    color: var(--azul) !important;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 14px;
}

/* --- Inputs redondeados --- */
.uk-input, .uk-select, select.select-app {
    border-radius: 14px !important;
    background-color: #F7F9FC !important;
    border: 1.5px solid #E7EBF3 !important;
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
}
.uk-input:focus, .uk-select:focus, select.select-app:focus {
    border-color: var(--azul) !important;
    background-color: #FFFFFF !important;
    box-shadow: none;
}

/* Flecha del dropdown (se pierde el ícono nativo al forzar el fondo arriba) */
select.uk-select, select.select-app {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    padding-right: 40px;
}

.uk-form-label {
    font-size: 13px;
    color: var(--texto-gris);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* --- Chips de icono circulares --- */
.chip-icono {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--azul-claro);
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chip-icono.exito { background: var(--exito-claro); color: var(--exito); }
.chip-icono.alerta { background: var(--alerta-claro); color: var(--alerta); }

/* --- Etiquetas de estado --- */
.pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.pill-exito { background: var(--exito-claro); color: var(--exito); }
.pill-alerta { background: var(--alerta-claro); color: var(--alerta); }
.pill-neutral { background: #EEF1F6; color: var(--texto-gris); }

/* --- Barra de progreso de pago --- */
.barra-progreso {
    height: 12px;
    border-radius: 999px;
    background: #E7EBF3;
    overflow: hidden;
    width: 100%;
}
.barra-progreso-relleno {
    height: 100%;
    background: linear-gradient(90deg, var(--azul), var(--azul-oscuro));
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* --- Tarjeta de resumen de monto (grande) --- */
.monto-grande {
    font-size: 32px;
    font-weight: 700;
    color: var(--texto-oscuro);
}
.monto-chico {
    font-size: 13px;
    color: var(--texto-gris);
}

/* --- Radios y checkboxes con tarjeta seleccionable --- */
.opcion-tarjeta {
    border: 1.5px solid #E7EBF3;
    border-radius: 16px;
    padding: 14px 16px;
    display: block;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin-bottom: 10px;
}
.opcion-tarjeta:has(input:checked) {
    border-color: var(--azul);
    background: var(--azul-claro);
}

/* Respaldo para navegadores que no soportan :has() (Android WebView viejo).
   Se activa con JS agregando esta clase manualmente. */
.opcion-tarjeta.opcion-tarjeta-activa {
    border-color: var(--azul);
    background: var(--azul-claro);
}

/* Estado de error visible para el bloque de subir archivo
   (el <input type="file"> real está oculto por UIkit, así que
   el borde rojo se pinta en este wrapper visible en su lugar) */
.campo-archivo-error [uk-form-custom] {
    border: 1.5px solid var(--alerta);
    border-radius: 14px;
    padding: 2px;
}

/* Quitar las flechitas del input numérico (difíciles de tocar en Android) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Tabla del dashboard admin: al hacer scroll horizontal en el celular,
   la columna de nombre queda fija para no perder de vista de quién se trata */
.tabla-boletas th:first-child,
.tabla-boletas td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 2px 0 4px rgba(18, 32, 58, 0.06);
}

/* --- Contenedor general de página --- */
.contenedor-app {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

/* =========================================================
   Layout de boleta: dos columnas en desktop (afiche + boleta),
   una columna en mobile (banner arriba + boleta abajo).
   ========================================================= */

.layout-boleta {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Afiche como banner horizontal en mobile (sin parallax) */
.afiche-movil {
    display: block;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #E7EBF3;
}

/* Panel del afiche fijo (solo visible en desktop, ver media query) */
.panel-afiche {
    display: none;
}

.panel-contenido {
    flex: 1;
    width: 100%;
}

.panel-contenido-interior {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

@media (min-width: 960px) {
    .layout-boleta {
        flex-direction: row;
    }

    .afiche-movil {
        display: none;
    }

    .panel-afiche {
        display: block;
        position: sticky;
        top: 0;
        align-self: flex-start;
        height: 100vh;
        width: 42%;
        flex-shrink: 0;
        background-size: cover;
        background-position: center;
        background-color: #E7EBF3;
    }

    .panel-afiche-overlay {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: flex-end;
        padding: 40px;
        box-sizing: border-box;
        background: linear-gradient(180deg, rgba(18,32,58,0) 40%, rgba(18,32,58,0.55) 100%);
    }

    .panel-afiche-overlay h2 {
        color: #fff;
        margin: 0;
        font-size: 26px;
    }

    .panel-contenido {
        width: 58%;
    }

    .panel-contenido-interior {
        padding: 48px 40px 60px;
    }
}

/* --- Espacio de banner publicitario / arte del evento (728x90 o mayor) --- */
.banner-evento-contenedor {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.banner-evento {
    width: 100%;
    max-width: 728px;
    aspect-ratio: 728 / 90;
    object-fit: cover;
    border-radius: 16px;
    background-color: #EEF1F6;
    display: block;
}

