﻿:root {
    --tk-bg: #f5f7fb;
    --tk-dark: #09111f;
    --tk-navy: #0f1e33;
    --tk-blue: #3366ff;
    --tk-card: #ffffff;
    --tk-muted: #6b7280;
    --tk-line: #e5e7eb;
    --tk-danger: #dc2626;
    --tk-ok: #16a34a;
    --tk-warn: #f59e0b;
    --tk-radius: 24px;
    --tk-shadow: 0 18px 45px rgba(15,30,51,.10);
}

.ticketera-page {
    background: var(--tk-bg);
    min-height: 100vh;
    color: #111827;
    padding-top: 24px;
    padding-bottom: 60px;
}

.ticketera-shell {
    width: min(1220px,calc(100% - 32px));
    margin: 0 auto;
}

.tk-hero {
    background: radial-gradient(circle at top left,rgba(51,102,255,.30),transparent 32%),linear-gradient(135deg,#09111f,#10233d);
    border-radius: 34px;
    padding: 44px;
    color: #fff;
    box-shadow: var(--tk-shadow);
    overflow: hidden;
    position: relative;
}

    .tk-hero:after {
        content: "";
        position: absolute;
        right: -90px;
        top: -90px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
    }

    .tk-hero h1 {
        font-size: clamp(2rem,4vw,4.2rem);
        font-weight: 900;
        letter-spacing: -.06em;
        line-height: 1;
        margin: 0 0 14px;
    }

    .tk-hero p {
        color: rgba(255,255,255,.78);
        max-width: 760px;
        font-size: 1.08rem;
        line-height: 1.7;
        margin: 0 0 26px;
    }

.tk-top-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tk-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-weight: 800;
    font-size: .86rem;
}

.tk-filter {
    margin-top: -36px;
    position: relative;
    z-index: 3;
    background: #fff;
    border: 1px solid var(--tk-line);
    border-radius: 28px;
    box-shadow: var(--tk-shadow);
    padding: 22px;
}

.tk-grid-filter {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.tk-field label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
    font-weight: 900;
    margin-bottom: 6px;
    display: block;
}

.tk-input, .tk-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 0 14px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    outline: none;
}

    .tk-input:focus, .tk-select:focus {
        border-color: var(--tk-blue);
        box-shadow: 0 0 0 4px rgba(51,102,255,.10);
    }

.tk-btn {
    min-height: 46px;
    border: none;
    border-radius: 16px;
    padding: 0 18px;
    background: linear-gradient(135deg,#3366ff,#1d4ed8);
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 12px 24px rgba(51,102,255,.24);
    cursor: pointer;
    text-decoration: none;
}

    .tk-btn:hover {
        color: #fff;
        filter: brightness(1.04);
    }

.tk-btn-soft {
    background: #fff;
    color: #0f1e33;
    border: 1px solid #dbe3ee;
    box-shadow: none;
}

    .tk-btn-soft:hover {
        color: #0f1e33;
        background: #f8fafc;
    }

.tk-btn-danger {
    background: linear-gradient(135deg,#ef4444,#b91c1c);
}

.tk-section-title {
    margin: 34px 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

    .tk-section-title h2 {
        font-weight: 900;
        letter-spacing: -.04em;
        margin: 0;
        color: var(--tk-navy);
    }

    .tk-section-title span {
        color: var(--tk-muted);
        font-weight: 700;
    }

.tk-events-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}

.tk-card {
    background: #fff;
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-radius);
    box-shadow: 0 12px 30px rgba(15,30,51,.06);
    overflow: hidden;
    transition: .22s ease;
}

    .tk-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--tk-shadow);
    }

.tk-card-img {
    height: 170px;
    background: linear-gradient(135deg,#dbeafe,#eff6ff);
    position: relative;
    overflow: hidden;
}

    .tk-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .tk-card-img .tk-fallback {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        color: rgba(15,30,51,.18);
    }

.tk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tk-badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.tk-badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.tk-badge-green {
    background: #dcfce7;
    color: #15803d;
}

.tk-card-body {
    padding: 18px;
}

.tk-card h3 {
    font-size: 1.14rem;
    line-height: 1.25;
    font-weight: 900;
    margin: 10px 0;
    color: #111827;
}

.tk-meta {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
    color: #64748b;
    font-weight: 700;
    font-size: .92rem;
}

    .tk-meta i {
        width: 18px;
        color: #1d4ed8;
    }

.tk-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--tk-line);
    padding-top: 14px;
}

.tk-price {
    font-size: 1.2rem;
    font-weight: 950;
    color: #0f1e33;
}

.tk-detail-layout {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 24px;
    align-items: start;
}

.tk-panel {
    background: #fff;
    border: 1px solid var(--tk-line);
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(15,30,51,.06);
    padding: 24px;
}

    .tk-panel h2, .tk-panel h3 {
        font-weight: 900;
        letter-spacing: -.03em;
        color: #0f1e33;
    }

.tk-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px dashed #dbe3ee;
    padding: 11px 0;
    font-weight: 800;
}

    .tk-summary-row span:first-child {
        color: #64748b;
    }

.tk-alert {
    border-radius: 18px;
    padding: 14px 16px;
    margin: 14px 0;
    font-weight: 800;
    border: 1px solid transparent;
}

.tk-alert-ok {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.tk-alert-error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.tk-alert-warn {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.tk-ticket {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg,#fff,#f8fafc);
}

.ed-sector-map-card {
    overflow: hidden;
}

.ed-sector-map-media {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #f8fafc;
    overflow: hidden;
    margin-top: 14px;
}

.ed-sector-map-img {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    display: block;
    background: #fff;
}

.ed-sector-map-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 13px;
    color: #64748b;
    font-weight: 800;
    line-height: 1.45;
}

    .ed-sector-map-note i {
        color: #2563eb;
        margin-top: 3px;
    }

.tk-ticket h3 {
    margin: 0 0 8px;
    font-weight: 900;
}

.tk-qr {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    text-align: center;
}

    .tk-qr img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

.tk-state {
    font-weight: 900;
    text-transform: uppercase;
}

    .tk-state.Pagado, .tk-state.Comprado, .tk-state.VALIDO {
        color: var(--tk-ok);
    }

    .tk-state.Pendiente {
        color: var(--tk-warn);
    }

    .tk-state.Rechazado, .tk-state.NO_VALIDO, .tk-state.NO_EXISTE, .tk-state.YA_USADO {
        color: var(--tk-danger);
    }

@media(max-width:1000px) {
    .tk-grid-filter {
        grid-template-columns: 1fr 1fr
    }

    .tk-events-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .tk-detail-layout {
        grid-template-columns: 1fr
    }

    .tk-hero {
        padding: 32px
    }
}

@media(max-width:640px) {
    .tk-grid-filter, .tk-events-grid {
        grid-template-columns: 1fr
    }

    .tk-ticket {
        grid-template-columns: 1fr
    }

    .tk-hero {
        border-radius: 24px;
        padding: 26px
    }

    .tk-filter {
        margin-top: -20px
    }

    .ticketera-shell {
        width: min(100% - 22px,1220px)
    }
}

/* =========================================================
   EventoDetalle PRO - pantalla pública de venta
   Compatible con ASP.NET Web Forms / .NET Framework 4.8
   ========================================================= */
.tk-detail-pro-page {
    padding-top: 22px;
}

.ed-wrap {
    display: block;
}

.ed-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 900;
}

    .ed-breadcrumb a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #1d4ed8;
        text-decoration: none;
    }

    .ed-breadcrumb strong {
        color: #0f172a;
    }

.ed-hero-card {
    position: relative;
    min-height: 430px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(15,30,51,.16);
    background: #0f1e33;
    margin-bottom: 24px;
}

.ed-hero-media {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,#101d32,#1d4ed8);
}

.ed-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

.ed-hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    color: rgba(255,255,255,.82);
    background: radial-gradient(circle at 30% 20%,rgba(51,102,255,.45),transparent 34%),linear-gradient(135deg,#09111f,#1e3a8a);
}

    .ed-hero-fallback i {
        font-size: 4rem;
        opacity: .55;
    }

    .ed-hero-fallback span {
        font-size: 4.8rem;
        font-weight: 950;
        letter-spacing: -.08em;
    }

.ed-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(5,11,20,.92) 0%,rgba(5,11,20,.70) 44%,rgba(5,11,20,.18) 100%);
}

.ed-hero-content {
    position: relative;
    z-index: 2;
    padding: 46px;
    max-width: 850px;
    color: #fff;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ed-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ed-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.ed-badge-primary {
    background: rgba(219,234,254,.16);
    color: #dbeafe;
    border-color: rgba(219,234,254,.22);
}

.ed-badge-ok {
    background: rgba(34,197,94,.16);
    color: #dcfce7;
    border-color: rgba(34,197,94,.25);
}

.ed-badge-danger {
    background: rgba(239,68,68,.16);
    color: #fee2e2;
    border-color: rgba(239,68,68,.25);
}

.ed-badge-muted {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

.ed-badge-gold {
    background: rgba(245,158,11,.17);
    color: #fef3c7;
    border-color: rgba(245,158,11,.28);
}

.ed-hero-content h1 {
    font-size: clamp(2.05rem,4.5vw,4.9rem);
    line-height: .98;
    margin: 0 0 15px;
    font-weight: 950;
    letter-spacing: -.075em;
    max-width: 920px;
}

.ed-hero-content p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    font-weight: 700;
    font-size: 1.05rem;
}

.ed-hero-facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    max-width: 780px;
}

    .ed-hero-facts div {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 10px;
        align-items: center;
        padding: 14px 16px;
        border-radius: 20px;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.14);
        backdrop-filter: blur(8px);
    }

    .ed-hero-facts i {
        grid-row: 1/3;
        color: #93c5fd;
        font-size: 1.1rem;
    }

    .ed-hero-facts span {
        font-size: .72rem;
        color: rgba(255,255,255,.62);
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .ed-hero-facts strong {
        color: #fff;
        font-weight: 950;
        line-height: 1.25;
    }

.ed-content-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 360px;
    gap: 24px;
    align-items: start;
}

.ed-main-stack {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.ed-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(15,30,51,.07);
    padding: 24px;
}

.ed-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ed-eyebrow {
    display: block;
    color: #3366ff;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .72rem;
    margin-bottom: 5px;
}

.ed-section-head h2, .ed-summary-top h2, .ed-trust-card h3 {
    margin: 0;
    color: #0f1e33;
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.ed-info-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.ed-info-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: start;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    background: linear-gradient(180deg,#fff,#f8fafc);
    padding: 16px;
    min-width: 0;
}

    .ed-info-item i {
        grid-row: 1/3;
        width: 42px;
        height: 42px;
        border-radius: 16px;
        background: #dbeafe;
        color: #1d4ed8;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ed-info-item span {
        color: #64748b;
        font-size: .75rem;
        font-weight: 950;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .ed-info-item strong {
        font-weight: 900;
        color: #111827;
        line-height: 1.3;
        word-break: break-word;
    }

.ed-description {
    border-top: 1px dashed #dbe3ee;
    padding-top: 18px;
}

    .ed-description h3 {
        margin: 0 0 8px;
        font-weight: 950;
        color: #0f1e33;
        letter-spacing: -.03em;
    }

    .ed-description p {
        margin: 0;
        color: #475569;
        line-height: 1.8;
        font-weight: 650;
    }

.ed-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: .82rem;
    font-weight: 950;
    white-space: nowrap;
}

.ed-empty-state {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 22px;
    padding: 18px;
    color: #334155;
}

    .ed-empty-state i {
        font-size: 1.35rem;
        color: #f59e0b;
        margin-top: 2px;
    }

    .ed-empty-state strong {
        display: block;
        font-weight: 950;
        margin-bottom: 4px;
    }

    .ed-empty-state span {
        display: block;
        color: #64748b;
        font-weight: 700;
    }

.ed-ticket-tier {
    display: grid;
    grid-template-columns: minmax(0,1fr) 180px auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg,#ffffff,#f8fafc);
    margin-bottom: 12px;
    transition: .18s ease;
}

    .ed-ticket-tier:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(15,30,51,.08);
        border-color: #bfdbfe;
    }

.ed-ticket-main {
    min-width: 0;
}

.ed-tier-name {
    display: block;
    font-weight: 950;
    color: #0f172a;
    font-size: 1.05rem;
    margin-bottom: 5px;
    word-break: break-word;
}

.ed-ticket-main small, .ed-ticket-price small, .ed-ticket-price span {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: .82rem;
}

.ed-ticket-price {
    text-align: right;
}

    .ed-ticket-price strong {
        display: block;
        color: #0f1e33;
        font-weight: 950;
        font-size: 1.35rem;
        line-height: 1.1;
        margin: 2px 0;
    }

.ed-tier-btn {
    min-height: 44px;
    border-radius: 16px;
    padding: 0 16px;
    background: linear-gradient(135deg,#3366ff,#1d4ed8);
    color: #fff;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(51,102,255,.22);
    white-space: nowrap;
    text-decoration: none;
}

    .ed-tier-btn:hover {
        color: #fff;
        filter: brightness(1.04);
    }

.ed-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 20px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 800;
    line-height: 1.45;
}

    .ed-note i {
        margin-top: 2px;
    }

.ed-sidebar {
    position: sticky;
    top: 106px;
    display: grid;
    gap: 18px;
}

.ed-summary-card {
    padding: 22px;
}

.ed-summary-top {
    margin-bottom: 14px;
}

    .ed-summary-top h2 {
        font-size: 1.25rem;
        line-height: 1.2;
    }

.ed-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #dbe3ee;
    font-weight: 900;
}

    .ed-summary-row span {
        color: #64748b;
    }

    .ed-summary-row strong {
        text-align: right;
        color: #0f172a;
    }

.ed-countdown {
    margin: 18px 0;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg,#09111f,#10233d);
    color: #fff;
}

    .ed-countdown > span {
        display: block;
        color: rgba(255,255,255,.70);
        font-weight: 900;
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 10px;
    }

    .ed-countdown div {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr auto;
        gap: 5px;
        align-items: end;
    }

    .ed-countdown strong {
        font-size: 1.55rem;
        line-height: 1;
        font-weight: 950;
        letter-spacing: -.04em;
    }

    .ed-countdown small {
        color: rgba(255,255,255,.62);
        font-weight: 900;
        margin-bottom: 2px;
    }

.ed-full-btn {
    width: 100%;
    margin-top: 10px;
}

.ed-disabled-btn {
    background: #e5e7eb !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.ed-copy-msg {
    display: block;
    text-align: center;
    min-height: 20px;
    color: #16a34a;
    font-weight: 900;
    font-size: .84rem;
    margin-top: 8px;
}

.ed-trust-card {
    padding: 20px;
}

    .ed-trust-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .ed-trust-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 10px;
    }

    .ed-trust-card li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: #475569;
        font-weight: 850;
        line-height: 1.35;
    }

    .ed-trust-card i {
        color: #1d4ed8;
        margin-top: 2px;
    }

@media(max-width:1100px) {
    .ed-content-grid {
        grid-template-columns: 1fr
    }

    .ed-sidebar {
        position: static
    }

    .ed-hero-content {
        padding: 36px
    }

    .ed-hero-facts {
        grid-template-columns: 1fr 1fr 1fr
    }
}

@media(max-width:760px) {
    .ed-hero-card {
        min-height: 560px;
        border-radius: 26px
    }

    .ed-hero-content {
        min-height: 560px;
        padding: 26px
    }

    .ed-hero-overlay {
        background: linear-gradient(180deg,rgba(5,11,20,.34) 0%,rgba(5,11,20,.90) 58%,rgba(5,11,20,.98) 100%)
    }

    .ed-hero-facts, .ed-info-grid {
        grid-template-columns: 1fr
    }

    .ed-ticket-tier {
        grid-template-columns: 1fr
    }

    .ed-ticket-price {
        text-align: left
    }

    .ed-tier-btn {
        width: 100%
    }

    .ed-section-head {
        display: grid
    }

    .ed-stock-pill {
        justify-self: start
    }

    .ed-countdown div {
        grid-template-columns: 1fr auto 1fr auto 1fr auto
    }

    .ed-card {
        padding: 19px;
        border-radius: 24px
    }
}

@media(max-width:460px) {
    .ed-hero-content h1 {
        font-size: 2.1rem
    }

    .ed-hero-facts div {
        padding: 13px
    }

    .ed-breadcrumb {
        font-size: .82rem
    }

    .ed-countdown strong {
        font-size: 1.35rem
    }
}
