:root {
    /* ── MEC Neon Void design tokens (MEC-PAGE/04-sistema-de-diseno.md) ── */
    --mec-bg: #070312;
    --mec-surface: #100A24;
    --mec-surface-2: #1A1240;
    --mec-primary: #A855F7;
    --mec-primary-hi: #C084FC;
    --mec-primary-deep: #6D28D9;
    --mec-secondary: #00C2FF;
    --mec-accent: #CCFF00;
    --mec-text: #F4F1FF;
    --mec-text-muted: #A9A3C2;
    --mec-success: #34D399;
    --mec-warning: #FBBF24;
    --mec-error: #EF4444;
    --mec-grad: linear-gradient(135deg, #A855F7 0%, #00C2FF 100%);

    --mec-glass-bg: rgba(16, 10, 36, 0.55);
    --mec-glass-border: rgba(168, 85, 247, 0.25);
    --mec-glass-blur: 16px;
    --mec-glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --mec-glow-primary: 0 0 24px rgba(168, 85, 247, 0.45);
    --mec-glow-secondary: 0 0 24px rgba(0, 194, 255, 0.35);

    --mec-font-display: 'Space Grotesk', Bahnschrift, sans-serif;
    --mec-font-body: 'Manrope', sans-serif;
    --mec-font: var(--mec-font-body);

    /* Legacy aliases (pre-v5.1 token names still referenced in old styles) */
    --mec-dark: #070312;
    --mec-light: #A9A3C2;
}

/* Base Utility */
.mec-tickets-widget-wrapper {
    font-family: var(--mec-font);
    transition: all 0.3s ease;
}

/* Glassmorphism Standard */
.mec-ticket-preset-standard.mec-tickets-widget-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Common Components */
.mec-promo-badge {
    background: var(--mec-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mec-ticket-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.35em;
    font-weight: 700;
}

.mec-ticket-desc {
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.75;
    margin-bottom: 15px;
}

/* Quantity Selector: Elite Pill */
.mec-quantity-selector.elite-pill {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.mec-quantity-selector.elite-pill .mec-qty-btn {
    width: 34px;
    height: 34px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    font-weight: 700;
    color: var(--mec-surface);
    /* Dark symbol on the white circular button */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mec-quantity-selector.elite-pill .mec-qty-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.mec-quantity-selector.elite-pill .mec-qty-input {
    width: 60px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--mec-text);
    /* Light text over the dark glass pill */
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Remove number spinners */
.mec-quantity-selector.elite-pill .mec-qty-input::-webkit-outer-spin-button,
.mec-quantity-selector.elite-pill .mec-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Button & Price */
.mec-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--mec-grad);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.2);
}

.mec-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 46, 99, 0.4);
    transform: translateY(-2px);
}

.mec-current-price {
    font-weight: 900;
    font-size: 1.8em;
    color: var(--mec-primary);
    letter-spacing: -1px;
}

/* Grid Layouts */
.mec-event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* --- Single Event Page --- */

.mec-single-event-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--mec-font);
}

.mec-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.mec-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px;
    color: #fff;
}

.mec-hero h1 {
    font-size: 3em;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.mec-meta-row {
    display: flex;
    gap: 20px;
    font-size: 1.1em;
    opacity: 0.9;
}

.mec-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mec-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.mec-main-col {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mec-booking-widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Elevated */
    position: sticky;
    top: 20px;
    border: 1px solid #f0f0f0;
}

.mec-booking-widget h3 {
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 2px solid var(--mec-glass-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .mec-content-wrapper {
        grid-template-columns: 1fr;
    }

    .mec-hero {
        height: 250px;
    }

    .mec-hero h1 {
        font-size: 2em;
    }
}

.mec-section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--mec-text);
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.mec-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: var(--mec-primary);
    border-radius: 4px;
}