/* ══════════════════════════════════════════════════════════════════════
   tickets-custom.css — estilos propios del storefront de tickets (no
   confundir con assets/css/style.css, clonado tal cual de site/public).
   Cubre: hero slider del home, selector de ciudad, grid de eventos
   (index.php + relacionados en evento.php) y la página de detalle de
   evento (evento.php). Todo pensado para el fondo negro (auth-noir).
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero Banner (slider) — ver ctos/public/mng-tickets-slides.php ── */
.ticket-hero-wrap { padding: 28px 0 8px; }
.ticket-hero-slider .owl-stage-outer,
.ticket-hero-slider .owl-item { border-radius: 20px; }
.ticket-hero-slide {
    position: relative;
    aspect-ratio: 21 / 9;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #111;
}
.ticket-hero-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 4vw, 48px);
    background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.ticket-hero-slide-overlay h2 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 34px);
    margin: 0 0 6px;
    max-width: 640px;
}
.ticket-hero-slide-overlay p {
    color: rgba(255,255,255,.82);
    font-size: clamp(13px, 1.4vw, 16px);
    max-width: 560px;
    margin: 0 0 16px;
}
.ticket-hero-slide-overlay .btn {
    align-self: flex-start;
    background: #fb682a;
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}
.ticket-hero-slide-overlay .btn:hover { background: #fe3618; color: #fff; }
.ticket-hero-slider .owl-nav button.owl-prev,
.ticket-hero-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.45) !important;
    color: #fff !important;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
}
.ticket-hero-slider .owl-nav button.owl-prev { left: 14px; }
.ticket-hero-slider .owl-nav button.owl-next { right: 14px; }
.ticket-hero-slider .owl-dots { position: absolute; bottom: 14px; left: 0; right: 0; }
.ticket-hero-slider .owl-dot span { background: rgba(255,255,255,.4) !important; }
.ticket-hero-slider .owl-dot.active span { background: #fb682a !important; }

/* ── Selector de ciudad ── */
.ticket-city-filter { padding: 22px 0 0; }
.ticket-city-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; margin: 0 8px 8px 0;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.75);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ticket-city-pill:hover { background: rgba(255,255,255,.12); color: #fff; }
.ticket-city-pill.active { background: #fb682a; border-color: #fb682a; color: #fff; }

/* ── Grid / card de evento — reutilizado en index.php (grid principal) y
     evento.php (relacionados) vía includes/event-card.php ── */
.ticket-events-grid .ticket-event-card,
.ticket-related-grid .ticket-event-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(24,24,27,.8); /* casi sólido — máx. 20% de transparencia */
    border: 1px solid rgba(255,255,255,.08);
    height: 100%;
    text-decoration: none;
    display: block;
    transition: transform .15s ease, border-color .15s ease;
}
.ticket-event-card:hover { transform: translateY(-3px); border-color: rgba(251,104,42,.4); }
.ticket-event-card .ticket-event-thumb {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #1b1b1e;
}
.ticket-event-card .ticket-event-body { padding: 14px 16px 16px; }
.ticket-event-card .ticket-event-city {
    display: inline-block;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    color: #fb682a; margin-bottom: 6px;
}
.ticket-event-card h3 {
    color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3;
    margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ticket-event-card .ticket-event-date {
    color: rgba(255,255,255,.55); font-size: 12.5px; margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   Página de detalle de evento (evento.php)
   ══════════════════════════════════════════════════════════════════════ */

.tkd-hero-wrap { padding-top: 24px; overflow-x: hidden; }
.tkd-hero {
    /* Sin aspect-ratio a propósito: con eso, cualquier contenido más alto
       que la caja (título a 2 líneas, 3 badges, etc.) se recortaba arriba
       (overflow:hidden + .tkd-hero-inner con height:100%). Con min-height
       nomás, la caja crece con el contenido — nunca corta nada. */
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #111;
    border-radius: 20px;
    overflow: hidden;
}
.tkd-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.15) 100%);
}
.tkd-hero-inner {
    position: relative; z-index: 1;
    min-height: 320px;
    padding: 140px 28px 28px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.tkd-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tkd-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.12); color: #fff;
    padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
    backdrop-filter: blur(4px);
}
.tkd-badge.tkd-badge-brand { background: #fb682a; }
.tkd-hero h1 {
    color: #fff; font-weight: 800; font-size: clamp(24px, 4vw, 40px);
    margin: 0 0 8px; max-width: 820px;
}
/* Mobile-first: 3 filas — Fecha / (Ingreso+Show) / Lugar. .tkd-hero-meta-row
   agrupa Ingreso+Show en su propia fila en móvil; en desktop se "disuelve"
   (display:contents) para que sus 2 items vuelvan a ser parte de la misma
   fila que Fecha/Lugar, como una sola línea horizontal. */
.tkd-hero-meta { display: flex; flex-direction: column; gap: 14px; color: rgba(255,255,255,.85); font-size: 14px; }
.tkd-hero-meta-row { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.tkd-hero-meta-item { display: flex; align-items: center; gap: 10px; }
@media (min-width: 992px) {
    .tkd-hero-meta { flex-direction: row; flex-wrap: wrap; gap: 26px; }
    .tkd-hero-meta-row { display: contents; }
}
.tkd-hero-meta-item i { color: #fb682a; font-size: 1.7rem; flex-shrink: 0; }
.tkd-hero-meta-item div { display: flex; flex-direction: column; line-height: 1.25; }
.tkd-hero-meta-item span {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: rgba(255,255,255,.55);
}
.tkd-hero-meta-item b { font-size: 14.5px; font-weight: 700; color: #fff; }

/* Amenities del evento — card propia, justo después de "Sobre el evento" */
.tkd-amenities-row { display: flex; flex-wrap: wrap; gap: 18px; }
.tkd-amenity { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; text-align: center; }
.tkd-amenity i {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.tkd-amenity span { font-size: 10.5px; color: rgba(255,255,255,.7); line-height: 1.2; }

.tkd-card {
    background: rgba(24,24,27,.8);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.tkd-card h2 {
    color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 14px;
    display: flex; align-items: center; gap: 8px;
}
.tkd-card h2 i { color: #fb682a; }
.tkd-desc { color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.7; }
.tkd-desc img { max-width: 100%; border-radius: 8px; }

.tkd-venue-map {
    width: 100%; aspect-ratio: 16/9; border-radius: 12px; object-fit: cover;
    background: #1b1b1e; margin-bottom: 14px;
}
.tkd-venue-name { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tkd-venue-address { color: rgba(255,255,255,.6); font-size: 13.5px; margin-bottom: 14px; }
.tkd-venue-infobox { margin-bottom: 12px; }
.tkd-venue-infobox-label {
    display: block; color: #fb682a; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px;
}
.tkd-venue-infobox-value { color: #fff; font-size: 14px; font-weight: 600; }
.tkd-maps-btn {
    background: #fb682a; color: #fff; border: 0; border-radius: 999px;
    padding: 10px 16px; font-weight: 700; font-size: 13.5px; margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}
.tkd-maps-btn:hover { background: #fe3618; color: #fff; }

/* Mapa de localidades — plano/SVG del recinto (zonas), separado del mapa
   de ubicación de arriba. Imagen tal cual, sin recorte (object-fit:
   contain) porque suele ser un plano técnico, no una foto. */
.tkd-sitemap {
    width: 100%; max-height: 520px; object-fit: contain;
    border-radius: 12px; background: #0d0d0f; padding: 10px;
}

/* Información de boletería — tabla localidad/etapa/aforo/precio */
.tkd-pricing-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tkd-pricing-table thead th {
    text-align: left; color: #fb682a; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    padding: 0 10px 10px; border-bottom: 1px solid rgba(255,255,255,.12);
    white-space: nowrap;
}
.tkd-pricing-table tbody td {
    padding: 12px 10px; color: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap;
}
.tkd-pricing-table tbody tr:last-child td { border-bottom: 0; }
.tkd-pt-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    margin-right: 8px; flex-shrink: 0;
}

/* Modal de checkout (datos del comprador antes de Wompi) */
.tkd-checkout-modal {
    background: #18181b; color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
}
.tkd-checkout-modal .modal-title { color: #fff; }
.tkd-checkout-modal .form-label { color: rgba(255,255,255,.75); font-size: 13px; }
.tkd-checkout-modal .form-control {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: #fff;
}
.tkd-checkout-modal .form-control::placeholder { color: rgba(255,255,255,.35); }
.tkd-checkout-modal .form-control:focus {
    background: rgba(255,255,255,.08); border-color: #fb682a; color: #fff;
    box-shadow: 0 0 0 3px rgba(251,104,42,.2);
}

/* Botones de elección invitado/cuenta (paso 1 del checkout) */
.tkd-choice-btn {
    display: flex; align-items: center; gap: 14px; text-align: left;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 16px; color: #fff;
    transition: border-color .15s ease, background .15s ease;
}
.tkd-choice-btn:hover { border-color: #fb682a; background: rgba(251,104,42,.08); }
.tkd-choice-btn i { font-size: 1.6rem; color: #fb682a; flex-shrink: 0; }
.tkd-choice-btn b { display: block; font-size: 14.5px; }
.tkd-choice-btn span { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Botón "Comprar boletas" en el hero */
.tkd-hero-buy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fb682a; color: #fff; border: 0; border-radius: 999px;
    padding: 11px 22px; font-weight: 700; font-size: 14px; margin-top: 18px;
    width: fit-content;
}
.tkd-hero-buy-btn:hover { background: #fe3618; color: #fff; }

/* Restricciones — lista con borde izquierdo, mismo espíritu que tickeo.co
   pero en nuestra paleta (rojo tenue en vez de su rojo/negro plano). */
.tkd-restrictions { border-left: 3px solid #ef4444; }
.tkd-restrictions ul { list-style: none; margin: 0; padding: 0; }
.tkd-restrictions li {
    color: rgba(255,255,255,.78); font-size: 14px; padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex; align-items: flex-start; gap: 8px;
}
.tkd-restrictions li:first-child { border-top: 0; }
.tkd-restrictions li::before {
    content: "\2715"; color: #ef4444; font-size: 11px; font-weight: 700;
    line-height: 1.6;
}

/* Categoría del tipo de entrada (Preventa/VIP/General/...) + desglose de precio+servicio */
.tkd-type-category {
    display: inline-block; margin-left: 6px; padding: 1px 8px;
    border-radius: 999px; background: rgba(251,104,42,.15); color: #fb682a;
    font-size: 10px; font-weight: 700; text-transform: uppercase; vertical-align: middle;
}
.tkd-type-fee { color: rgba(255,255,255,.4); font-size: 11.5px; margin-left: 4px; }

/* Botón flotante de WhatsApp */
.tkd-wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 1000;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.tkd-wa-float:hover { background: #1fb355; color: #fff; }
/* Subirlo cuando hay barra fija de compra abajo (móvil), para que no se tapen */
@media (max-width: 991.98px) {
    body:has(.tkd-mobile-buybar) .tkd-wa-float { bottom: 84px; }
}

.tkd-organizer { display: flex; align-items: center; gap: 12px; }
.tkd-organizer img {
    width: 52px; height: 52px; border-radius: 12px; object-fit: cover;
    background: rgba(255,255,255,.08);
}
.tkd-organizer-name { color: #fff; font-weight: 700; font-size: 14.5px; }
.tkd-organizer-meta { color: rgba(255,255,255,.55); font-size: 12.5px; }
.tkd-social { display: flex; gap: 8px; margin-top: 14px; }
.tkd-social a {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; font-size: 15px;
    transition: background .15s ease;
}
.tkd-social a:hover { background: #fb682a; color: #fff; }

/* Flyer del evento — arriba del selector de boletas, misma columna */
.tkd-flyer {
    border-radius: 16px; overflow: hidden; margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.08);
}
.tkd-flyer img { display: block; width: 100%; height: auto; }

/* Selector de boletas — card normal de sidebar en desktop. En móvil (ver
   media query abajo) se convierte en una bandeja deslizable desde abajo,
   100% de ancho, propia (NO .offcanvas de Bootstrap — la versión instalada
   acá no trae la variante responsiva offcanvas-lg, y usarla dejaba las
   boletas ocultas también en desktop). Se abre con .tkd-mobile-buybar. */
/* Sólido, no transparente como el resto de las .tkd-card — el panel de
   compra necesita máxima legibilidad (más aún cuando flota como bandeja
   sobre el resto de la página en móvil). */
.tkd-buy-box { position: relative; background: #18181b; }

@media (max-width: 991.98px) {
    .tkd-buy-box {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
        width: 100%; max-height: 88vh; overflow-y: auto;
        margin: 0; border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform .3s ease;
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
    }
    .tkd-buy-box.tkd-open { transform: translateY(0); }
}

.tkd-buy-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 1049;
    background: rgba(0,0,0,.6);
}
.tkd-buy-backdrop.show { display: block; }

.tkd-buy-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.1); color: #fff; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}

/* Barra fija de compra — solo móvil (<lg), siempre visible al pie de
   pantalla. Ya no muestra total ni finaliza nada acá: solo abre el panel de
   arriba, que es donde vive el total real y el botón "Ir a pagar". */
.tkd-mobile-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #18181b; border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}
.tkd-mobile-buybar .tkd-buy-btn { margin-top: 0; }
/* Deja espacio al pie de la página para que la barra fija no tape el footer/contenido */
body:has(.tkd-mobile-buybar) { padding-bottom: 74px; }
@media (min-width: 992px) {
    body:has(.tkd-mobile-buybar) { padding-bottom: 0; }
}
.tkd-zone { margin-bottom: 18px; }
.tkd-zone-name {
    color: #fb682a; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: 8px;
}
.tkd-type-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 16px; margin-bottom: 10px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    transition: border-color .15s ease, background .15s ease;
}
.tkd-type-row:hover { border-color: rgba(251,104,42,.35); background: rgba(255,255,255,.07); }
.tkd-type-row:last-child { margin-bottom: 0; }
/* Agotado — se atenúa un poco para que no compita visualmente con los disponibles */
.tkd-type-row:has(.tkd-type-stock.out) { opacity: .55; }
.tkd-type-info { min-width: 0; }
.tkd-type-name { color: #fff; font-size: 14px; font-weight: 600; }
.tkd-type-price { color: rgba(255,255,255,.55); font-size: 12.5px; }
.tkd-type-stock { font-size: 11.5px; margin-top: 2px; }
.tkd-type-stock.low { color: #f59e0b; }
.tkd-type-stock.out { color: #ef4444; }
.tkd-type-stock.ok { color: rgba(255,255,255,.4); }
.tkd-qty {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.tkd-qty button {
    width: 28px; height: 28px; border-radius: 8px; border: 0;
    background: #fb682a; color: #fff; font-size: 16px; line-height: 1; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.tkd-qty button:hover:not(:disabled) { background: #fe3618; }
.tkd-qty button:disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.35); }
.tkd-qty input {
    width: 30px; text-align: center; background: transparent; border: 0; color: #fff; font-size: 14px;
}
.tkd-buy-total {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.12);
    color: #fff; font-weight: 700; font-size: 15px;
}
.tkd-buy-btn {
    width: 100%; margin-top: 16px; padding: 13px; border: 0; border-radius: 999px;
    background: #fb682a; color: #fff; font-weight: 700; font-size: 14.5px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tkd-buy-btn:hover { background: #fe3618; color: #fff; }
.tkd-buy-btn:disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }
.tkd-buy-note { color: rgba(255,255,255,.45); font-size: 12px; margin-top: 10px; text-align: center; }

.tkd-empty-tickets { text-align: center; padding: 20px 0; color: rgba(255,255,255,.55); font-size: 13.5px; }
