/* ═══════════════════════════════════════════════════════════════════════
   1000tickets — Web pública — Estilos custom
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
    --bs-secondary-color: #94a3b8;
    --brand:        #f97316;
    --brand-dark:   #ea580c;
    --brand-light:  #fff7ed;
    --bg-dark:      #0f0f1a;
    --bg-card:      #1a1a2e;
    --border:       rgba(255,255,255,.08);
    --text-muted:   #94a3b8;
}

/* ── Base ──────────────────────────────────────────────────────────── */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-dark);
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Colores brand ─────────────────────────────────────────────────── */
.bg-brand      { background: var(--brand) !important; }
.text-brand    { color: var(--brand) !important; }
.border-brand  { border-color: var(--brand) !important; }
.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    transition: opacity .2s, transform .1s;
}
.btn-brand:hover { opacity: .9; color: #fff; transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }
.btn-outline-brand {
    border: 1.5px solid var(--brand);
    color: var(--brand);
    font-weight: 600;
    background: transparent;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ── Navbar ────────────────────────────────────────────────────────── */
.web-navbar {
    background: rgba(15,15,26,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.web-navbar .nav-link {
    color: #cbd5e1 !important;
    font-size: .875rem;
    font-weight: 500;
    transition: color .15s;
}
.web-navbar .nav-link:hover { color: var(--brand) !important; }
.avatar-sm {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.web-navbar .dropdown-menu {
    background: #1e1e32;
    border: 1px solid var(--border);
}
.web-navbar .dropdown-item { color: #cbd5e1; font-size: .875rem; }
.web-navbar .dropdown-item:hover { background: rgba(249,115,22,.1); color: var(--brand); }

/* ── Cards ─────────────────────────────────────────────────────────── */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    border-color: var(--brand);
    color: inherit;
}
.event-card .card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #16213e;
}
.event-card .card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,.1);
}
.event-card .card-body { padding: 1rem; }
.event-card .event-date {
    font-size: .75rem;
    color: var(--brand);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.event-card .event-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: .25rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card .event-place {
    font-size: .8rem;
    color: var(--text-muted);
}
.event-card .event-price {
    font-size: .85rem;
    color: #94a3b8;
}
.event-card .event-price strong {
    font-size: 1rem;
    color: #f1f5f9;
}
.price-tag {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 20px;
}

/* ── Carousel ──────────────────────────────────────────────────────── */
.hero-carousel { position: relative; }
.hero-carousel .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.hero-carousel .carousel-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,26,.9) 30%, rgba(15,15,26,.2) 100%);
}
.hero-carousel .carousel-caption {
    bottom: 2.5rem;
    text-align: left;
    left: 8%;
    right: 8%;
}
.hero-carousel .carousel-caption h3 { font-size: 2rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hero-carousel .carousel-caption p  { font-size: 1rem; opacity: .85; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 5%;
}
.hero-placeholder {
    width: 100%; height: 500px;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 1rem;
}

/* ── Sector card ───────────────────────────────────────────────────── */
.sector-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: border-color .2s;
}
.sector-card:hover { border-color: var(--brand); }
.sector-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

/* ── Plano SVG ─────────────────────────────────────────────────────── */
#planoSvg {
    width: 100%;
    height: auto;
    cursor: crosshair;
    background: #0a0a15;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.seat-web { cursor: pointer; transition: r .1s; }
.seat-web.disponible { fill: #22c55e; }
.seat-web.ocupada    { fill: #374151; cursor: not-allowed; }
.seat-web.bloqueada  { fill: #f59e0b; cursor: not-allowed; }
.seat-web.seleccionada { fill: var(--brand); stroke: #fff; stroke-width: 1.5; }
.seat-web.disponible:hover { opacity: .75; fill: #16a34a; }

/* ── Carrito ───────────────────────────────────────────────────────── */
.cart-table {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.cart-table thead { background: rgba(255,255,255,.04); }
.cart-table td, .cart-table th {
    border-color: var(--border);
    color: #e2e8f0;
    vertical-align: middle;
    padding: .85rem 1rem;
}
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
}

/* ── Countdown ─────────────────────────────────────────────────────── */
#countdown {
    font-size: 2.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.countdown-wrap {
    background: rgba(249,115,22,.08);
    border: 1px solid rgba(249,115,22,.25);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
}
.countdown-wrap.urgente {
    background: rgba(220,38,38,.12);
    border-color: rgba(220,38,38,.35);
    animation: pulse-danger 1s infinite;
}
@keyframes pulse-danger {
    0%,100% { border-color: rgba(220,38,38,.35); }
    50%      { border-color: rgba(220,38,38,.8); }
}

/* ── Checkout ──────────────────────────────────────────────────────── */
.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}
.pay-tab {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    color: #cbd5e1;
}
.pay-tab:hover, .pay-tab.active {
    border-color: var(--brand);
    background: rgba(249,115,22,.1);
    color: var(--brand);
}
.form-control-dark, .form-select-dark {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid var(--border) !important;
    color: #e2e8f0 !important;
    border-radius: 8px;
}
.form-control-dark:focus, .form-select-dark:focus {
    background: rgba(255,255,255,.09) !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15) !important;
    color: #f1f5f9 !important;
}
.form-control-dark::placeholder { color: #64748b; }
.form-label { color: #94a3b8; font-size: .85rem; font-weight: 500; }

/* ── Confirmación ──────────────────────────────────────────────────── */
.confirm-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(34,197,94,.15);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: #22c55e;
}

/* ── Forms genéricos ───────────────────────────────────────────────── */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

/* ── Tablas mis compras ────────────────────────────────────────────── */
.compra-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1rem;
}
.compra-card .compra-head {
    background: rgba(255,255,255,.04);
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    border-radius: 10px 10px 0 0;
}

/* ── Páginas estáticas ─────────────────────────────────────────────── */
.static-page h2 { color: var(--brand); font-weight: 700; margin-top: 2rem; }
.static-page h3 { color: #f1f5f9; font-weight: 600; margin-top: 1.5rem; }
.static-page p, .static-page li { color: #94a3b8; line-height: 1.8; }
.static-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-question {
    background: rgba(255,255,255,.04);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    cursor: pointer;
}
.faq-answer { padding: 1rem 1.25rem; color: var(--text-muted); line-height: 1.8; }

/* ── Footer ────────────────────────────────────────────────────────── */
.web-footer {
    background: #080812;
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}
.footer-link { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.footer-link:hover { color: var(--brand); }

/* ── Badges & misc ─────────────────────────────────────────────────── */
.badge-available { background: rgba(34,197,94,.15); color: #22c55e; }
.badge-sold      { background: rgba(148,163,184,.1); color: #94a3b8; }
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f1f5f9;
}
.section-title span { color: var(--brand); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .hero-carousel .carousel-item img { height: 260px; }
    .hero-carousel .carousel-caption h3 { font-size: 1.3rem; }
    #countdown { font-size: 2rem; }
    .auth-card { padding: 1.5rem; }
}
