/* =============================================
   PALETA DE COLORES Y ESTILOS BASE
   ============================================= */
:root {
    --primary-blue: #1A3C8B;
    /* Azul profundo corporativo */
    --accent-red: #D32F2F;
    /* Rojo vibrante para acentos */
    --dark-bg: #ffffff;
    /* Fondo principal blanco */
    --mid-dark-bg: #f5f7fa;
    /* Fondo secundario gris muy claro */
    --light-text: #1a1a2e;
    /* Texto oscuro para fondo claro */
    --muted-text: #6b7280;
    /* Texto gris intermedio */
    --card-bg: #ffffff;
    /* Fondo de tarjeta blanco */
    --shadow-dark: rgba(0, 0, 0, 0.1);
    /* Sombra sutil */
    --shadow-light: rgba(0, 0, 0, 0.06);
    --bright-blue: #1A3C8B;
    /* Azul corporativo */
    --furia-blue: #0b2c5f;
    --furia-blue-soft: #1e3a8a;
    --furia-red: #c81e1e;
    --furia-gray: #64748b;
    --furia-accent: #38bdf8;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: #f0f2f5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--light-text);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-red);
}

hr {
    border-bottom: 1px solid #e0e0e0;
}

/* =============================================
   COMPONENTES GENERALES (BOTONES, TARJETAS)
   ============================================= */
.button.primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.button.primary:hover {
    background-color: #C2185B;
    border-color: #C2185B;
    transform: translateY(-2px);
}

.button.hollow {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button.hollow:hover {
    background-color: var(--primary-blue);
    color: var(--light-text);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.event-card {
    background-color: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-dark);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.event-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--furia-blue);
}



.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-dark);
}

.event-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

.event-card .card-section {
    padding: 1.5rem;
}

.event-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--primary-blue);
}

.event-card p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--muted-text);
}

/* =============================================
   BARRA DE NAVEGACIÓN
   ============================================= */
#main-menu {
    background-color: #ffffff;
    padding: 0 1rem;
    height: 90px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow-dark);
    border-bottom: 1px solid #e0e0e0;
}

#main-menu .menu {
    background-color: transparent;
    align-items: center;
}

#main-menu .menu a,
#main-menu .menu-text {
    color: #333333;
    padding: 0.7rem 1rem;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

#main-menu .menu a:hover {
    background-color: #f0f2f5;
    color: var(--primary-blue);
}

#main-menu .app-logo {
    display: flex;
    align-items: center;
    padding: 0;
    transition: opacity 0.3s ease;
}

#main-menu .app-logo:hover {
    opacity: 0.8;
    background-color: transparent;
}

#main-menu .app-logo-img {
    width: 200px;
    height: auto;
    display: block;
}

#main-menu .menu .button.hollow {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: transparent;
}

#main-menu .menu .button.hollow:hover {
    color: var(--light-text);
    background-color: var(--primary-blue);
}

#logged-in-view {
    display: none;
}

.user-menu-separator {
    border-left: 2px solid var(--primary-blue);
    margin-left: 1rem;
    padding-left: 1rem;
}

.user-icon {
    margin-right: 0.5rem;
    color: var(--primary-blue);
}

#user-name-placeholder {
    font-weight: 600;
    color: var(--light-text);
}

/* =============================================
   PÁGINA PRINCIPAL (INDEX)
   ============================================= */
.banner-section {
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: 0;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-red);
    height: 270px;
}

.banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    object-position: center;
}

.section-title {
    text-align: center;
}

    .section-title h2 {
        margin: 0;
        font-weight: 800;
    }

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

/* =============================================
   LOGIN Y REGISTRO
   ============================================= */
.login-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.login-links a {
    transition: color 0.3s ease;
}

.login-links .primary-links {
    margin-bottom: 1.5rem;
}

.login-links .primary-links a {
    font-size: 1.1rem;
    color: var(--bright-blue);
    font-weight: 600;
    margin: 0 0.75rem;
}

.login-links .primary-links a:hover {
    color: var(--accent-red);
}

.login-links .secondary-links a {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin: 0 0.5rem;
}

.login-links .secondary-links a:hover {
    color: var(--light-text);
}

.reveal {
    background-color: var(--card-bg);
    color: var(--light-text);
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 40px var(--shadow-dark);
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
    color: var(--light-text);
}

.reveal p {
    color: var(--light-text);
}

.reveal .help-text {
    color: var(--muted-text);
}

.reveal .close-button {
    color: var(--muted-text);
    transition: color 0.3s ease;
}

.reveal .close-button:hover {
    color: var(--light-text);
}

/* =============================================
   PÁGINA DE DETALLES DEL ORGANIZADOR
   ============================================= */
.organizer-banner {
    /* Clave: Establece un contexto de posicionamiento */
    position: relative;

    /* Mantiene la altura deseada */
    height: 250px !important;

    /* Estas reglas centran el texto por si la imagen no carga */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--dark-bg);
    overflow: hidden;
    /* Asegura que nada se salga del contenedor */
}

.organizer-banner img {
    /* La imagen ocupa todo el contenedor */
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* La ponemos detrás del título y el overlay */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Overlay oscuro para la legibilidad del texto */
.organizer-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 2;
    /* Se pone encima de la imagen */
}

/* Título superpuesto */
.organizer-banner h1 {
    /* Se posiciona relativo al contenedor del banner */
    position: relative;
    z-index: 3;
    /* Se pone encima del overlay */
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.section-title-left {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-red);
}

.main-content .callout {
    background-color: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
}

.main-content .callout h1,
.main-content .callout h2,
.main-content .callout h3,
.main-content .callout h4,
.main-content .callout p,
.main-content .callout a {
    color: var(--light-text);
}

.main-content .callout h4 {
    color: var(--accent-red);
}

.main-content .callout .social-links-container a i {
    color: var(--primary-blue);
}

.social-links-container a {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.social-links-container a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.social-links-container a:hover {
    color: var(--light-text);
}

.social-links-container a:hover i {
    color: var(--accent-red);
}

.event-summary-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 5px;
    background-color: var(--card-bg);
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.event-summary-item:hover {
    background-color: var(--mid-dark-bg);
    transform: translateX(5px);
}

.event-summary-item .event-date {
    flex-shrink: 0;
    margin-right: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.event-summary-item .event-name {
    flex-grow: 1;
    margin-right: 1.5rem;
    text-align: left;
}

.event-summary-item .button {
    flex-shrink: 0;
    background-color: var(--accent-red);
    font-weight: 600;
}

.event-summary-item .button:hover {
    background-color: #C2185B;
}

/* =============================================
   PÁGINA "ACERCA DE"
   ============================================= */

/* Héroe de la página "Acerca de" */
.about-hero {
    background-color: #ffffff;
    padding: 4rem 1rem;
    border-bottom: 2px solid var(--primary-blue);
}

.about-hero .lead {
    color: var(--muted-text);
    font-size: 1.3rem;
}

/* Sección de Misión */
.mission-section {
    padding: 3rem 0;
}

/* Sección de Valores con íconos */
.values-section {
    padding: 3rem 0;
}

.about-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    width: 100%;
}

.value-list {
    list-style-type: none;
    margin-left: 0;
}

.value-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.value-list li i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-right: 1.5rem;
    margin-top: 0.5rem;
    width: 30px;
    /* Ancho fijo para alineación */
    text-align: center;
}

.value-list li h4 {
    margin: 0 0 0.5rem 0;
    color: var(--light-text);
}

.value-list li p {
    margin: 0;
    color: var(--muted-text);
}

/* Sección de Llamada a la Acción (CTA) */
.cta-section {
    background-color: var(--primary-blue);
    padding: 4rem 1rem;
    margin-top: 3rem;
}

.cta-section h2 {
    margin-bottom: 2rem;
    color: #ffffff;
}

.cta-section .button.large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    background-color: var(--accent-red);
    color: #ffffff;
}

/* =============================================
   PÁGINA DE AYUDA
   ============================================= */

/* Tarjetas de Contacto */
.contact-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Estilos para el Acordeón (Tema Oscuro) */
.accordion {
    background-color: transparent;
}

.accordion-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.accordion-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.accordion-title {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    transition: background-color 0.3s ease;
}

.accordion-title:hover {
    background-color: var(--mid-dark-bg);
}

.accordion-item.is-active .accordion-title {
    background-color: var(--primary-blue);
    color: var(--light-text);
}

.accordion-content {
    background-color: #f5f7fa;
    color: var(--muted-text);
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.accordion-content p {
    margin-bottom: 0;
    color: var(--muted-text);
}

.accordion-content a {
    color: var(--bright-blue);
    font-weight: 600;
}

/* =============================================
   UTILIDADES
   ============================================= */
.spinner {
    border: 4px solid #e0e0e0;
    border-top: 4px solid var(--accent-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* =============================================
   PÁGINAS LEGALES (TÉRMINOS, PRIVACIDAD)
   ============================================= */

/* Contenedor principal del texto legal */
.legal-content {
    margin-top: 2rem;
}

/* Párrafo para la fecha de actualización */
.last-updated {
    color: var(--muted-text);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

/* Títulos de cada sección */
.legal-content h2 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Subtítulos de cada sección */
.legal-content h3 {
    color: var(--light-text);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Párrafos de texto */
.legal-content p {
    color: var(--muted-text);
    line-height: 1.7;
    /* Aumenta el espaciado entre líneas para facilitar la lectura */
    text-align: justify;
}

/* Estilo para listas */
.legal-content ul,
.legal-content ol {
    color: var(--muted-text);
    margin-left: 1.5rem;
    line-height: 1.7;
}

/* Enlaces dentro del texto legal */
.legal-content a {
    color: var(--bright-blue);
    text-decoration: underline;
}

/* =============================================
   PÁGINA DE CONFIGURACIÓN (PESTAÑAS)
   ============================================= */

/* Contenedor de las pestañas de navegación */
.tabs {
    background-color: transparent;
    border-bottom: 2px solid var(--card-bg);
}

/* Título de cada pestaña */
.tabs-title>a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted-text);
    /* Color para pestañas inactivas */
    background-color: transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Estilo al pasar el mouse por encima de una pestaña */
.tabs-title>a:hover {
    background-color: var(--card-bg);
    color: var(--light-text);
}

/* Estilo para la pestaña ACTIVA */
.tabs-title.is-active>a {
    background-color: transparent;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

/* Contenedor de los paneles de contenido */
.tabs-content {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* Panel de contenido individual */
.tabs-panel {
    background-color: var(--card-bg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    /* El borde superior ya lo hace la barra de pestañas */
    border-radius: 0 0 10px 10px;
}

.tabs-panel h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.tabs-panel p {
    color: var(--muted-text);
    margin-bottom: 2rem;
}

.tabs-panel .button {
    margin-top: 1rem;
}

/* Contenedor del switch en la página de configuración */
.switch-container {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.switch-container .switch-label {
    margin-left: 1rem;
    font-size: 1rem;
    color: var(--light-text);
}

/* =============================================
   PÁGINA "MIS BOLETOS"
   ============================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.zone-header {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-bg);
}

.zone-subtitle {
    font-size: 1rem;
    color: var(--furia-gray);
}

/* Tarjeta de boleto con diseño vertical */
.ticket-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    /* <-- CLAVE: Diseño vertical */
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-dark);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-dark);
}

/* Imagen en la parte superior */
.ticket-image {
    width: 100%;
    height: 150px;
    /* Altura fija para la imagen, aprox 25-30% */
    flex-shrink: 0;
}

.ticket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor de toda la información inferior */
.ticket-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Ocupa el espacio restante */
}

/* Contenedor para los textos (excluyendo el botón) */
.ticket-info-main {
    flex-grow: 1;
}

.ticket-info .ticket-season {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-text);
    text-transform: uppercase;
}

.ticket-info h4 {
    font-size: 1.3rem;
    color: var(--light-text);
    margin: 0.2rem 0 1rem 0;
}

.ticket-info .ticket-detail {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

.ticket-info .ticket-detail i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

/* Bloque para Asiento y Sección */
.ticket-seat-info {
    display: flex;
    gap: 1rem;
    background-color: var(--mid-dark-bg);
    border-radius: 5px;
    padding: 0.8rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.seat-detail {
    flex: 1;
}

.section-layout {
    max-width: 1600px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.seat-wrapper {
    background: #f8fafc;
    padding: 20px;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 240px); /* ajusta según header + barra azul */
    overflow: hidden;
}

.seats-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.seat-detail span {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-text);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.seat-detail strong {
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 600;
}

/* Contenedor para el botón de acción */
.ticket-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mid-dark-bg);
}

/* --- VISTA PARA MÓVILES --- */
@media screen and (max-width: 639px) {

    /* TU CSS EXISTENTE */
    .ticket-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
    }

    .ticket-image {
        width: 100%;
        height: 180px;
        border-radius: 8px 8px 0 0;
    }

    .ticket-info {
        padding: 1.2rem;
    }


    .zones-panel {
        height: auto;
        border-left: none;
        border-top: 2px solid var(--furia-blue);
    }

        .section-header.compact {
        flex-direction: column;
        gap: 10px;
    }

    .purchase-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .seats-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
    }

    .seat-wrapper {
        height: auto;
        overflow: visible;
    }

    .seat-area {
        overflow-x: auto;
        overflow-y: auto;
    }

    .seat-container {
        min-width: max-content;
    }

    .container {
        padding: 10px;
    }

    .paper {
        padding: 15px;
        border-radius: 12px;
    }

    .checkout-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .checkout-title {
        font-size: 1.2rem;
        text-align: center;
        flex: 1 1 100%;
    }

    /* Ocultar encabezado de tabla */
    #checkoutTable thead {
        display: none;
    }

    /* Convertir filas en tarjetas */
    #checkoutTable,
    #checkoutTable tbody,
    #checkoutTable tr,
    #checkoutTable td {
        display: block;
        width: 100%;
    }

        #checkoutTable tr {
            background: #f8fafc;
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 12px;
            box-shadow: 0 4px 10px rgba(0,0,0,.06);
        }

        #checkoutTable td {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 0.9rem;
        }

            #checkoutTable td::before {
                font-weight: 600;
                color: #555;
            }

            #checkoutTable td:nth-child(2)::before {
                content: "Asiento";
            }

            #checkoutTable td:nth-child(3)::before {
                content: "Zona";
            }

            #checkoutTable td:nth-child(4)::before {
                content: "Sección";
            }

            #checkoutTable td:nth-child(5)::before {
                content: "Evento";
            }

            #checkoutTable td:nth-child(6)::before {
                content: "Precio";
            }

    .dynamic-ticket {
        margin-top: 15px;
    }

    .totals {
        margin-top: 10px;
    }

    .checkout-btn {
        position: sticky;
        bottom: 0;
        background: #1e3a8a;
    }

        .checkout-btn.loading {
            opacity: 0.7;
            cursor: not-allowed;
        }
}

/* =============================================
   PÁGINA VISUALIZADOR DE BOLETOS
   ============================================= */

.ticket-viewer-body {
    background-color: var(--mid-dark-bg);
}

.ticket-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    /* <-- 2. Alinea el botón con la base del título */
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-bg);
}

.ticket-viewer-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.ticket-visual {
    background-color: #ffffff;
    color: #000000;
    border-radius: 10px;
    margin: 0 auto 2rem auto;
    max-width: 420px;
    /* <-- 3. Boleto un poco más ancho */
    box-shadow: 0 5px 20px var(--shadow-dark);
    font-family: 'Open Sans', sans-serif;
    border: 1px solid #ddd;
    overflow: hidden;
    /* Clave para que la imagen no se salga de los bordes */
}

/* 1. Estilo para la nueva imagen del boleto */
.ticket-visual-image {
    height: 140px;
    width: 100%;
}

.ticket-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-visual-header {
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 1rem 1.5rem;
    /* Aumenta padding lateral */
    text-align: center;
}

.ticket-visual-header h4 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 1.2rem;
}

.ticket-visual-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.ticket-visual-body {
    display: flex;
    padding: 1.5rem;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 2px dashed #ccc;
}

.qr-code-container {
    flex-shrink: 0;
}

.ticket-visual-details {
    width: 100%;
}

.ticket-visual-details .detail-item {
    margin-bottom: 0.8rem;
}

.ticket-visual-details .detail-item span {
    display: block;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.ticket-visual-details .detail-item strong {
    font-size: 1.1rem;
    color: #000;
}

.ticket-visual-footer {
    background-color: #f5f5f5;
    text-align: center;
    padding: 0.8rem 1.5rem;
    /* Aumenta padding lateral */
    font-size: 0.8rem;
    color: #555;
}

/* Distintivo para boletos dinámicos */
.dynamic-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-red);
    color: var(--light-text);
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 5px;
    z-index: 10;
}

.dynamic-ticket label {
    color: var(--furia-blue);
    font-weight: 600;
}

.ticket-card {
    position: relative;
    /* Necesario para posicionar el badge */
}

/* Estilos para el contador del boleto dinámico */
#countdown-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

#countdown-container p {
    margin-bottom: 0.5rem;
    color: var(--muted-text);
}

#countdown-timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    font-family: 'Montserrat', sans-serif;
}

/* =============================================
   PÁGINA PORTAL DE BENEFICIOS
   ============================================= */

.benefit-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.benefit-card-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.benefit-card h2 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.benefit-card-description {
    color: var(--muted-text);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Empuja el contenido hacia abajo */
}

.benefit-list {
    list-style-type: none;
    margin: 0 0 2rem 0;
    text-align: left;
}

.benefit-list li {
    color: var(--light-text);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.benefit-list li i {
    color: var(--accent-red);
    margin-right: 0.8rem;
    margin-top: 4px;
}

.benefit-card .button {
    margin-top: auto;
    /* Empuja el botón al final de la tarjeta */
}

/* =============================================
   PORTAL DE ABONADOS - VISTA CON ABONOS
   ============================================= */

.promo-grid-container {
    margin-bottom: 2rem;
}

.promo-card {
    display: block;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.promo-card img {
    width: 100%;
    height: 180px;
    /* Altura fija para todas las imágenes */
    object-fit: cover;
    border-bottom: 2px solid var(--accent-red);
}

.promo-card-caption {
    padding: 1rem;
}

.promo-card-caption p {
    color: var(--light-text);
    font-weight: 600;
    margin: 0;
}

/* Tarjeta de desglose de abono */
.abono-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.abono-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Estadísticas del abono */
.abono-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background-color: var(--mid-dark-bg);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.stat-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted-text);
    text-transform: uppercase;
}

.stat-item strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

/* Barra de Progreso */
.progress {
    background-color: var(--mid-dark-bg);
    border: none;
    height: 25px;
    border-radius: 50px;
}

.progress-meter {
    background-color: var(--primary-blue);
}

.progress-meter-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.seat-available {
    fill: #27c288;
    cursor: pointer;
    transition: fill 0.2s ease;
}

.seat-unavailable {
    fill: #d3d3d3;
    cursor: not-allowed;
}

#stadium-svg path:hover {
    stroke: #000;
    stroke-width: 1;
}

/* =========================================================
   PORTAL DE ABONADOS - VISTA MEJORADA
   ========================================================= */

/* Contenedor para cada abono y su set de pestañas */
.abono-container {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Para que las pestañas se vean bien */
}

.abono-title {
    background-color: var(--mid-dark-bg);
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin: 0;
}

/* Contenido del panel de consulta */
.consulta-panel-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
}

.abono-stats-detailed {
    flex: 1 1 300px;
}

.abono-stats-detailed .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mid-dark-bg);
}

.abono-stats-detailed .stat-item:last-child {
    border-bottom: none;
}

.abono-stats-detailed .stat-item span {
    color: var(--muted-text);
}

.abono-stats-detailed .stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.abono-stats-detailed .stat-item.accent strong {
    color: var(--accent-red);
}

/* =============================================
   CARRUSEL DE PROMOCIONES (CSS PURO)
   ============================================= */

.promo-carousel-container {
    margin-bottom: 2rem;
}

/* El contenedor principal que se puede desplazar */
.promo-carousel {
    display: flex;
    overflow-x: auto;
    /* Permite el desplazamiento horizontal */
    scroll-snap-type: x mandatory;
    /* La magia del carrusel: se "ajusta" a cada slide */
    -webkit-overflow-scrolling: touch;
    /* Desplazamiento suave en iOS */
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-dark);
}

/* Cada diapositiva (slide) individual */
.promo-slide {
    flex: 0 0 100%;
    /* Cada slide ocupa el 100% del ancho del contenedor */
    width: 100%;
    scroll-snap-align: start;
    /* Se alinea al inicio al hacer scroll */
    position: relative;
    height: 350px;
    /* Altura fija para el carrusel */
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* El texto de la promoción */
.promo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Estilo de la barra de scroll (opcional pero recomendado) */
.promo-carousel::-webkit-scrollbar {
    height: 8px;
}

.promo-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.promo-carousel::-webkit-scrollbar-track {
    background: var(--mid-dark-bg);
}

/* Círculo de Progreso */
.progress-circle-container {
    flex: 0 0 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(closest-side, var(--card-bg) 79%, transparent 80% 100%),
        conic-gradient(var(--primary-blue) var(--p, 0%), var(--mid-dark-bg) 0);
    animation: progress-animation 1s 1 ease-out;
}

@property --p {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

@keyframes progress-animation {
    from {
        --p: 0;
    }
}

.progress-circle::before {
    counter-reset: p var(--p);
    content: counter(p) '%';
}

.progress-circle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.progress-circle-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.progress-circle p {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* =============================================
   PÁGINA PORTAL DE BENEFICIOS (MONEDERO)
   ============================================= */

/* Contenedor principal del monedero */
.wallet-header {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sección del saldo */
.wallet-balance-label {
    color: var(--muted-text);
    font-size: 1rem;
    text-transform: uppercase;
}

.wallet-balance-amount {
    font-size: 3rem;
    color: var(--light-text);
    margin: 0.5rem 0;
}

.wallet-balance-expiry {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0;
}

/* Sección del código QR */
.wallet-qr {
    text-align: center;
}

#wallet-qrcode {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.wallet-qr span {
    font-size: 0.8rem;
    color: var(--muted-text);
}

/* Lista de opciones del portal */
.portal-options-list {
    margin-top: 1.5rem;
}

.portal-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--light-text);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.portal-option:hover {
    background-color: var(--mid-dark-bg);
    transform: translateX(5px);
    color: var(--light-text);
}

.portal-option i:first-child {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.portal-option-text {
    flex-grow: 1;
}

.portal-option-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
}

.portal-option-text p {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.9rem;
}

.portal-option i:last-child {
    font-size: 1rem;
    color: var(--muted-text);
}

/* =============================================
   PÁGINA "MIS COMPRAS"
   ============================================= */

/* Container for action buttons */
.purchase-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    /* Space between buttons */
}

.purchase-actions .button i {
    margin-right: 0.5rem;
}

/* Container for the table for styling */
.table-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    /* Allow horizontal scroll on small screens */
}

/* Purchases table styles */
.purchases-table {
    width: 100%;
    background-color: transparent;
    border: none;
    border-collapse: collapse;
}

.purchases-table thead {
    border-bottom: 2px solid var(--primary-blue);
}

.purchases-table th {
    padding: 1rem;
    color: var(--light-text);
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    /* Prevent headers from wrapping */
}

.purchases-table td {
    padding: 1rem;
    color: var(--muted-text);
    border-bottom: 1px solid var(--mid-dark-bg);
    white-space: nowrap;
    /* Prevent cell content from wrapping */
}

.purchases-table tbody tr:last-child td {
    border-bottom: none;
}

/* Alignment for numeric columns */
.purchases-table .text-right {
    text-align: right;
}

/* Styling for movement type */
.movement-in {
    color: #4CAF50;
    /* Green */
    font-weight: 600;
}

.movement-out {
    color: var(--accent-red);
    /* Red */
    font-weight: 600;
}

/* Message for when table is empty */
.no-data {
    color: var(--muted-text);
    font-style: italic;
    padding: 2rem;
}

/* Loader Overlay Styles */
#loader-overlay {
    position: fixed;
    /* Cover the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark semi-transparent background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensure it's on top */
}

#loader-overlay .spinner {
    /* Uses the existing spinner style */
    margin-bottom: 1rem;
}

#loader-overlay p {
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Style for the OCR result popup */
#ocr-result-text {
    background-color: var(--mid-dark-bg);
    color: var(--light-text);
    padding: 1rem;
    border-radius: 5px;
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    /* Wrap long lines */
    word-wrap: break-word;
}

/* =============================================
   PÁGINA "MIS ACCESOS"
   ============================================= */

.text-muted {
    color: var(--muted-text);
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.entered {
    background-color: rgba(76, 175, 80, 0.2);
    /* Fondo verde translúcido */
    color: #4CAF50;
    /* Texto verde brillante */
    border: 1px solid #4CAF50;
}

.status-badge.unused {
    background-color: rgba(158, 158, 158, 0.2);
    /* Fondo gris translúcido */
    color: #9E9E9E;
    /* Texto gris */
    border: 1px solid #9E9E9E;
}

/* =============================================
   ESTADIOS DE SECCIONES DEL ESTADIO
   ============================================= */

.default-path {
    transition: fill 0.3s;
}

.highlighted {
    opacity: 1;
    cursor: pointer;
    pointer-events: all !important;

}

.faded {
    opacity: 0.2;
    transition: opacity 0.3s;
}

#tooltip {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    max-width: 300px;
    max-height: 250px;
    overflow: hidden;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay.visible {
    display: flex;
}

.grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
}

.header h4 {
    color: #0033A0;
    font-weight: bold;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    flex: 1;
    text-align: center;
}

.subheader {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.timer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
}

.timer-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.timer-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
}

.timer-text small {
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
}

.timer-text span {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: bold;
}

.cart-button {
    background-color: #e3d7f9;
    color: black;
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button img {
    width: clamp(25px, 8vw, 50px);
    margin-right: 5px;
}

.seat-wrapper {
    background: #f8fafc;
    padding: 20px;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 240px); /* ajusta según header + barra azul */
    overflow: hidden;
}

.row-labels {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 8px;
}

.row-label {
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seats {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    flex-shrink: 0;
    width: 100%;
}

.seat-row {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.seat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    width: 100%;
}

.camp-line {
    width: 100%;
    height: 30px;
    background: linear-gradient(to right, transparent, lime, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: white;
    font-weight: bold;
    flex-shrink: 0; /* importante */
}

.grid-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.section-container {
    border: 1px solid #ccc;
    background: white;
    margin-bottom: 8px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
}

.section-container:hover {
    background: #e6f0ff;
}

#svg-container object,
#svg-container svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

#svg-container {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 20px);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pinch-zoom;
}

/* .grid-x.grid-margin-x {
    margin-left: 0 !important;
    margin-right: 0 !important;
    }

    .grid-x.grid-margin-x > .cell {
    margin-left: 0 !important;
    margin-right: 0 !important;
    } */


#zonesContainer,
#zonesContainer * {
    color: #333;
}

.zone-panel {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 6px;
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px; 
    margin: 0; 

    font-weight: 600;
    cursor: pointer;
}

.zone-header:hover {
    background-color: white;
}

.zone-arrow {
    transition: transform .2s ease;
}

.zone-arrow.open {
    transform: rotate(180deg);
}

.zone-body {
    display: none;
    margin-top: 6px;
}

.zone-body.open {
    display: block;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.section-box {
    background: white !important;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 0;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease;
}

    .section-box:hover {
        background: #f2f2f2;
    }

.zones-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--furia-blue);
}

.md-modal-header {
    background: linear-gradient(135deg,var(--furia-blue),var(--furia-blue-soft));
    color: white;
    padding: 14px;
    text-align: center;
    font-weight: 800;
    flex-shrink: 0;
}

.section-block {
    border: 1px solid #ffffff;
    margin-top: 18px;
    border-radius: 6px;
}

.modal-section-title {
    text-align: center;
    color: var(--furia-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.place-code {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.place-price {
    color: var(--furia-blue);
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

.place-delete {
    background: none;
    border: none;
    color: var(--furia-red);
    cursor: pointer;
}

.place-delete:hover {
    transform: scale(1.15);
}

.md-modal-footer {
    padding: 12px 15px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    flex-shrink: 0;
}

.md-modal-body {
    padding: 15px;
    overflow-y: auto; 
    flex: 1; 
}

    .md-modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .md-modal-body::-webkit-scrollbar {
        width: 6px;
    }

.btn-buy {
    width: 100%;
    background: var(--furia-red);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

    .btn-buy:hover {
        background: white;
        color: var(--furia-red);
        border: 2px solid var(--furia-red);
    }

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    background: rgba(0,0,0,.45);
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 480px; 
    width: 95%;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column; 
    max-height: 85vh; 
}

.modal-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--furia-blue);
    margin-bottom: 10px;
}

#md-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.scanner-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scanner-modal.hidden {
        display: none;
    }

.scanner-content {
    background: white;
    padding: 20px;
}

.preseason-hero {
    width: 100%;
    height: 40vh;
    overflow: hidden;
    position: relative;
}

.preseason-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--furia-blue);
    padding-bottom: 12px;
}

.back-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--furia-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .back-btn:hover {
        color: var(--furia-red);
    }

.checkout-title {
    text-align: center;
    margin: 0;
    font-weight: 800;
    color: var(--furia-blue);
}

.checkout-title {
    text-align: center;
    margin: 0;
    font-weight: 800;
}

.timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200,30,30,.1);
    color: var(--furia-red);
    border: 1px solid rgba(200,30,30,.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.timer-badge {
    background: rgba(200,30,30,.12);
    color: var(--furia-red);
    border: 1px solid rgba(200,30,30,.4);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

#checkoutTable {
    width: 100%;
    border-collapse: collapse;
}

    #checkoutTable th {
        text-align: left;
        font-weight: 600;
        padding: 10px;
        background: rgba(11,44,95,.05);
        color: var(--furia-blue);
        border-bottom: 1px solid #e5e7eb;
    }

    #checkoutTable td {
        padding: 10px;
        border-bottom: 1px solid #f1f5f9;
    }

        #checkoutTable th:last-child,
        #checkoutTable td:last-child {
            text-align: right;
            font-weight: 700;
            color: var(--furia-blue);
        }

    #checkoutTable tbody tr:hover {
        background: rgba(200,30,30,.05);
    }

.totals {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
    margin-left: auto; 
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--furia-gray);
}

.total-final {
    font-size: 1.2rem;
    font-weight: 700;
    border-top: 2px solid #e2e8f0;
    padding-top: 8px;
    color: var(--furia-blue);
}

    .total-final span:last-child {
        font-size: 1.3rem;
        font-weight: 800;
    }

.checkout-btn {
    margin-top: 30px;
    width: 100%;
    background: linear-gradient(135deg,var(--furia-blue),var(--furia-blue-soft));
    color: white;
    font-weight: 700;
    padding: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s ease;
}

    .checkout-btn:hover {
        background: var(--furia-blue);
        box-shadow: 0 6px 16px rgba(11,44,95,.4);
    }

    .checkout-btn i {
        margin-right: 8px;
    }

    .checkout-btn:active {
        transform: scale(.97);
    }

.container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.paper {
    background: white;
    width: 100%;
    max-width: 900px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.section-header {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 25px;
}

    .section-header.compact {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 12px 0;
        margin-bottom: 8px;
    }

.purchase-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.purchase-bar {
    background: linear-gradient(135deg,var(--furia-blue),var(--furia-blue-soft));
    color: white;
    border-radius: 12px;
    padding: 16px 22px;
    flex: 0 0 auto;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 22px rgba(11,44,95,.35);
    position: sticky;
    top: 0;
    z-index: 20;
}

.primary-action {
    background: var(--furia-red);
    color: white;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    border: 2px solid var(--furia-red);
    cursor: pointer;
    font-size: .95rem;
    transition: all .2s ease;
    box-shadow: 0 4px 10px rgba(200,30,30,.4);
}

    .primary-action:hover {
        background: white;
        color: var(--furia-red);
    }

    .primary-action:active {
        transform: scale(.97);
    }

.price-block {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
}

.price-label {
    font-size: .85rem;
    opacity: .85;
}

.btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--furia-red);
    font-size: 1rem;
    padding: 0;
}

    .btn-delete:hover {
        transform: scale(1.15);
    }

.title-block {
    text-align: center;
}

.venue-header {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.floating-cart {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--furia-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

    .floating-cart img {
        width: 42px;
    }

#cartBadge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--furia-red);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zones-panel {
    background: #f8fafc;
    padding: 12px;
    height: 100vh;
    border-left: 2px solid var(--furia-blue);
}
