/* ═══════════════════════════════════════════════════════
   VOLETERÍA — Design System v3
   Moderno · Vibrante · Premium · Intuitivo
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* ── Fondo ── */
    --bg:         #07080f;
    --bg-2:       #0c0d1a;
    --bg-3:       #111224;

    /* ── Superficies ── */
    --card:       rgba(255, 255, 255, 0.04);
    --card-2:     rgba(255, 255, 255, 0.07);
    --border:     rgba(255, 255, 255, 0.08);
    --border-2:   rgba(255, 255, 255, 0.15);

    /* ── Paleta principal — Indigo → Púrpura → Rosa ── */
    --indigo:     #6366f1;
    --purple:     #a855f7;
    --pink:       #ec4899;
    --cyan:       #22d3ee;

    /* Gradientes clave */
    --grad-main:     linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --grad-main-rev: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    --grad-blue:     linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --grad-hot:      linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --grad-golden:   linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --grad-success:  linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-danger:   linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    /* Brillos */
    --glow-indigo: rgba(99, 102, 241, 0.35);
    --glow-purple: rgba(168, 85, 247, 0.35);
    --glow-pink:   rgba(236, 72, 153, 0.35);

    /* ── Colores semánticos ── */
    --primary:    #6366f1;
    --accent:     #f59e0b;
    --success:    #10b981;
    --danger:     #ef4444;
    --warning:    #f59e0b;

    /* ── Texto ── */
    --text:   #f0f0fa;
    --text-2: #9494b8;
    --text-3: #4a4a6a;

    /* ── Asientos ── */
    --seat-available: #1a1c32;
    --seat-hover:     #252848;
    --seat-selected:  #6366f1;
    --seat-reserved:  #92400e;
    --seat-occupied:  #450a0a;

    /* ── Tokens ── */
    --font:    'Outfit', sans-serif;
    --r-sm:    6px;
    --r-md:    12px;
    --r-lg:    18px;
    --r-xl:    24px;
    --r-2xl:   32px;
    --r-full:  100px;

    --ease:    cubic-bezier(0.4, 0, 0.2, 1);
    --bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --trans:   all 0.2s var(--ease);
    --trans-s: all 0.15s var(--ease);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Atmósfera de fondo */
    background-image:
        radial-gradient(ellipse 70% 55% at 0% 0%,   rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 45% at 100% 0%,  rgba(168, 85, 247, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168,85,247,0.6); }

/* ── Utilidades ── */
.hidden        { display: none !important; }
.text-center   { text-align: center; }
.mt-2          { margin-top: 1.5rem; }
.text-muted    { color: var(--text-2); }
.text-danger   { color: var(--danger); }

/* ── Componente: Card base ── */
.glass-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Gradient border trick */
.grad-border {
    position: relative;
    background: var(--bg-2);
    border: none;
}
.grad-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Animaciones ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-ring {
    0%   { transform: scale(0.9); opacity: 0.8; }
    70%  { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}
@keyframes laserScan {
    0%   { top: 0; }
    50%  { top: calc(100% - 3px); }
    100% { top: 0; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}
@keyframes modalIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.94); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* Animación para modal-box dentro de flex (sin translate) */
@keyframes modalBoxIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

/* ══════════════════════════════════════════
   VIEWS
   ══════════════════════════════════════════ */
.view {
    display: none;
    min-height: 100vh;
    padding: 2rem;
    flex-direction: column;
    align-items: center;
}
.view.active { display: flex; }

.section {
    display: none;
    width: 100%;
    max-width: 1200px;
    animation: fadeUp 0.4s var(--ease) forwards;
}
.section.active { display: block; }

/* ══════════════════════════════════════════
   LOADING
   ══════════════════════════════════════════ */
#loading-view { justify-content: center; gap: 1rem; }

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(99,102,241,0.15);
    border-top-color: var(--indigo);
    border-right-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
nav#navbar {
    width: 100%;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 8, 15, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-brand .material-icons-round {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.user-badge {
    font-size: 0.8rem;
    color: var(--text-2);
    background: var(--card-2);
    padding: 0.3rem 0.85rem;
    border-radius: var(--r-full);
    border: 1px solid var(--border-2);
    font-weight: 500;
}

/* ══════════════════════════════════════════
   LOGIN / REGISTRO
   ══════════════════════════════════════════ */
#login-view {
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
    max-width: 420px;
    width: 100%;
    border-radius: var(--r-2xl);
    background: rgba(12, 13, 26, 0.92);
    border: 1px solid var(--border-2);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99,102,241,0.1);
    backdrop-filter: blur(30px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.logo .material-icons-round {
    font-size: 2.2rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Formularios ── */
.form-group {
    margin-bottom: 1.1rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-2);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.form-group input,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--trans);
}
.form-group input:focus {
    outline: none;
    border-color: var(--indigo);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-group input::placeholder { color: var(--text-3); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ══════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════ */
button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--trans);
    -webkit-tap-highlight-color: transparent;
}

/* Botón principal — gradiente vibrante */
.btn-primary {
    background: var(--grad-main);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
/* Shimmer effect */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover:not(:disabled)::before {
    opacity: 1;
    animation: shimmer 1s ease infinite;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.5), 0 4px 12px rgba(168,85,247,0.3);
}
.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(99,102,241,0.3);
}
.btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Override de colores específicos para algunos botones */
.btn-primary[style*="background:var(--success)"],
.btn-primary[style*="background: var(--success)"] {
    background: var(--grad-success) !important;
    box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.btn-primary[style*="background:var(--danger)"],
.btn-primary[style*="background: var(--danger)"] {
    background: var(--grad-danger) !important;
    box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}

.btn-icon {
    background: transparent;
    color: var(--text-2);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    background: var(--card-2);
    color: var(--text);
}

.btn-back {
    background: var(--card);
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--r-full);
    border: 1px solid var(--border-2);
    transition: var(--trans);
}
.btn-back:hover {
    background: rgba(99,102,241,0.1);
    color: var(--indigo);
    border-color: rgba(99,102,241,0.4);
}

.btn-text {
    background: transparent;
    color: var(--text-2);
    padding: 0.45rem 0.85rem;
    border-radius: var(--r-full);
    font-size: 0.875rem;
    font-weight: 500;
}
.btn-text:hover {
    background: var(--card-2);
    color: var(--text);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* ══════════════════════════════════════════
   SECCIÓN CARTELERA
   ══════════════════════════════════════════ */
.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.75rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}
/* Underline degradado */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--grad-main);
    border-radius: var(--r-full);
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

/* ── Show Card — Cinematográfica ── */
.show-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--ease), border-color 0.3s;
    position: relative;
    group: true;
}
.show-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.5), 0 0 30px rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.5);
}

/* Imagen con overlay gradiente cinematográfico */
.show-image-wrap {
    position: relative;
    overflow: hidden;
}
.show-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}
.show-card:hover .show-image {
    transform: scale(1.05);
}

/* Overlay degradado sobre la imagen */
.show-card .show-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(7,8,15,0.95) 0%, transparent 100%);
    pointer-events: none;
}

.show-content {
    padding: 1.25rem 1.5rem 1.5rem;
}
.show-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
}
.show-meta {
    color: var(--text-2);
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
.show-meta .material-icons-round { font-size: 14px; color: var(--text-3); }
.show-price {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    color: var(--indigo);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: var(--r-full);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════
   DETALLE DEL SHOW
   ══════════════════════════════════════════ */
.show-info {
    padding: 1.75rem;
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    position: relative;
    overflow: hidden;
}
/* Decoración lateral */
.show-info::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--grad-main);
    border-radius: 4px 0 0 4px;
}
.show-info img {
    width: 160px;
    height: 240px;
    object-fit: cover;
    border-radius: var(--r-lg);
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.show-info-text h2 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.show-info-text p {
    color: var(--text-2);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.show-info-text .material-icons-round { color: var(--indigo); font-size: 18px; }

/* ══════════════════════════════════════════
   MAPA DE ASIENTOS
   ══════════════════════════════════════════ */
.seat-legend {
    display: flex;
    gap: 1.25rem;
    margin: 1.25rem 0;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 0.6rem 1.5rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-2);
    font-size: 0.78rem;
    font-weight: 500;
}

.screen-indicator {
    background: linear-gradient(to bottom, rgba(99,102,241,0.15), transparent);
    height: 38px;
    border-top: 3px solid rgba(99,102,241,0.4);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    text-align: center;
    color: var(--text-3);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 6px;
    padding-top: 7px;
    margin: 2rem auto 1.25rem;
    max-width: 70%;
}

.seat-map {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding: 0.75rem;
}
.seat-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.row-label {
    width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 0.68rem;
    color: var(--text-3);
    font-feature-settings: "tnum";
}

.seat {
    width: 34px;
    height: 34px;
    border-radius: 8px 8px 5px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans-s);
    user-select: none;
    border: 1px solid transparent;
}
.seat.available {
    background: var(--seat-available);
    border-color: rgba(255,255,255,0.04);
    color: var(--text-3);
}
.seat.available:hover {
    background: var(--seat-hover);
    border-color: rgba(99,102,241,0.5);
    color: var(--text-2);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.2);
}
.seat.selected {
    background: var(--grad-main);
    border-color: var(--purple);
    color: white;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3), 0 4px 14px rgba(99,102,241,0.4);
    transform: scale(1.1);
}
.seat.reserved {
    background: rgba(146, 64, 14, 0.4);
    border-color: rgba(245,158,11,0.3);
    cursor: not-allowed;
    color: rgba(245,158,11,0.6);
}
.seat.occupied {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(239,68,68,0.2);
    cursor: not-allowed;
    color: rgba(239,68,68,0.4);
    opacity: 0.7;
}

/* ── Barra de compra ── */
.checkout-bar {
    position: sticky;
    bottom: 1.5rem;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-radius: var(--r-2xl) !important;
    background: rgba(12, 13, 26, 0.97) !important;
    border: 1px solid var(--border-2) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.1);
    backdrop-filter: blur(20px);
}
.checkout-info { display: flex; flex-direction: column; gap: 0.05rem; }
.checkout-info span { font-size: 0.88rem; color: var(--text-2); }
.checkout-info strong { color: var(--text); font-weight: 700; }
.checkout-bar .btn-primary { width: auto; padding: 0.7rem 1.75rem; }

/* ══════════════════════════════════════════
   ÉXITO / CHECKOUT
   ══════════════════════════════════════════ */
.success-card {
    padding: 3rem 2rem;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: var(--r-2xl);
}
.success-icon {
    font-size: 4.5rem;
    margin-bottom: 0.75rem;
    display: block;
    animation: float 3s ease-in-out infinite;
    background: var(--grad-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.order-number-box {
    background: rgba(99,102,241,0.06);
    border: 1px dashed rgba(99,102,241,0.35);
    padding: 1.25rem;
    border-radius: var(--r-xl);
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.order-number-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.05));
}
.order-number-box .label {
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}
.order-number-box h1 {
    font-size: 2.75rem;
    letter-spacing: 5px;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.warning-box {
    background: rgba(245,158,11,0.07);
    border: 1px solid rgba(245,158,11,0.2);
    padding: 1rem 1.25rem;
    border-radius: var(--r-lg);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: var(--warning);
    text-align: left;
    font-size: 0.9rem;
}
.warning-box .material-icons-round { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   PANEL ADMINISTRADOR
   ══════════════════════════════════════════ */
.admin-dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1400px;
}

.admin-sidebar {
    padding: 1.25rem;
    height: calc(100vh - 110px);
    position: sticky;
    top: 80px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
}
.admin-sidebar h3 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.admin-sidebar ul { list-style: none; }
.admin-sidebar li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.3rem;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 500;
}
.admin-sidebar li .material-icons-round { font-size: 1.1rem; }
.admin-sidebar li:hover {
    background: rgba(99,102,241,0.08);
    color: var(--text);
}
.admin-sidebar li.active {
    background: rgba(99,102,241,0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.25);
    font-weight: 600;
}
.admin-sidebar li.active .material-icons-round {
    color: var(--indigo);
}

.admin-tab { display: none; animation: fadeIn 0.3s; }
.admin-tab.active { display: block; }

.search-box {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
    margin: 1.25rem 0;
    gap: 0.5rem;
    border-radius: var(--r-full) !important;
    background: var(--card) !important;
    border: 1px solid var(--border-2) !important;
    transition: var(--trans);
}
.search-box:focus-within {
    border-color: rgba(99,102,241,0.45) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.search-box .material-icons-round { font-size: 1rem; color: var(--text-3); }
.search-box input {
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    width: 100%;
    font-family: var(--font);
    font-size: 0.9rem;
}
.search-box input::placeholder { color: var(--text-3); }

/* ══════════════════════════════════════════
   MODALES
   ══════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
}
.modal-overlay.active { display: flex; align-items: center; justify-content: center; padding: 1rem; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    padding: 2rem;
    display: none;
    border-radius: var(--r-2xl);
    background: #0c0e1e;
    border: 1px solid var(--border-2);
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(99,102,241,0.15);
}
.modal.active {
    display: block;
    animation: modalIn 0.25s var(--ease) forwards;
}

/* ══════════════════════════════════════════
   LISTAS ADMIN
   ══════════════════════════════════════════ */
.admin-list-item {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--r-lg);
    background: var(--card);
    border: 1px solid var(--border);
    transition: var(--trans);
}
.admin-list-item:hover {
    background: var(--card-2);
    border-color: var(--border-2);
    transform: translateX(2px);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.status-pending   { background: rgba(251,191,36,0.1);   color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.status-confirmed { background: rgba(16,185,129,0.1);   color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.status-cancelled { background: rgba(239,68,68,0.1);    color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.status-reserved  { background: rgba(245,166,35,0.1);   color: #f59e0b; border: 1px solid rgba(245,166,35,0.2); }

.admin-actions { display: flex; gap: 0.4rem; }

/* ══════════════════════════════════════════
   CHAT
   ══════════════════════════════════════════ */
/* Imágenes inline en chat */
.chat-message img {
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
    border-radius: 8px;
}
.chat-message img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    cursor: zoom-in;
}

.chat-container {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    height: 250px;
    margin-top: 1rem;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.chat-message {
    max-width: 80%;
    padding: 0.55rem 0.9rem;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    word-break: break-word;
    line-height: 1.4;
}
.chat-message.admin {
    align-self: flex-start;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.2);
}
.chat-message.client {
    align-self: flex-end;
    background: var(--card-2);
    border: 1px solid var(--border-2);
}
.chat-input-area {
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    gap: 0.4rem;
}
.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0.5rem;
    outline: none;
    font-family: var(--font);
    font-size: 0.9rem;
}
.unread-badge {
    background: var(--grad-danger);
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
    border-radius: var(--r-full);
    margin-left: 0.4rem;
    font-weight: 700;
    display: inline-block;
}

/* ══════════════════════════════════════════
   ACORDEÓN SHOWS (Admin)
   ══════════════════════════════════════════ */
.admin-show-accordion {
    margin-bottom: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: var(--trans);
}
.admin-show-accordion[open] {
    border-color: rgba(99,102,241,0.35);
    box-shadow: 0 4px 24px rgba(99,102,241,0.12);
}
.accordion-summary {
    padding: 1.1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: var(--card);
    list-style: none;
    transition: var(--trans);
}
.accordion-summary:hover { background: var(--card-2); }
.accordion-summary::-webkit-details-marker { display: none; }
.accordion-arrow { transition: transform 0.3s var(--ease); color: var(--text-3); }
.admin-show-accordion[open] .accordion-arrow { transform: rotate(180deg); color: var(--indigo); }
.accordion-content {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ══════════════════════════════════════════
   TICKETS DEL CLIENTE
   ══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   CARRUSEL DE PUBLICIDAD
   ══════════════════════════════════════════ */
.ads-carousel-wrap {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.ads-carousel {
    width: 100%;
    overflow: hidden;
    border-radius: var(--r-xl);
}
.ads-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.77,0,0.175,1);
    will-change: transform;
}
.ads-slide {
    min-width: 100%;
    flex-shrink: 0;
}
.ads-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
@media (min-width: 600px) {
    .ads-img { height: 240px; }
}
.ads-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 0 0.4rem;
    background: var(--card);
}
.ads-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.ads-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
    width: 100%;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem 1.25rem;
    margin-top: 2rem;
    box-sizing: border-box;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.footer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.footer-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0;
}
.footer-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface-3, rgba(255,255,255,0.07));
    color: var(--text-2);
    transition: transform 0.18s, background 0.18s, color 0.18s;
    text-decoration: none;
}
.footer-social-link:hover { transform: scale(1.12); }
.footer-instagram:hover { background: #E1306C; color: #fff; }
.footer-facebook:hover  { background: #1877F2; color: #fff; }
.footer-whatsapp:hover  { background: #25D366; color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.footer-contact-item:hover { color: var(--primary); }
.footer-contact-item .material-icons-round { font-size: 1.1rem; color: var(--primary); }
.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-3);
    margin: 0;
}
@media (min-width: 600px) {
    .footer-inner { justify-content: space-around; }
    .footer-block { align-items: flex-start; }
}

.ticket-squares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ticket-square-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 0 0 0.75rem 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--ease), border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    overflow: hidden;
}

.ticket-thumb-wrap {
    width: 100%;
    height: 140px;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    margin-bottom: 0.35rem;
}
.ticket-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s var(--ease);
}
.ticket-square-card:hover .ticket-thumb-img {
    transform: scale(1.05);
}
.ticket-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.ticket-square-card:hover .ticket-thumb-overlay {
    opacity: 1;
}
/* Gradiente decorativo de fondo */
.ticket-square-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity 0.25s;
}
.ticket-square-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 8px 28px rgba(99,102,241,0.25);
}
.ticket-square-card:hover::after { opacity: 0.05; }

.ticket-square-card .ticket-icon {
    font-size: 2.2rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}
.ticket-square-card .seat-badge {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}
.ticket-square-card .active-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    background: rgba(16,185,129,0.12);
    color: #34d399;
    border-radius: var(--r-full);
    border: 1px solid rgba(16,185,129,0.25);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    position: relative;
    z-index: 1;
}
.ticket-square-card .used-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    background: rgba(239,68,68,0.12);
    color: #f87171;
    border-radius: var(--r-full);
    border: 1px solid rgba(239,68,68,0.2);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    position: relative;
    z-index: 1;
}
.ticket-square-card .tap-hint {
    font-size: 0.68rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--trans);
    position: relative;
    z-index: 1;
}
.ticket-square-card:hover .tap-hint { color: #a5b4fc; }

/* ══════════════════════════════════════════
   NAVBAR — Botón invitado
   ══════════════════════════════════════════ */
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--r-full);
    background: var(--grad-main);
    color: white;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--trans);
    box-shadow: 0 2px 12px var(--glow-indigo);
    letter-spacing: 0.01em;
}
.btn-nav-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--glow-purple);
}
.btn-nav-login .material-icons-round { font-size: 1rem; }

/* ══════════════════════════════════════════
   AUTH MODAL — Overlay de login/registro
   ══════════════════════════════════════════ */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s var(--ease);
}
.auth-overlay.hidden { display: none; }

.auth-modal-box {
    background: #0c0e1e;
    border: 1px solid var(--border-2);
    border-radius: var(--r-2xl);
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(99,102,241,0.15);
    /* Entrada desde abajo */
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.25s var(--bounce), opacity 0.2s var(--ease);
}
.auth-modal-box.auth-modal-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.auth-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

/* Mensaje de compra pendiente */
.auth-purchase-msg {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: var(--r-lg);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #a5b4fc;
    line-height: 1.5;
}
.auth-purchase-msg .material-icons-round { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Pestañas login / registro */
.auth-tabs {
    display: flex;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 3px;
    margin-bottom: 1.5rem;
}
.auth-tab {
    flex: 1;
    padding: 0.55rem 1rem;
    border-radius: var(--r-full);
    border: none;
    background: transparent;
    color: var(--text-2);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
}
.auth-tab.active {
    background: var(--grad-main);
    color: white;
    box-shadow: 0 2px 10px var(--glow-indigo);
}

/* ══════════════════════════════════════════
   EXPLORAR EVENTOS — Header
   ══════════════════════════════════════════ */
.events-header { margin-bottom: 1.75rem; }
.section-subtitle {
    color: var(--text-2);
    font-size: 0.9rem;
    margin-top: -1.25rem;
}

/* Badge tipo recinto en la card */
.show-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* ══════════════════════════════════════════
   DETALLE DEL EVENTO — Banner
   ══════════════════════════════════════════ */
.event-banner-wrap {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    width: 100%;
    min-height: 320px;
    background: var(--bg-2);
    margin-bottom: 2rem;
}
.event-banner-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.event-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,8,15,0.95) 0%, rgba(7,8,15,0.3) 50%, transparent 100%);
}
.event-banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
}
.venue-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.35);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-full);
    margin-bottom: 0.6rem;
}
.event-banner-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: white;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.event-banner-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.event-banner-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    font-weight: 500;
}
.event-banner-meta .material-icons-round { font-size: 16px; color: #a5b4fc; }

/* ══════════════════════════════════════════
   LISTA DE ZONAS — Localidades
   ══════════════════════════════════════════ */
.zones-list-section { margin-bottom: 3rem; }
.zones-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--text-2);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}
.zones-list { display: flex; flex-direction: column; gap: 0.75rem; }
.zone-list-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--trans);
}
.zone-list-card:hover {
    background: var(--card-2);
    border-color: var(--border-2);
}
.zone-list-info { display: flex; align-items: center; gap: 0.85rem; }
.zone-list-icon-wrap {
    width: 42px; height: 42px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.zone-list-icon { font-size: 1.2rem; color: var(--indigo); }
.zone-list-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.zone-list-type { font-size: 0.78rem; color: var(--text-2); margin-top: 0.1rem; }
.zone-list-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.zone-list-price { font-size: 1.1rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.zone-select-btn { width: auto; padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* ══════════════════════════════════════════
   ZONA LIBRE — Selector de cantidad
   ══════════════════════════════════════════ */
.libre-zone-panel { margin: 1.5rem 0; display: flex; justify-content: center; }
.libre-zone-card {
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-2xl);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 360px;
    width: 100%;
}
.libre-icon {
    font-size: 3rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.75rem;
}
.libre-zone-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.libre-qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.qty-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--card-2);
    border: 1px solid var(--border-2);
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: var(--trans);
}
.qty-btn:hover { background: rgba(99,102,241,0.15); border-color: var(--indigo); color: var(--indigo); }
.qty-display {
    font-size: 2.5rem;
    font-weight: 900;
    min-width: 60px;
    text-align: center;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.libre-subtotal { font-size: 0.9rem; color: var(--text-2); }

/* ══════════════════════════════════════════
   MESAS — Grid de mesas
   ══════════════════════════════════════════ */
.tables-zone-panel { margin: 1.5rem 0; }
.tables-map {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}
.table-card {
    border-radius: var(--r-lg);
    padding: 1.1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s var(--bounce), box-shadow 0.2s, border-color 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
}
.table-card .material-icons-round { font-size: 2rem; }
.table-card span:nth-child(2) { font-weight: 700; font-size: 0.9rem; }
.table-seats { font-size: 0.72rem; color: var(--text-2); }
.table-card.available { background: var(--card); }
.table-card.available .material-icons-round { color: var(--text-3); }
.table-card.available:hover {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 18px rgba(99,102,241,0.2);
}
.table-card.available:hover .material-icons-round { color: var(--indigo); }
.table-card.selected {
    background: rgba(99,102,241,0.12);
    border-color: var(--indigo);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}
.table-card.selected .material-icons-round { color: var(--indigo); }
.table-card.occupied {
    background: rgba(127,29,29,0.2);
    border-color: rgba(239,68,68,0.15);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ══════════════════════════════════════════
   PASARELA DE PAGO — Checkout Flow
   ══════════════════════════════════════════ */
.checkout-flow {
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 3rem;
}
.checkout-step-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 1.5rem;
}
.checkout-step-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--grad-main);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.checkout-step-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.order-summary-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.order-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 0.9rem; }
.order-num-text { font-size: 1.1rem; font-weight: 900; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.order-total-amount { font-size: 1.25rem; font-weight: 900; color: var(--indigo); }

/* Cuentas bancarias en checkout */
.bank-accounts-display { display: flex; flex-direction: column; gap: 0.7rem; }
.bank-account-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 0.85rem 1rem;
    transition: var(--trans);
}
.bank-account-card:hover { border-color: var(--border-2); }
.bank-account-icon {
    width: 38px; height: 38px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bank-account-icon .material-icons-round { font-size: 1.1rem; color: var(--indigo); }
.bank-account-info { flex: 1; }
.bank-account-name { font-weight: 700; font-size: 0.9rem; }
.bank-account-number { font-size: 0.85rem; color: var(--text-2); font-family: 'Courier New', monospace; }
.bank-account-holder { font-size: 0.78rem; color: var(--text-3); }
.btn-copy-account {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-2);
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    transition: var(--trans);
    flex-shrink: 0;
    cursor: pointer;
    font-family: var(--font);
}
.btn-copy-account:hover { background: rgba(99,102,241,0.1); color: var(--indigo); border-color: rgba(99,102,241,0.3); }
.btn-copy-account .material-icons-round { font-size: 0.95rem; }

/* ══════════════════════════════════════════
   MIS EVENTOS — Cards del cliente
   ══════════════════════════════════════════ */
.my-event-card {
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: var(--trans);
}
.mec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: var(--trans);
}
.mec-header:hover { background: var(--card-2); }
.mec-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--r-lg);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.mec-info { flex: 1; min-width: 0; }
.mec-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mec-meta { font-size: 0.78rem; color: var(--text-2); margin: 0 0 0.3rem; }
.mec-body { border-top: 1px solid var(--border); }
.order-detail-row + .order-detail-row { border-top: 1px dashed var(--border); }
.order-cancelled-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}
.order-cancelled-notice .material-icons-round { flex-shrink: 0; }

/* ══════════════════════════════════════════
   ADMIN ORDERS — Drill-down de eventos
   ══════════════════════════════════════════ */
.orders-event-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
    border-radius: var(--r-lg);
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--trans);
}
.orders-event-card:hover {
    background: var(--card-2);
    border-color: var(--border-2);
    transform: translateX(3px);
}
.oec-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--r-md);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.oec-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-2);
}
.oec-thumb-empty .material-icons-round { color: var(--text-3); font-size: 1.4rem; }
.oec-info { flex: 1; min-width: 0; }
.oec-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-2);
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   ADMIN EVENT CARDS
   ══════════════════════════════════════════ */
.admin-event-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--r-lg);
    transition: var(--trans);
}
.admin-event-card:hover { background: var(--card-2); border-color: var(--border-2); }
.aec-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--r-md);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.aec-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-2);
}
.aec-thumb-empty .material-icons-round { color: var(--text-3); font-size: 1.5rem; }
.aec-info { flex: 1; min-width: 0; }
.aec-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ── Monitor de zona ── */
.monitor-zone-row {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.mzr-info { display: flex; justify-content: space-between; align-items: center; }
.mzr-stats { display: flex; gap: 1rem; font-size: 0.8rem; flex-wrap: wrap; }
.mzr-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.mzr-fill { height: 100%; border-radius: 3px; transition: width 0.4s var(--ease); }

/* ── Status grid en el form ── */
.event-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.status-option input[type="radio"] { display: none; }
.status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.4rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border-2);
    background: var(--card);
    cursor: pointer;
    transition: var(--trans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    line-height: 1.2;
}
.status-card small { font-size: 0.6rem; font-weight: 400; opacity: 0.7; }
.status-card .material-icons-round { font-size: 1.3rem; }
.status-option.active .status-card {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.4);
    color: #a5b4fc;
}
.status-option.active[data-val="finished"] .status-card { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }
.status-option.active[data-val="draft"] .status-card { background: rgba(148,163,184,0.1); border-color: rgba(148,163,184,0.2); color: var(--text-2); }
.status-option.active[data-val="scheduled"] .status-card { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.25); color: var(--warning); }
.status-option.active[data-val="published"] .status-card { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: var(--success); }

/* ══════════════════════════════════════════
   TICKET DESIGN BUILDER — Admin
   ══════════════════════════════════════════ */
.ticket-design-builder {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1rem;
}
.tdb-upload-col { display: flex; flex-direction: column; gap: 0; }
.tdb-preview-col {}

/* Color picker de texto */
.text-color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tc-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--r-full);
    border: 1px solid var(--border-2);
    background: var(--card);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    transition: var(--trans);
}
.tc-option.active { border-color: var(--indigo); color: var(--text); background: rgba(99,102,241,0.1); }
.tc-swatch { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

/* Ticket preview en admin */
.ticket-preview-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.ticket-preview-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1080 / 1350;
    background: #0d1626;
    overflow: hidden;
    border-radius: var(--r-lg);
}
.tp-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--r-lg);
}
/* Top text: zona + asiento — 8.96% from top */
.tp-top {
    position: absolute;
    top: 8.96%;
    left: 10.26%;
    right: 10.38%;
    text-align: center;
    pointer-events: none;
}
.tp-zone-label {
    font-weight: 800;
    font-size: clamp(8px, 2.8vw, 16px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}
/* QR: left 31.43%, top ~22%, width 37.2% */
.tp-qr-wrap {
    position: absolute;
    left: 31.43%;
    right: 31.55%;
    top: 22%;
    pointer-events: none;
    aspect-ratio: 1;
}
.tp-qr-box {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
/* Bottom text: event name — ~55% from top */
.tp-bottom {
    position: absolute;
    top: 55.3%;
    left: 10.26%;
    right: 10.38%;
    text-align: center;
    pointer-events: none;
}
.tp-event-name {
    font-weight: 800;
    font-size: clamp(8px, 2.8vw, 15px);
    line-height: 1.2;
    margin-bottom: 0.2em;
}
.tp-event-meta {
    font-size: clamp(6px, 1.8vw, 11px);
    opacity: 0.7;
}

/* ══════════════════════════════════════════
   CLIENT CUSTOM TICKET — Boleto con diseño
   ══════════════════════════════════════════ */
.ctm-custom-ticket {
    position: relative;
    width: 100%;
    aspect-ratio: 1080 / 1350;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    margin-bottom: 0.75rem;
    background: #0d1626;
}

/* Background full */
.ctb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--r-xl);
}

/* Top: zona + asiento */
.ctb-top {
    position: absolute;
    top: 8.96%;
    left: 10.26%;
    right: 10.38%;
    text-align: center;
}
.ctb-zone-text {
    font-weight: 900;
    font-size: clamp(10px, 3.5vw, 20px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}
.ctb-used-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    font-size: clamp(8px, 2vw, 12px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ctb-used-tag.active { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(16,185,129,0.35); }
.ctb-used-tag.used   { background: rgba(239,68,68,0.2);  color: #f87171;  border: 1px solid rgba(239,68,68,0.3); }

/* QR centrado — mismas proporciones del spec */
.ctb-qr-wrap {
    position: absolute;
    left: 31.43%;
    right: 31.55%;
    top: 22%;
    aspect-ratio: 1;
}
.ctb-qr-box {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    padding: 4%;
}
.ctb-qr-box img, .ctb-qr-box canvas { width: 100% !important; height: 100% !important; }

/* Bottom: nombre del evento */
.ctb-bottom {
    position: absolute;
    top: 55.3%;
    left: 10.26%;
    right: 10.38%;
    text-align: center;
}
.ctb-event-name {
    font-weight: 900;
    font-size: clamp(10px, 4vw, 22px);
    line-height: 1.15;
    margin-bottom: 0.2em;
    letter-spacing: -0.01em;
}
.ctb-event-meta {
    font-size: clamp(8px, 2.2vw, 13px);
    opacity: 0.75;
}


/* ══════════════════════════════════════════
   IMAGE UPLOAD — Flyer dropzone
   ══════════════════════════════════════════ */
.flyer-dropzone {
    width: 100%;
    height: 140px;
    border: 2px dashed var(--border-2);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
    background: var(--card);
}
.flyer-dropzone:hover {
    border-color: var(--indigo);
    background: rgba(99,102,241,0.05);
}
.flyer-dropzone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-3);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}
.flyer-dropzone-placeholder .material-icons-round {
    font-size: 2rem;
    color: var(--indigo);
    opacity: 0.6;
}
.flyer-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-lg);
}

/* ══════════════════════════════════════════
   VENUE MAP BUILDER — Admin
   ══════════════════════════════════════════ */
.venue-map-builder {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 320px;
    align-items: start;
}
.vmb-map-col { width: 100%; }
.vmb-map-container {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    line-height: 0;
}
.vmb-map-container svg { display: block; }
.vmb-panel-col {
    display: flex;
    flex-direction: column;
}
.vmb-idle-state {
    background: var(--card);
    border: 1px dashed var(--border-2);
    border-radius: var(--r-lg);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.vmb-zone-form {
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 1rem;
}
.vmb-region-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--indigo);
}
.vmb-cfg-panel {
    background: rgba(0,0,0,0.15);
    border-radius: var(--r-md);
    padding: 0.75rem;
    margin-top: 0.5rem;
}
.vmb-zones-summary { margin-bottom: 0.5rem; }

/* SVG region hover state */
.vregion {
    transition: opacity 0.15s, stroke 0.15s;
    stroke: transparent;
    stroke-width: 2;
}
.vregion:hover { opacity: 1 !important; }

/* ══════════════════════════════════════════
   CLIENT VENUE MAP
   ══════════════════════════════════════════ */
.client-venue-map-section { margin-bottom: 2rem; }
.client-venue-map {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    line-height: 0;
    max-width: 520px;
    margin: 0 auto 0.75rem;
}
.client-venue-map svg { display: block; width: 100%; height: auto; }

/* ══════════════════════════════════════════
   MODAL DE EVENTO — Admin
   ══════════════════════════════════════════ */
.modal-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.modal-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-2);
    margin-bottom: 0.85rem;
}
.modal-info-box .material-icons-round { font-size: 1rem; color: var(--indigo); flex-shrink: 0; margin-top: 1px; }

/* Selector tipo de recinto */
.venue-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.venue-type-option input[type="radio"] { display: none; }
.venue-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border-2);
    background: var(--card);
    cursor: pointer;
    transition: var(--trans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    line-height: 1.3;
}
.venue-type-card .material-icons-round { font-size: 1.5rem; color: var(--text-3); transition: var(--trans); }
.venue-type-option.active .venue-type-card {
    background: rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.45);
    color: #a5b4fc;
}
.venue-type-option.active .venue-type-card .material-icons-round { color: var(--indigo); }

/* Zona row en el modal */
.zone-row {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.zone-row-top {
    display: flex;
    gap: 0.6rem;
    align-items: flex-end;
}
.zone-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    margin-bottom: 0.35rem;
}
.zone-delete-btn {
    background: transparent;
    border: 1px solid rgba(239,68,68,0.2);
    color: var(--danger);
    border-radius: var(--r-md);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--trans);
    cursor: pointer;
}
.zone-delete-btn:hover { background: rgba(239,68,68,0.1); }
.zone-delete-btn .material-icons-round { font-size: 1.1rem; }

/* Tabs de tipo de zona */
.zone-type-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.zone-type-tab {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--r-full);
    border: 1px solid var(--border-2);
    background: var(--card);
    color: var(--text-2);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    font-family: var(--font);
}
.zone-type-tab .material-icons-round { font-size: 0.95rem; }
.zone-type-tab:hover { background: var(--card-2); color: var(--text); }
.zone-type-tab.active { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.4); color: #a5b4fc; }
.zone-type-tab.active .material-icons-round { color: var(--indigo); }

.zone-config-panel { background: rgba(0,0,0,0.15); border-radius: var(--r-md); padding: 0.85rem; }

.btn-add-zone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px dashed var(--border-2);
    border-radius: var(--r-lg);
    color: var(--text-2);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    width: 100%;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
    margin-bottom: 0.5rem;
    font-family: var(--font);
}
.btn-add-zone:hover { border-color: var(--indigo); color: #a5b4fc; background: rgba(99,102,241,0.05); }
.btn-add-zone .material-icons-round { font-size: 1.1rem; color: var(--indigo); }

/* Cuentas bancarias en modal */
.bank-row {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    padding: 1rem;
    margin-bottom: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.bank-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.bank-row-grid input, .bank-row-grid select { margin-bottom: 0 !important; }

/* ══════════════════════════════════════════
   CONSOLA VALIDADOR
   ══════════════════════════════════════════ */
.val-console-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
    align-items: start;
}

/* ══════════════════════════════════════════
   ACCIONES MODAL ORDEN
   ══════════════════════════════════════════ */
.modal-order-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════
   ZONA SHOW (form admin)
   ══════════════════════════════════════════ */
.zone-row {
    background: rgba(0,0,0,0.25);
    padding: 1rem;
    border-radius: var(--r-md);
    margin-bottom: 0.85rem;
    border: 1px solid var(--border-2);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 992px) {
    .val-console-grid          { grid-template-columns: 1fr; }
    .venue-map-builder         { grid-template-columns: 1fr; }
    .ticket-design-builder     { grid-template-columns: 1fr; }
    .event-status-grid         { grid-template-columns: repeat(2, 1fr); }
    .admin-event-card          { flex-wrap: wrap; }
    .aec-actions               { flex-direction: row; width: 100%; }

    /* Venue map en tablet: mapa encima, panel de config abajo */
    .vmb-panel-col             { width: 100%; }
    .vmb-zone-form, .vmb-idle-state { max-width: 100%; }
}

@media (max-width: 640px) {
    /* Modal de evento ocupa toda la pantalla */
    #admin-show-modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        top: 0 !important; left: 0 !important;
        transform: none !important;
        padding: 1rem !important;
    }

    /* Selector de tipo de recinto: scroll horizontal en móvil */
    .venue-type-selector {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }
    .venue-type-selector::-webkit-scrollbar { display: none; }
    .venue-type-option         { flex-shrink: 0; }
    .venue-type-card           { min-width: 80px; padding: 0.5rem 0.6rem; font-size: 0.75rem; }
    .venue-type-card .material-icons-round { font-size: 1.4rem; }

    /* Mapa SVG ocupa todo el ancho */
    .vmb-map-container         { max-width: 100%; }
    .vmb-map-container svg     { width: 100%; height: auto; }

    /* Tabs de tipo de zona en el panel */
    .zone-type-tabs            { flex-wrap: wrap; gap: 0.3rem; }
    .zone-type-tab             { font-size: 0.75rem; padding: 0.3rem 0.6rem; }

    /* Control de número de áreas */
    #areas-count-row           { flex-wrap: wrap; gap: 0.5rem; }

    /* Formulario de zona más compacto */
    .vmb-zone-form             { padding: 0.75rem; }
    .vmb-region-header         { font-size: 0.8rem; margin-bottom: 0.6rem; }
    .zone-field-label          { font-size: 0.78rem; }

    /* Cuentas bancarias en móvil */
    .bank-row                  { flex-direction: column !important; }

    /* Zonas configuradas: chips más pequeños */
    .vmb-zones-summary span    { font-size: 0.72rem !important; padding: 0.2rem 0.5rem !important; }
}

@media (max-width: 768px) {
    .view { padding: 1rem; }

    nav#navbar {
        height: auto;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .shows-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
    .show-image { height: 250px; }

    .show-info {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1.25rem;
        align-items: center;
    }
    .show-info img { width: 100%; max-width: 260px; height: 200px; }
    .show-info-text { text-align: center; }
    .show-info-text h2 { font-size: 1.6rem; }
    .show-info-text p { justify-content: center; }

    .seat-map {
        padding: 0.5rem;
        margin-bottom: 7rem;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
    }
    .seat-row { gap: 0.3rem; }
    .seat { width: 28px; height: 28px; font-size: 0.6rem; }
    .row-label { width: 20px; font-size: 0.65rem; }
    .screen-indicator { font-size: 0.6rem; max-width: 95%; }
    .legend-item { font-size: 0.75rem; }
    .seat-legend { border-radius: var(--r-lg); padding: 0.6rem 1rem; gap: 0.75rem; }

    .checkout-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        border-radius: 0 !important;
        background: rgba(7,8,15,0.98) !important;
        border-top: 1px solid var(--border-2) !important;
        border-left: none !important; border-right: none !important; border-bottom: none !important;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
        padding: 1rem 1.25rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        z-index: 99;
        margin: 0;
    }

    .admin-dashboard { grid-template-columns: 1fr; gap: 0.75rem; }
    .admin-sidebar {
        position: sticky; top: 75px; height: auto;
        padding: 0.6rem; z-index: 10; border-radius: var(--r-xl);
    }
    .admin-sidebar h3 { display: none; }
    .admin-sidebar ul {
        display: flex; gap: 0.4rem;
        overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.1rem;
    }
    .admin-sidebar ul::-webkit-scrollbar { display: none; }
    .admin-sidebar li {
        flex-shrink: 0; padding: 0.5rem 1rem;
        margin-bottom: 0; font-size: 0.8rem;
        border-radius: var(--r-full);
        background: var(--card); border: 1px solid var(--border);
    }
    .admin-sidebar li.active { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); }

    .search-box { margin: 0.6rem 0; }

    .admin-list-item {
        padding: 1rem; flex-direction: column;
        align-items: flex-start; gap: 0.6rem;
    }
    .admin-list-item > div:last-child {
        text-align: left !important; width: 100%;
        display: flex; justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border); padding-top: 0.5rem;
    }

    .success-card { padding: 2rem 1.25rem; }
    .order-number-box h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .modal-order-actions-grid { grid-template-columns: 1fr; gap: 0.4rem; }
    .logo h1 { font-size: 1.85rem; }
    .shows-grid { grid-template-columns: 1fr; }
    .checkout-bar { flex-direction: column; gap: 0.6rem; align-items: stretch; text-align: center; }
    .checkout-info { flex-direction: row; justify-content: space-around; }
}

/* ── Filter Tab Buttons ── */
.filter-tab-btn {
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    border: 1px solid var(--border-2);
    background: transparent;
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}
.filter-tab-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-1);
}
.filter-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Payment Method Selector ── */
.payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.payment-method-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.payment-method-card:hover {
    border-color: var(--border-2);
    background: rgba(255,255,255,0.04);
}
.payment-method-card.active {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
}
.payment-method-card .pm-icon {
    font-size: 1.5rem;
    color: var(--text-3);
    flex-shrink: 0;
    transition: color 0.2s;
}
.payment-method-card.active .pm-icon { color: var(--primary); }
.payment-method-card .pm-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.pm-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-1);
}
.pm-desc {
    font-size: 0.78rem;
    color: var(--text-3);
}
.pm-check {
    font-size: 1.2rem;
    color: var(--border);
    transition: color 0.2s;
}
.payment-method-card.active .pm-check { color: var(--primary); }

/* Checkout: free entry section */
.free-entry-proceed {
    text-align: center;
    padding: 1.5rem 1rem;
}
.free-entry-proceed .free-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.free-entry-proceed p {
    color: var(--text-2);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

/* ===================== USER MANAGEMENT ===================== */
.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.user-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-1);
}
.user-username {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 0.1rem;
}
.user-password-info {
    font-size: 0.75rem;
    color: var(--text-2);
    margin-top: 0.2rem;
}
.user-card-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.user-actions {
    display: flex;
    gap: 0.25rem;
}
.icon-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-2);
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text-1); }
.icon-btn.danger-icon:hover { background: rgba(239,68,68,0.12); color: var(--danger); border-color: var(--danger); }
.icon-btn .material-icons-round { font-size: 1.1rem; }

.role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.role-badge-sm {
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--surface-3);
    color: var(--text-2);
    padding: 0.15rem 0.45rem;
    border-radius: 100px;
}

/* Perm toggle */
.perm-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-2);
    user-select: none;
}
.perm-toggle input[type=checkbox] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Bitácora table */
.bitacora-table-wrap {
    overflow-x: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}
.bitacora-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}
.bitacora-table th {
    background: var(--surface-2);
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.bitacora-table td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text-1);
}
.bitacora-table tr:last-child td { border-bottom: none; }
.bitacora-table tr:hover td { background: var(--surface-2); }

/* User modal section label */
.modal-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════
   MODAL BOX (usuario / config)
   ══════════════════════════════════════════ */
.modal-box {
    background: #0c0e1e;
    border: 1px solid var(--border-2);
    border-radius: var(--r-2xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(99,102,241,0.15);
    animation: modalBoxIn 0.25s var(--ease) forwards;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
}

.modal-body {
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: var(--r-md);
    transition: var(--trans);
}
.modal-close-btn:hover {
    background: var(--surface-3);
    color: var(--text-1);
}

.btn-text {
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--text-2);
    padding: 0.65rem 1.25rem;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    font-family: var(--font);
}
.btn-text:hover {
    background: var(--surface-3);
    color: var(--text-1);
}
