/* ===========================================================
   variables globales
=========================================================== */
:root {
    --topbar-height: 40px;
    --innerbar-height: 80px;
    --header-shadow: 0 2px 8px rgba(0,0,0,0.12);
    --color-azul: #2c2c54;
    --color-claro: #f1f2f6;
    --color-seccion-odd: #ffffff;
    --color-seccion-even: #d5d5de;
}

/* ===========================================================
   header general
=========================================================== */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--color-claro);
    padding: 0;
    box-shadow: var(--header-shadow);
}

/* ===========================================================
   top bar (franja clara superior)
=========================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    line-height: var(--topbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-claro);
    z-index: 9000;
    padding: 0 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.top-bar-left span,
.top-bar-left a {
    font-family: 'poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

/* ===========================================================
   inner bar (franja azul)
=========================================================== */
.inner-bar {
    position: fixed !important;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    height: var(--innerbar-height);
    min-height: var(--innerbar-height);
    line-height: var(--innerbar-height);
    background-color: var(--color-azul) !important;
    display: flex;
    align-items: center;
    padding: 0 20px !important;
    z-index: 8000 !important;
    box-shadow: var(--header-shadow);
}

.logo {
    width: 200px;
    height: auto;
}

/* compensación del header fijo */
body {
    padding-top: calc(var(--topbar-height) + var(--innerbar-height));
}

/* ===========================================================
   navbar (escritorio)
=========================================================== */
.navbar-brand {
    color: #fff !important;
    font-size: 1.5rem;
    font-family: 'montserrat', sans-serif;
    display: flex;
    align-items: center;
}

#mainmenu {
    margin: 0 auto;
}

.navbar-nav {
    display: flex;
    gap: 26px;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-family: 'poppins', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    white-space: nowrap;
}


/* ===========================================================
   navbar (móvil)
=========================================================== */
@media (max-width: 991.98px) {
    :root {
        --innerbar-height: 72px;
    }

    .top-bar { 
        position: fixed !important;
    }

    #mainmenu { 
        margin-top: var(--innerbar-height) !important;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-left: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem !important;
        padding: 6px 0;
    }
}

/* ===========================================================
   dropdown idioma
=========================================================== */
.language-selector,
.language-dropdown {
    position: relative;
    z-index: 9500;
}

.language-dropdown .dropdown-menu {
    z-index: 9501;
}

/* ===========================================================
   mega menú (seguridad con idioma)
=========================================================== */
@media (min-width: 769px) {
    .mega-menu-container {
        position: absolute;
        top: calc(var(--topbar-height) + var(--innerbar-height));
        left: 0;
        width: 100vw;
        height: 200px;
        background-color: var(--color-claro);
        display: flex;
        opacity: 0;
        pointer-events: none;
        transform: translatey(-10px);
        transition: opacity .3s ease, transform .3s ease;
        z-index: 9400;
        justify-content: flex-start;
    }

    .mega-menu-container.active {
        opacity: 1;
        pointer-events: auto;
        transform: translatey(0);
    }

    .mega-menu-content {
        display: flex;
        position: relative;
        height: 100%;
    }

    .mega-menu-column {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 20px;
        min-width: 150px;
        white-space: nowrap;
    }

    .mega-menu-column a {
        color: #000;
        font-family: 'poppins', sans-serif;
        font-weight: 500;
        text-decoration: none;
        font-size: 18px;
        margin: 4px 0;
        opacity: 0;
        animation: fadedown .3s forwards;
    }

    .mega-menu-column a:nth-child(1) { animation-delay: 0s; }
    .mega-menu-column a:nth-child(2) { animation-delay: .1s; }
    .mega-menu-column a:nth-child(3) { animation-delay: .2s; }
    .mega-menu-column a:nth-child(4) { animation-delay: .3s; }
    .mega-menu-column a:nth-child(5) { animation-delay: .4s; }

    @keyframes fadedown {
        0% { opacity:0; transform: translatey(-10px); }
        100% { opacity:1; transform: translatey(0); }
    }
}

/* ===========================================================
   offcanvas (móvil)
=========================================================== */
@media (max-width: 991.98px) {
    .offcanvas {
        background-color: var(--color-claro) !important;
        color: var(--color-azul) !important;
        z-index: 10000 !important;
        top: calc(var(--topbar-height) + var(--innerbar-height));
        height: calc(100vh - (var(--topbar-height) + var(--innerbar-height)));
        overflow: hidden;
        padding: 10px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .offcanvas .nav-link {
        color: var(--color-azul) !important;
        font-family: 'poppins', sans-serif;
        font-weight: 500;
        font-size: 1.2rem;
        padding: 8px 0;
    }

    .offcanvas-header {
        border-bottom: 1px solid rgba(44,44,84,0.2);
    }

    .offcanvas-title {
        color: var(--color-azul) !important;
        margin: 0;
    }

    .offcanvas .btn-close {
        filter: invert(20%);
    }
}

/* ===========================================================
   hero video
=========================================================== */
.hero-video {
    position: relative;
    width: 100%;
 /*   height: 100vh;*/
    overflow: hidden;
    contain: layout paint;	
	height: calc(100vh - (var(--topbar-height) + var(--innerbar-height)));
}

.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-overlay h1 {
    font-family: 'montserrat', sans-serif;
    font-size: 3rem;
    color: #fff;
}

/* ===========================================================
   hero video móvil ajustado
=========================================================== */
@media (max-width: 991.98px) {
    .hero-video {
        position: relative;
        top: 0;
        width: 100%;
        height: calc(100vh - (var(--topbar-height) + var(--innerbar-height)));
		
    }
}


    .hero-video-element {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
    }
}

/* ===========================================================
   secciones
=========================================================== */

/* alternancia de colores de fondo */
.section:nth-of-type(odd) {
    background: var(--color-seccion-odd);
}

.section:nth-of-type(even) {
    background: var(--color-seccion-even);
}

/* =========================================
   hover imágenes – efecto principal
========================================= */

.event-hover img {
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.event-hover:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 2;
}


/* ===========================================================
   titulos y subtitulos
=========================================================== */
.section h2 {
    font-family: 'playfair display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-azul);
    margin-bottom: 1rem;
}

.section p.lead {
    font-family: 'poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

/* ===========================================================
   responsive
=========================================================== */
/*@media (max-width: 992px) {
    #eventos .card img {
        height: 180px;
    }
}*/

@media (max-width: 991.98px) {
    #eventos .card img {
        /*hight: 160px;*/
		aspect-ratio: 4 / 3;		
    }

    .section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 991.98px) {

    .inner-bar .navbar-toggler {
        display: block !important;
    }

    .mobile-menu-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translatey(-50%);

        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;

        width: 78px;              /* ?? ancho fijo ? no se mueve */
        height: 36px;

        padding: 0;
        margin: 0;

        background: none;         /* ? sin fondo */
        border: none;             /* ? sin borde */
        border-radius: 0;         /* ? sin forma elíptica */

        cursor: pointer;
        box-shadow: none;
        outline: none;

        z-index: 10001;
	    width: auto !important;
    }

    .mobile-menu-btn:focus,
    .mobile-menu-btn:active {
        outline: none;
        box-shadow: none;
    }

    .mobile-menu-btn .menu-text {
        font-family: 'poppins', sans-serif;
        font-weight: 600;
        font-size: 0.95rem;
        color: #fff;
        white-space: nowrap;
        order: 1;
    }

    .mobile-menu-btn .hamburger-icon {
        order: 2;
        flex-shrink: 0;
		margin-left: -6px;
    }
}


/* ===========================================================
   scroll correcto con header fijo
=========================================================== */
*[id] {
    scroll-margin-top: calc(var(--topbar-height) + var(--innerbar-height));
}

/* ===========================================================
   sección eventos – limpio, sin conflictos
=========================================================== */

#eventos {
    opacity: 1 !important;
    transform: none !important;
    padding: 0;
}

/* el aire se controla aquí */
#eventos .container {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

/* título */
#eventos h2 {
    font-family: 'montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--color-azul);
    margin-bottom: 3rem !important;
}

/* texto descriptivo */
#eventos p.lead {
    font-family: 'poppins', sans-serif;
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 4rem !important;
}

/* cards */
#eventos .card {
    background: transparent;
    text-align: center;
    margin-bottom: 3rem;
}

/* imagen ? texto */
#eventos .card img {
    display: block;
    width: 100%;
/*    height: 200px;*/
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2.5rem !important;
    aspect-ratio: 4 / 3;
}


/* título card */
#eventos .card h6 {
    font-family: 'montserrat', sans-serif;
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 1rem !important;
}

/* texto card */
#eventos .card p {
    font-family: 'poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}

/* responsive */
@media (max-width: 991.98px) {
    #eventos .container {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    #eventos h2 {
        font-size: 2rem;
        margin-bottom: 2rem !important;
    }

    #eventos p.lead {
        margin-bottom: 3rem !important;
    }

    #eventos .card img {
		aspect-ratio: 4 / 3;
    }
}

/* =========================================
   nav - próximos eventos (final profesional)
========================================= */

.navbar-nav .nav-link {
    position: relative;
}

/* ===== desktop ===== */
@media (min-width: 992px) {

    .navbar-nav .nav-link.nav-highlight {
        color: #f4c95d !important;   /* dorado elegante */
        font-weight: 500;
    }

    /* línea vertical separadora */
    .navbar-nav .nav-link.nav-highlight::after {
        content: "";
        position: absolute;
        right: -14px;
        top: 50%;
        transform: translatey(-50%);
        width: 1px;
        height: 24px;
        background-color: rgba(244, 201, 93, 0.6);
    }

    .navbar-nav .nav-link.nav-highlight:hover {
        color: #ffd978 !important;
    }
}

/* ===== móvil ===== */
@media (max-width: 991.98px) {

    .navbar-nav .nav-link.nav-highlight {
        color: var(--color-azul) !important;
        font-weight: 600;
    }

    .navbar-nav .nav-link.nav-highlight::after {
        display: none;
    }
}

/*ection {
    min-height: calc(100vh - (var(--topbar-height) + var(--innerbar-height)) + 2px);
  display: flex;
    align-items: center;
}*/

.section {
    min-height: calc(100vh - (var(--topbar-height) + var(--innerbar-height)));
    display: block; /* ? clave */
    scroll-snap-align: start;	
}


.section > .container {
    width: 100%;
}
.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    contain: layout paint;
}
html {
    scroll-behavior: smooth;
}

.section,
.hero-video {
    will-change: transform;
}

/* ===========================================================
   sección próximos eventos – igual que eventos
   (solo cambia el contenido, no el fondo)
=========================================================== */

#proximos-eventos {
    opacity: 1 !important;
    transform: none !important;
    padding: 0;
}

/* espaciado interno */
#proximos-eventos .container {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

/* título */
#proximos-eventos h2 {
    font-family: 'montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--color-azul);
    margin-bottom: 3rem !important;
}

/* texto descriptivo */
#proximos-eventos p.lead {
    font-family: 'poppins', sans-serif;
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 4rem !important;
}

/* cards */
#proximos-eventos .card {
    background: transparent;
    text-align: center;
    margin-bottom: 3rem;
}

/* imagen */
#proximos-eventos .card img {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2.5rem !important;
    aspect-ratio: 4 / 3;
}

/* título card */
#proximos-eventos .card h6 {
    font-family: 'montserrat', sans-serif;
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 1rem !important;
}

/* texto card */
#proximos-eventos .card p {
    font-family: 'poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}

/* responsive */
@media (max-width: 991.98px) {
    #proximos-eventos .container {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    #proximos-eventos h2 {
        font-size: 2rem;
        margin-bottom: 2rem !important;
    }

    #proximos-eventos p.lead {
        margin-bottom: 3rem !important;
    }

    #proximos-eventos .card img {
        aspect-ratio: 4 / 3;
    }
}

/* =========================================
   badge fecha – próximos eventos
========================================= */

#proximos-eventos .event-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* badge */
#proximos-eventos .event-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(44, 44, 84, 0.92); /* azul anchor */
    color: #fff;
    font-family: 'poppins', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    z-index: 2;
    text-transform: uppercase;
}

/* ajuste hover (se integra con el zoom existente) */
#proximos-eventos .event-image-wrapper img {
    transition: transform 0.35s ease, filter 0.35s ease;
}


/* ===========================================================
   hamburguesa móvil – línea fina, blanca
=========================================================== */

@media (max-width: 991.98px) {

    .hamburger-icon {
        position: relative;
        width: 24px;
        height: 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger-icon span {
        display: block;
        height: 2px;               /* línea fina */
        width: 100%;
        background-color: #fff;   /* blanco */
        border-radius: 2px;
        transition: all 0.35s ease;
    }

    /* ===== estado abierto ===== */
    .mobile-menu-btn.is-open .hamburger-icon span:nth-child(1),
    .mobile-menu-btn.is-open .hamburger-icon span:nth-child(3) {
        opacity: 0;
        transform: scalex(0);
    }

}

/@media (max-width: 991.98px) {

    .mobile-menu-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translatey(-50%);
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .mobile-menu-btn:focus,
    .mobile-menu-btn:active {
        outline: none;
        box-shadow: none;
    }

    .menu-inner {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu-text {
        color: #fff;
        font-family: 'poppins', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        line-height: 1;
        white-space: nowrap;
    }

    .hamburger-icon {
        width: 22px;
        height: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger-icon span {
        height: 2px;
        width: 100%;
        background: #fff;
        border-radius: 2px;
    }
}
@media (max-width: 991.98px) {

    /* sacamos el botón del contexto tipográfico */
    .mobile-menu-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translatey(-50%);

        padding: 0;
        border: 0;
        background: none;
        line-height: normal;      /* ? clave */
    }

    .mobile-menu-btn:focus,
    .mobile-menu-btn:active {
        outline: none;
        box-shadow: none;
    }

    /* contenedor real del layout */
    .menu-btn-inner {
        display: flex;
        align-items: center;
        gap: 10px;
        height: auto;
    }

    .menu-text {
        color: #fff;
        font-family: 'poppins', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        white-space: nowrap;
        line-height: 1;           /* ? clave */
    }

    .hamburger-icon {
        width: 22px;
        height: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger-icon span {
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }
}
@media (max-width: 991.98px) {

    /* evita cualquier desplazamiento al clicar */
    .mobile-menu-btn,
    .mobile-menu-btn * {
        box-sizing: border-box;
    }

    .mobile-menu-btn:active,
    .mobile-menu-btn:focus,
    .mobile-menu-btn:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        transform: translatey(-50%) translatex(0) !important;
    }

    /* previene highlight táctil en móvil */
    .mobile-menu-btn {
        -webkit-tap-highlight-color: transparent;
    }
}
@media (max-width: 991.98px) {

    /* ancho fijo = cero saltos */
    .mobile-menu-btn {
        width: 92px;               /* ? clave */
        justify-content: flex-end;
    }

    .menu-btn-inner {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* blindaje total contra estados activos */
    .mobile-menu-btn,
    .mobile-menu-btn:active,
    .mobile-menu-btn:focus,
    .mobile-menu-btn:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        transform: translatey(-50%) !important;
    }
}
@media (max-width: 991.98px) {

    .offcanvas.offcanvas-end {
        top: calc(var(--topbar-height) + var(--innerbar-height)) !important;
        height: calc(100vh - (var(--topbar-height) + var(--innerbar-height))) !important;
    }

}
/* ===========================================================
   footer – the anchor
=========================================================== */

.anchor-footer {
    background-color: var(--color-azul);
    color: #ffffff;
}

.anchor-footer h5,
.anchor-footer h6 {
    font-family: 'montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.anchor-footer p {
    font-family: 'poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.anchor-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.anchor-footer ul li {
    margin-bottom: 0.5rem;
    font-family: 'poppins', sans-serif;
    font-size: 0.9rem;
}

.anchor-footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.anchor-footer a:hover {
    color: #f4c95d; /* dorado elegante */
}

/* redes */
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* responsive */
@media (max-width: 991.98px) {
    .anchor-footer {
        text-align: center;
    }

    .footer-socials {
        align-items: center;
    }
}
/* =========================================
   botón entrada – próximos eventos
========================================= */

.event-ticket-btn {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 10px 18px;

    font-family: 'poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;

    color: #2c2c54;
    background-color: transparent;
    border: 1.5px solid #2c2c54;
    border-radius: 6px;

    text-decoration: none;
    transition: all 0.3s ease;
}

.event-ticket-btn:hover {
    background-color: #2c2c54;
    color: #fff;
}



/* =========================================
   botones acceso entradas (cta)
========================================= */

/* =========================================
   botones acceso entradas – ajuste fino
========================================= */

/* =========================================
   botones acceso entradas – final
========================================= */

.cinema-ticket {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    height: 42px;
    min-width: 160px;

    font-family: 'poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;

    text-decoration: none;
    color: var(--color-azul);
    background-color: #ffffff;

    border: 1.4px solid rgba(44,44,84,0.4);
    border-radius: 8px;

    transition: all 0.2s ease;
    cursor: pointer;
}

/* hover */
.cinema-ticket:hover {
    background-color: #f6f7fb;
    border-color: var(--color-azul);
    transform: translatey(-1px);
}

/* icono */
.ticket-icon {
    font-size: 1.1rem;
}

/* texto */
.ticket-label {
    white-space: nowrap;
}





/* =========================================
   botones entrada – estilo cine
========================================= */
.ticket-buttons-cinema {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.2rem;
}

/* texto principal */
.ticket-main {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* subtexto */
.ticket-sub {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* mobile */
@media (max-width: 576px) {
    .ticket-buttons-cinema {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .cinema-ticket {
        width: 100%;
    }
}


/* ===============================
   entrada tipo concierto
================================ */

/* ===============================
   TICKET – BASE (DESKTOP)
================================ */

.ticket-anchor {
  display: flex;
  width: 100%;
  max-width: 1100px;
  height: 420px;
  background: #fff;
  border: 2px dashed #2c2c54;
  border-radius: 16px;
  overflow: hidden;
  font-family: 'poppins', sans-serif;
}

/* IZQUIERDA */
.ticket-left {
  position: relative;
  width: 65%;
  overflow: hidden;
}

.ticket-left img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.ticket-overlay {
  position: absolute;
  inset: 0;
  padding: 32px;
  color: #fff;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.65)
  );
  display: flex;
  flex-direction: column;
}

/* Marca */
.ticket-brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
}

/* Evento */
.ticket-event {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
}

.ticket-sub {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 24px;
}

/* DATOS */
.ticket-details {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 18px;
}

.ticket-details .full {
  grid-column: span 2;
}

.ticket-details strong {
  font-size: 0.75rem;
  opacity: 0.85;
}

.ticket-details span {
  font-size: 1.05rem;
  font-weight: 600;
}

/* DERECHA */
.ticket-qr {
  width: 35%;
  padding: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}



@media print {

  body * {
    visibility: hidden;
  }

  #tickettodownload,
  #tickettodownload * {
    visibility: visible;
  }

  #tickettodownload {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
}

.footer-socials a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-socials i {
    font-size: 1.1rem;
}

.modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
}
.modal-dialog {
  margin-top: 2rem; /* baja el modal un poco */
  position: relative; /* para que el botón pueda estar encima */
  z-index: 1050; /* debe estar sobre el fondo */
}

.modal-header .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1060; /* encima del modal */
}
/* ==========================
   FIX MODALES BOOTSTRAP
   ========================== */

/* Header siempre por debajo */
.header-container {
    z-index: 1000;
}

/* Backdrop */
.modal-backdrop {
    z-index: 1980 !important;
}

/* Modal por encima del backdrop */
.modal {
    z-index: 1990 !important;
}

/* Header del modal (la X) siempre visible */
.modal-header {
    position: relative;
    z-index: 2000;
}

@media (max-width: 991.98px) {

  .navbar-brand img.logo {
    height: 44px !important;
    width: auto;
  }

  .navbar-brand {
    font-size: 0.95rem;
  }
}

.confirmation-message {
  max-width: 280px;
}

.confirmation-message h4 {
  color: #1f2d5c;
  font-weight: 600;
}

.confirmation-message p {
  font-size: 0.95rem;
  color: #333;
}


/* =========================================================
   TICKET RESULT MODAL – BLOQUE FINAL LIMPIO
========================================================= */

#ticketResultModal .ticket-anchor {
  display: flex;
  width: 100%;
  max-width: 1100px;
  height: 420px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 2px dashed #2c2c54;
}

/* ================= LEFT ================= */

#ticketResultModal .ticket-left {
  position: relative;
  width: 65%;
  overflow: hidden;
}

#ticketResultModal .ticket-left img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
#ticketResultModal .ticket-overlay {
  position: absolute;
  inset: 0;
  padding: 32px;
  color: #fff;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.65)
  );

  display: flex;
  flex-direction: column;
}

/* Header */
#ticketResultModal .ticket-brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

#ticketResultModal .ticket-event {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
}

#ticketResultModal .ticket-sub {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 14px;
}

/* ================= DETAILS ================= */

#ticketResultModal .ticket-details {
  margin-top: 0px; /* CLAVE: empuja datos hacia abajo SIN romper */
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 18px;
}

/* Día / Hora / Lugar ? ancho completo */
#ticketResultModal .ticket-details .full {
  grid-column: span 2;
}

/* Labels */
#ticketResultModal .ticket-details strong {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

/* Valores */
#ticketResultModal .ticket-details span {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ================= RIGHT ================= */

#ticketResultModal .ticket-qr {
  width: 35%;
  padding: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#ticketResultModal .ticket-brand {
  color: #ffffff;
  opacity: 0.9;
}


/* =========================================================
   FIX DEFINITIVO TICKET RESULT – MÓVIL
   (sin romper desktop)
========================================================= */

@media (max-width: 768px) {

  /* ?? Anulamos el grid genérico del ticket */
  .ticket-anchor {
    display: block !important;
  }

  /* ================= MODAL TICKET ================= */

  #ticketResultModal .ticket-anchor {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* Imagen arriba */
  #ticketResultModal .ticket-left {
    width: 100% !important;
    height: 300px !important;
  }

  #ticketResultModal .ticket-left img {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Overlay */
  #ticketResultModal .ticket-overlay {
    padding: 20px !important;
  }

  #ticketResultModal .ticket-brand {
    color: #ffffff !important;
    opacity: 1 !important;
  }

  #ticketResultModal .ticket-event {
    font-size: 24px !important;
  }

  #ticketResultModal .ticket-sub {
    font-size: 14px !important;
    margin-bottom: 16px !important;
  }

  /* Datos en columna */
  #ticketResultModal .ticket-details {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
    margin-top: 12px !important;
  }

  #ticketResultModal .ticket-details > div {
    grid-column: span 1 !important;
  }

  #ticketResultModal .ticket-details strong {
    font-size: 0.75rem !important;
  }

  #ticketResultModal .ticket-details span {
    font-size: 0.95rem !important;
  }

  /* Parte derecha pasa abajo */
  #ticketResultModal .ticket-qr {
    width: 100% !important;
    border-left: none !important;
    border-top: 2px dashed #2c2c54;
    padding: 24px !important;
  }

  .confirmation-message {
    max-width: 100% !important;
    text-align: center;
  }
}


/* ===============================
   FIX REAL TICKET – MOBILE
================================ */
@media (max-width: 768px) {

  /* El contenedor debe crecer */
  .ticket-anchor {
    height: auto !important;
  }

  /* La imagen ya NO puede ser absoluta */
  .ticket-left {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Imagen pasa a ser normal */
  .ticket-left img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Overlay deja de estar flotando */
  .ticket-overlay {
    position: relative !important;
    inset: unset !important;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.85)
    );
  }

  /* Datos visibles y en columna */
  .ticket-details {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 12px !important;
    margin-top: 16px !important;
  }

  .ticket-details .full {
    grid-column: span 1 !important;
  }

  /* Parte derecha abajo */
  .ticket-qr {
    width: 100% !important;
    border-left: none !important;
    border-top: 2px dashed #2c2c54;
  }
}

/* =====================================================
   SOLUCIÓN FINAL REAL – MÓVIL
   Los datos NO se pierden
===================================================== */
@media (max-width: 768px) {

  #ticketResultModal .ticket-left {
    height: auto !important;
  }

  #ticketResultModal .ticket-overlay {
    position: relative !important;
    max-height: 300px;
    overflow-y: auto;
  }

}
.ticket-type {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 6px;
  opacity: 0.9;
}

/* =========================================
   HOVER MENÚ PRINCIPAL (DESKTOP + MÓVIL)
========================================= */

/* Desktop */
@media (min-width: 992px) {
  .navbar-nav > .nav-item > .nav-link:hover {
    color: #F0DDB2 !important;
  }
}

/* Móvil (offcanvas) */
@media (max-width: 991.98px) {
  .offcanvas .nav-link:hover {
    color: #F0DDB2 !important;
  }
}
