/* ═══════════════════════════════════════════════════════════════
   WopyTickets — Main Stylesheet
   Premium dark theme for event ticketing
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
    --wt-primary: #6C63FF;
    --wt-primary-rgb: 108, 99, 255;
    --wt-secondary: #00D4AA;
    --wt-secondary-rgb: 0, 212, 170;
    --wt-accent: #FF6B6B;
    --wt-accent-rgb: 255, 107, 107;

    --wt-bg-dark: #0f0f1a;
    --wt-bg-body: #111122;
    --wt-bg-card: #1a1a2e;
    --wt-bg-card-hover: #222240;
    --wt-bg-surface: #16162b;

    --wt-text: #e0e0e0;
    --wt-text-secondary: #8892b0;
    --wt-text-muted: #5a6380;
    --wt-text-heading: #ffffff;

    --wt-border: rgba(255, 255, 255, 0.08);
    --wt-border-light: rgba(255, 255, 255, 0.04);

    --wt-radius: 12px;
    --wt-radius-sm: 8px;
    --wt-radius-lg: 20px;
    --wt-radius-full: 50px;

    --wt-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --wt-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --wt-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --wt-shadow-glow: 0 0 30px rgba(var(--wt-primary-rgb), 0.15);

    --wt-glass: rgba(255, 255, 255, 0.05);
    --wt-glass-border: rgba(255, 255, 255, 0.1);
    --wt-gradient: linear-gradient(135deg, var(--wt-primary), var(--wt-secondary));
    --wt-gradient-accent: linear-gradient(135deg, var(--wt-accent), var(--wt-primary));

    --wt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wt-font-heading: 'Outfit', 'Inter', sans-serif;

    /* (2.3.0) Vuelve a 76 px: con 5 px (01/10) el logo y los botones se cortaban arriba. */
    --wt-header-h: 76px;
    --wt-container: 1200px;
    --wt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--wt-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--wt-text);
    background-color: var(--wt-bg-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--wt-font-heading);
    color: var(--wt-text-heading);
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: var(--wt-primary);
    text-decoration: none;
    transition: color var(--wt-transition);
}

a:hover {
    color: var(--wt-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wt-container {
    max-width: var(--wt-container);
    margin: 0 auto;
    padding: 0px;
}

/* (2.2.1) Cuando la pantalla es más angosta que el contenedor (celular y tablet), el contenido
   deja el mismo margen que la cabecera y queda alineado con el logo. En escritorio no cambia. */
@media (max-width: 1240px) {
    .wt-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .wt-container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ── Header ─────────────────────────────────────────────────── */
.wt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--wt-header-h);
    /* (2.3.0) Sigue al «Fondo oscuro» de Configuración (antes, fijo); de fábrica, el mismo. */
    background: rgba(var(--wt-bg-dark-rgb, 15, 15, 26), 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--wt-border);
    transition: all var(--wt-transition);
}

.wt-header.scrolled {
    background: rgba(var(--wt-bg-dark-rgb, 15, 15, 26), 0.95);
    box-shadow: var(--wt-shadow);
}

.admin-bar .wt-header {
    top: 32px;
}

.wt-header-inner {
    max-width: var(--wt-container);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wt-logo a,
.wt-logo-text {
    font-family: var(--wt-font-heading);
    font-size: 1.5em;
    font-weight: 800;
    background: var(--wt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.wt-logo img {
    max-height: 45px;
    width: auto;
}

.wt-logo {
    flex: 0 1 auto;
    min-width: 0;
}

.wt-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.wt-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.wt-menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--wt-text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    border-radius: var(--wt-radius-sm);
    transition: all var(--wt-transition);
}

.wt-menu li a:hover,
.wt-menu li.current-menu-item a {
    color: var(--wt-text-heading);
    background: var(--wt-glass);
}

.wt-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wt-cart-btn,
.wt-account-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: var(--wt-glass);
    border: 1px solid var(--wt-border);
    border-radius: 50%;
    color: var(--wt-text);
    cursor: pointer;
    transition: all var(--wt-transition);
}

.wt-cart-btn:hover,
.wt-account-btn:hover {
    background: rgba(var(--wt-primary-rgb), 0.15);
    border-color: rgba(var(--wt-primary-rgb), 0.3);
    color: var(--wt-primary);
}

.wt-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wt-accent);
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
}

.wt-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--wt-gradient);
    color: #fff !important;
    border-radius: var(--wt-radius-full);
    font-size: 0.85em;
    font-weight: 600;
    transition: all var(--wt-transition);
}

.wt-login-icon {
    display: none;
    flex: 0 0 auto;
}

.wt-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--wt-shadow-glow);
}

/* Hamburger */
.wt-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
}

.wt-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.wt-hamburger span {
    display: block;
    height: 2px;
    background: var(--wt-text);
    border-radius: 2px;
    transition: all var(--wt-transition);
}

.wt-menu-toggle.active .wt-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.wt-menu-toggle.active .wt-hamburger span:nth-child(2) {
    opacity: 0;
}

.wt-menu-toggle.active .wt-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Cart Drawer */
.wt-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
}

.wt-cart-drawer.open {
    pointer-events: all;
}

.wt-cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity var(--wt-transition);
}

.wt-cart-drawer.open .wt-cart-drawer-overlay {
    opacity: 1;
}

.wt-cart-drawer-content {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: var(--wt-bg-card);
    border-left: 1px solid var(--wt-border);
    transform: translateX(100%);
    transition: transform var(--wt-transition);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.wt-cart-drawer.open .wt-cart-drawer-content {
    transform: translateX(0);
}

.wt-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--wt-border);
}

.wt-cart-drawer-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.wt-cart-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--wt-glass);
    color: var(--wt-text);
    font-size: 1.4em;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--wt-transition);
}

.wt-cart-close:hover {
    background: rgba(var(--wt-accent-rgb), 0.15);
    color: var(--wt-accent);
}

.wt-cart-drawer-body {
    padding: 20px;
    flex: 1;
}

/* ── Buttons ────────────────────────────────────────────────── */
.wt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--wt-font-body);
    font-size: 0.9em;
    font-weight: 600;
    border: none;
    border-radius: var(--wt-radius-full);
    cursor: pointer;
    transition: all var(--wt-transition);
    text-decoration: none;
    line-height: 1.4;
}

.wt-btn-primary {
    background: var(--wt-gradient);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(var(--wt-primary-rgb), 0.3);
}

.wt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--wt-primary-rgb), 0.4);
    color: #fff !important;
}

.wt-btn-secondary {
    background: linear-gradient(135deg, var(--wt-secondary), #00b894);
    color: #fff !important;
}

.wt-btn-outline {
    background: transparent;
    color: var(--wt-text) !important;
    border: 1px solid var(--wt-border);
}

.wt-btn-outline:hover {
    background: var(--wt-glass);
    border-color: var(--wt-primary);
    color: var(--wt-primary) !important;
}

.wt-btn-lg {
    padding: 16px 36px;
    font-size: 1em;
}

.wt-btn-sm {
    padding: 8px 18px;
    font-size: 0.8em;
}

.wt-btn-full {
    width: 100%;
    justify-content: center;
}

/* ── Hero Section ───────────────────────────────────────────── */
.wt-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--wt-bg-dark);
    overflow: hidden;
}

.wt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 15, 26, 0.92) 0%,
            rgba(26, 26, 46, 0.85) 50%,
            rgba(108, 99, 255, 0.15) 100%);
    z-index: 1;
}

.wt-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px 80px;
}

.wt-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(var(--wt-primary-rgb), 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wt-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--wt-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.wt-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.wt-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--wt-border);
}

.wt-stat {
    text-align: center;
}

.wt-stat-number {
    display: block;
    font-family: var(--wt-font-heading);
    font-size: 2em;
    font-weight: 800;
    background: var(--wt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wt-stat-label {
    font-size: 0.85em;
    color: var(--wt-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wt-stat-divider {
    width: 1px;
    background: var(--wt-border);
}

.wt-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--wt-text-muted);
    animation: wt-bounce 2s infinite;
}

@keyframes wt-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ── Sections ───────────────────────────────────────────────── */
.wt-section {
    padding: 80px 0;
}

.wt-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.wt-section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--wt-primary-rgb), 0.1);
    color: var(--wt-primary);
    font-size: 0.8em;
    font-weight: 600;
    border-radius: var(--wt-radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.wt-section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.wt-section-desc {
    color: var(--wt-text-secondary);
    font-size: 1.05em;
    max-width: 550px;
    margin: 0 auto;
}

.wt-section-action {
    text-align: center;
    margin-top: 40px;
}

/* ── Event Cards ────────────────────────────────────────────── */
.wt-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.wt-events-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wt-event-card {
    background: var(--wt-bg-card);
    border-radius: var(--wt-radius);
    overflow: hidden;
    border: 1px solid var(--wt-border);
    transition: all var(--wt-transition);
}

.wt-event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wt-shadow-lg);
    border-color: rgba(var(--wt-primary-rgb), 0.3);
}

.wt-event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wt-event-card-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--wt-bg-surface);
}

.wt-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wt-event-card:hover .wt-event-card-image img {
    transform: scale(1.08);
}

.wt-event-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wt-bg-surface), var(--wt-bg-card));
    color: var(--wt-text-muted);
}

.wt-event-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.wt-event-card-date-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--wt-radius-sm);
    padding: 8px 12px;
    text-align: center;
    min-width: 52px;
}

.wt-ecd-day {
    display: block;
    font-size: 1.4em;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.wt-ecd-month {
    display: block;
    font-size: 0.7em;
    font-weight: 600;
    color: var(--wt-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wt-event-card-body {
    padding: 20px;
}

.wt-event-card-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(var(--wt-primary-rgb), 0.1);
    color: var(--wt-primary);
    font-size: 0.75em;
    font-weight: 600;
    border-radius: var(--wt-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wt-event-card-title {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wt-event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.wt-ecm-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    color: var(--wt-text-secondary);
}

.wt-ecm-item svg {
    opacity: 0.6;
}

.wt-event-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--wt-primary);
    transition: all var(--wt-transition);
}

.wt-event-card:hover .wt-event-card-action {
    gap: 10px;
    color: var(--wt-secondary);
}

/* ── Status Badges ──────────────────────────────────────────── */
.wt-status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7em;
    font-weight: 700;
    border-radius: var(--wt-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wt-status-upcoming {
    background: rgba(var(--wt-secondary-rgb), 0.15);
    color: var(--wt-secondary);
}

.wt-status-live {
    background: rgba(var(--wt-accent-rgb), 0.15);
    color: var(--wt-accent);
    animation: wt-pulse 2s infinite;
}

.wt-status-past {
    background: rgba(255, 255, 255, 0.08);
    color: var(--wt-text-muted);
}

@keyframes wt-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ── Category Cards ─────────────────────────────────────────── */
.wt-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.wt-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px;
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    text-decoration: none;
    color: var(--wt-text);
    transition: all var(--wt-transition);
    text-align: center;
}

.wt-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--wt-primary-rgb), 0.4);
    box-shadow: var(--wt-shadow-glow);
    color: var(--wt-text-heading);
}

.wt-cat-icon {
    font-size: 2em;
    margin-bottom: 12px;
}

.wt-cat-name {
    font-size: 0.95em;
    font-weight: 600;
    margin: 0 0 4px;
}

.wt-cat-count {
    font-size: 0.75em;
    color: var(--wt-text-muted);
}

.wt-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(var(--wt-primary-rgb), 0.1);
    color: var(--wt-primary);
    font-size: 0.75em;
    font-weight: 600;
    border-radius: var(--wt-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 8px;
}

/* ── How It Works (Steps) ───────────────────────────────────── */
.wt-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wt-step-card {
    position: relative;
    padding: 40px 24px;
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    text-align: center;
    transition: all var(--wt-transition);
}

.wt-step-card:hover {
    border-color: rgba(var(--wt-primary-rgb), 0.3);
    transform: translateY(-4px);
}

.wt-step-number {
    position: absolute;
    top: -1px;
    right: 20px;
    font-family: var(--wt-font-heading);
    font-size: 4em;
    font-weight: 900;
    background: var(--wt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
}

.wt-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(var(--wt-primary-rgb), 0.1);
    border-radius: 50%;
    color: var(--wt-primary);
    margin-bottom: 20px;
}

.wt-step-card h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.wt-step-card p {
    color: var(--wt-text-secondary);
    font-size: 0.9em;
    margin: 0;
}

/* ── CTA Section ────────────────────────────────────────────── */
.wt-cta-section {
    padding-bottom: 100px;
}

.wt-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 60px;
    background: var(--wt-gradient);
    border-radius: var(--wt-radius-lg);
    position: relative;
    overflow: hidden;
}

.wt-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.wt-cta-content {
    position: relative;
    z-index: 1;
}

.wt-cta-content h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
}

.wt-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1.05em;
}

.wt-cta-actions {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.wt-cta-actions .wt-btn {
    background: #fff;
    color: var(--wt-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wt-cta-actions .wt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ── Archive Hero ───────────────────────────────────────────── */
.wt-archive-hero {
    position: relative;
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--wt-bg-dark) 0%, var(--wt-bg-card) 100%);
    text-align: center;
}

.wt-archive-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--wt-bg-body) 100%);
    opacity: 0.5;
}

.wt-archive-hero .wt-container {
    position: relative;
    z-index: 1;
}

.wt-archive-pretitle {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(var(--wt-primary-rgb), 0.1);
    color: var(--wt-primary);
    font-size: 0.8em;
    font-weight: 600;
    border-radius: var(--wt-radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.wt-archive-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.wt-archive-desc {
    color: var(--wt-text-secondary);
    font-size: 1.05em;
}

/* ── Archive Search Section ─────────────────────────────────── */
.wt-archive-search {
    position: relative;
    margin-top: -30px;
    margin-bottom: 24px;
    z-index: 2;
}

.wt-archive-search .wt-container {
    max-width: 800px;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.wt-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.wt-filter-tag {
    padding: 8px 20px;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--wt-text-secondary);
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius-full);
    transition: all var(--wt-transition);
    text-decoration: none;
}

.wt-filter-tag:hover,
.wt-filter-tag.active {
    color: #fff;
    background: var(--wt-gradient);
    border-color: transparent;
}

/* ── Single Event ───────────────────────────────────────────── */
.wt-event-hero {
    position: relative;
    padding: 160px 0 60px;
    background-size: cover;
    background-position: center;
    background-color: var(--wt-bg-dark);
}

.wt-event-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.7) 0%, rgba(15, 15, 26, 0.95) 100%);
}

.wt-event-hero-content {
    position: relative;
    z-index: 1;
}

.wt-event-hero-info {
    margin-top: 20px;
}

.wt-event-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin: 12px 0 16px;
}

.wt-event-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.wt-event-meta-item {
    display: flex;
    align-items: center;
}

.wt-event-date,
.wt-event-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wt-text-secondary);
    font-size: 0.95em;
}

.wt-event-countdown {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--wt-accent-rgb), 0.1);
    color: var(--wt-accent);
    font-size: 0.85em;
    font-weight: 600;
    border-radius: var(--wt-radius-full);
    margin-top: 8px;
}

/* Event Layout */
.wt-event-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding-top: 30px;
}

.wt-event-info-card {
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    padding: 24px;
    margin-bottom: 30px;
}

.wt-event-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wt-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wt-info-icon {
    font-size: 1.3em;
}

.wt-info-label {
    display: block;
    font-size: 0.75em;
    color: var(--wt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wt-info-value {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
}

.wt-event-description {
    margin-bottom: 30px;
}

.wt-event-description h2 {
    font-size: 1.3em;
    margin-bottom: 16px;
}

.wt-event-description .entry-content {
    color: var(--wt-text-secondary);
    line-height: 1.8;
}

/* Sidebar */
.wt-event-sidebar {}

.wt-sidebar-card {
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.wt-sidebar-card h3 {
    font-size: 1em;
    margin: 0 0 16px;
}

.wt-share-buttons {
    display: flex;
    gap: 10px;
}

.wt-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all var(--wt-transition);
}

.wt-share-fb {
    background: rgba(59, 89, 152, 0.15);
    color: #3b5998;
}

.wt-share-tw {
    background: rgba(29, 161, 242, 0.15);
    color: #1da1f2;
}

.wt-share-wa {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.wt-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--wt-shadow-sm);
}

/* Related Events */
.wt-related-events {
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid var(--wt-border);
}

.wt-related-events .wt-section-title {
    text-align: center;
    margin-bottom: 30px;
}

/* ── Posts Grid ──────────────────────────────────────────────── */
.wt-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.wt-post-card {
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    overflow: hidden;
    transition: all var(--wt-transition);
}

.wt-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wt-shadow);
}

.wt-post-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.wt-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wt-post-content {
    padding: 20px;
}

.wt-post-title {
    font-size: 1.1em;
    margin: 0 0 8px;
}

.wt-post-title a {
    color: var(--wt-text-heading);
    text-decoration: none;
}

.wt-post-title a:hover {
    color: var(--wt-primary);
}

.wt-post-meta {
    font-size: 0.8em;
    color: var(--wt-text-muted);
    margin-bottom: 10px;
}

.wt-post-excerpt {
    font-size: 0.9em;
    color: var(--wt-text-secondary);
}

.wt-post-type-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(var(--wt-primary-rgb), 0.1);
    color: var(--wt-primary);
    font-size: 0.7em;
    font-weight: 600;
    border-radius: var(--wt-radius-full);
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* ── Single Post & Page ─────────────────────────────────────── */
.wt-page-header-compact {
    padding: 100px 0 30px;
    background: linear-gradient(135deg, var(--wt-bg-dark), var(--wt-bg-card));
}

.wt-page-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 12px 0 0;
}

.wt-page-content,
.wt-single-post {
    padding: 00px;
    max-width: initial;
}

.wt-single-thumb {
    border-radius: var(--wt-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.wt-single-header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.wt-single-body {
    color: var(--wt-text-secondary);
    line-height: 1.8;
}

.wt-single-body h2,
.wt-single-body h3 {
    color: var(--wt-text-heading);
    margin-top: 30px;
}

/* ── Pagination ─────────────────────────────────────────────── */
.wt-pagination {
    margin-top: 40px;
    text-align: center;
}

.wt-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius-sm);
    color: var(--wt-text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    transition: all var(--wt-transition);
    text-decoration: none;
}

.wt-pagination .page-numbers:hover,
.wt-pagination .page-numbers.current {
    background: var(--wt-gradient);
    border-color: transparent;
    color: #fff;
}

/* ── 404 ────────────────────────────────────────────────────── */
.wt-404-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--wt-header-h);
}

.wt-404-content {
    text-align: center;
    max-width: 500px;
}

.wt-404-number {
    font-family: var(--wt-font-heading);
    font-size: 8rem;
    font-weight: 900;
    background: var(--wt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.wt-404-content h1 {
    font-size: 1.8em;
    margin-bottom: 12px;
}

.wt-404-content p {
    color: var(--wt-text-secondary);
    margin-bottom: 30px;
}

.wt-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ── Empty States ───────────────────────────────────────────── */
.wt-empty-events,
.wt-content-none {
    text-align: center;
    padding: 80px 20px;
}

.wt-empty-icon {
    font-size: 3em;
    margin-bottom: 16px;
}

.wt-empty-events h3,
.wt-content-none h2 {
    margin-bottom: 8px;
}

.wt-empty-events p,
.wt-content-none p {
    color: var(--wt-text-secondary);
    margin-bottom: 20px;
}

.wt-empty-search {
    max-width: 400px;
    margin: 0 auto;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.wt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    flex-wrap: wrap;
}

.wt-breadcrumb a {
    color: var(--wt-text-muted);
    text-decoration: none;
}

.wt-breadcrumb a:hover {
    color: var(--wt-primary);
}

.wt-bc-sep {
    display: inline-flex;
    color: var(--wt-text-muted);
    opacity: 0.5;
}

.wt-bc-current {
    color: var(--wt-text-secondary);
}

/* ── Footer ─────────────────────────────────────────────────── */
.wt-footer {
    background: var(--wt-bg-dark);
    border-top: 1px solid var(--wt-border);
}

.wt-footer-top {
    padding: 60px 0 40px;
}

.wt-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.wt-footer-logo {
    font-family: var(--wt-font-heading);
    font-size: 1.5em;
    font-weight: 800;
    background: var(--wt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px;
}

.wt-footer-desc {
    color: var(--wt-text-muted);
    font-size: 0.9em;
    line-height: 1.6;
}

.wt-footer-col .widget-title,
.wt-footer-col h4 {
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--wt-text-heading);
}

.wt-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wt-footer-menu li {
    margin-bottom: 8px;
}

.wt-footer-menu a {
    color: var(--wt-text-muted);
    font-size: 0.9em;
    transition: color var(--wt-transition);
}

.wt-footer-menu a:hover {
    color: var(--wt-primary);
}

.wt-footer-events {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wt-footer-events li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wt-border-light);
}

.wt-footer-events a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wt-text-muted);
    font-size: 0.85em;
}

.wt-footer-events a:hover {
    color: var(--wt-primary);
}

.wt-fe-date {
    flex-shrink: 0;
    padding: 4px 8px;
    background: rgba(var(--wt-primary-rgb), 0.1);
    color: var(--wt-primary);
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 4px;
}

.wt-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wt-footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wt-text-muted);
    font-size: 0.85em;
    margin-bottom: 10px;
}

.wt-footer-contact svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.wt-footer-contact a {
    color: var(--wt-text-muted);
    transition: color var(--wt-transition);
}

.wt-footer-contact a:hover {
    color: var(--wt-primary);
}

.wt-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.wt-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--wt-glass);
    border: 1px solid var(--wt-border);
    color: var(--wt-text-secondary);
    transition: all var(--wt-transition);
}

.wt-social-link:hover {
    background: rgba(var(--wt-primary-rgb), 0.15);
    border-color: rgba(var(--wt-primary-rgb), 0.3);
    color: var(--wt-primary);
    transform: translateY(-2px);
}

.wt-social-link svg {
    width: 18px;
    height: 18px;
}

.wt-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--wt-border-light);
}

.wt-footer-bottom .wt-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wt-footer-bottom p {
    color: var(--wt-text-muted);
    font-size: 0.8em;
    margin: 0;
}

.wt-footer-powered strong {
    background: var(--wt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Main padding for header ────────────────────────────────── */
.wt-main {
    padding-top: 0;
}

.wt-event-main {
    padding-bottom: 80px;
}

/* ── Animations ─────────────────────────────────────────────── */
.wt-animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: wt-fade-up 0.8s ease forwards;
}

.wt-delay-1 {
    animation-delay: 0.15s;
}

.wt-delay-2 {
    animation-delay: 0.3s;
}

.wt-delay-3 {
    animation-delay: 0.45s;
}

@keyframes wt-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Plugin panel overrides ─────────────────────────────────── */
.wa-frontend-panel {
    background: var(--wt-bg-card);
    border-radius: var(--wt-radius);
    padding: 24px;
    border: 1px solid var(--wt-border);
}

.wa-panel-header h3 {
    color: var(--wt-text-heading);
}

.wa-kpi-card {
    background: var(--wt-bg-surface);
    border-color: var(--wt-border);
}

.wa-kpi-number {
    color: var(--wt-text-heading);
}

.wa-kpi-label {
    color: var(--wt-text-muted);
}

.wa-panel-table th {
    background: var(--wt-bg-surface);
    color: var(--wt-text-heading);
    border-color: var(--wt-border);
}

.wa-panel-table td {
    border-color: var(--wt-border);
    color: var(--wt-text);
}

.wa-panel-table tr:hover td {
    background: var(--wt-bg-card-hover);
}

.wa-empty-state {
    background: var(--wt-bg-surface);
    border-color: var(--wt-border);
    color: var(--wt-text-muted);
}

.wa-chart-container {
    background: var(--wt-bg-surface);
    border-color: var(--wt-border);
}

.wa-chart-container h4 {
    color: var(--wt-text-secondary);
}

.wa-tickets-filters select {
    background: var(--wt-bg-surface);
    border-color: var(--wt-border);
    color: var(--wt-text);
}

.wa-form input[type="text"],
.wa-form input[type="number"],
.wa-form input[type="datetime-local"],
.wa-form textarea,
.wa-form select {
    background: var(--wt-bg-surface);
    border-color: var(--wt-border);
    color: var(--wt-text);
}

.wa-form input:focus,
.wa-form textarea:focus,
.wa-form select:focus {
    border-color: var(--wt-primary);
    box-shadow: 0 0 0 2px rgba(var(--wt-primary-rgb), 0.2);
}

.wa-form label {
    color: var(--wt-text-secondary);
}

/* Plugin Buttons */
.wa-btn-primary {
    background: var(--wt-gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--wt-radius-full) !important;
    box-shadow: 0 4px 15px rgba(var(--wt-primary-rgb), 0.3) !important;
    transition: all var(--wt-transition) !important;
}

.wa-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(var(--wt-primary-rgb), 0.4) !important;
}

.wa-btn-danger {
    color: var(--wt-accent) !important;
    border-color: rgba(var(--wt-accent-rgb), 0.4) !important;
    background: transparent !important;
    border-radius: var(--wt-radius-full) !important;
    transition: all var(--wt-transition) !important;
}

.wa-btn-danger:hover {
    background: rgba(var(--wt-accent-rgb), 0.15) !important;
    color: var(--wt-accent) !important;
    border-color: var(--wt-accent) !important;
}

.wa-btn-pdf {
    background: linear-gradient(135deg, var(--wt-accent), #cc3366) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--wt-radius-full) !important;
    box-shadow: 0 4px 15px rgba(var(--wt-accent-rgb), 0.3) !important;
    transition: all var(--wt-transition) !important;
}

.wa-btn-pdf:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(var(--wt-accent-rgb), 0.4) !important;
}

.wa-btn-download-pdf {
    color: var(--wt-primary);
    transition: color var(--wt-transition);
}

.wa-btn-download-pdf:hover {
    color: var(--wt-secondary);
}

/* Plugin Status Badges */
.wa-status {
    border-radius: var(--wt-radius-full);
}

.wa-status-publish,
.wa-status-active {
    background: rgba(var(--wt-secondary-rgb), 0.15);
    color: var(--wt-secondary);
}

.wa-status-draft {
    background: rgba(255, 179, 0, 0.15);
    color: #ffb300;
}

.wa-status-pending {
    background: rgba(255, 213, 79, 0.15);
    color: #ffd54f;
}

.wa-status-used {
    background: rgba(255, 255, 255, 0.08);
    color: var(--wt-text-muted);
}

.wa-status-cancelled {
    background: rgba(var(--wt-accent-rgb), 0.15);
    color: var(--wt-accent);
}

/* Tickets Order Groups */
.wa-tickets-order-group {
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    overflow: hidden;
    background: var(--wt-bg-card);
}

.wa-tickets-order-header {
    background: var(--wt-bg-surface);
    border-bottom: 1px solid var(--wt-border);
}

.wa-tickets-order-header h4 {
    color: var(--wt-text-heading);
}

.wa-tickets-order-header h4 small {
    color: var(--wt-text-muted);
}

/* Progress Bars */
.wa-progress-bar {
    background: var(--wt-bg-surface);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius-full);
}

.wa-progress-fill {
    background: var(--wt-gradient) !important;
    border-radius: var(--wt-radius-full);
}

.wa-progress-bar span {
    color: var(--wt-text);
}

/* KPI Card Variants */
.wa-kpi-active {
    border-left: 3px solid var(--wt-secondary);
}

.wa-kpi-active .wa-kpi-number {
    color: var(--wt-secondary);
}

.wa-kpi-used {
    border-left: 3px solid var(--wt-primary);
}

.wa-kpi-used .wa-kpi-number {
    color: var(--wt-primary);
}

.wa-kpi-cancelled {
    border-left: 3px solid var(--wt-accent);
}

.wa-kpi-cancelled .wa-kpi-number {
    color: var(--wt-accent);
}

.wa-kpi-row {
    gap: 16px;
}

.wa-kpi-card {
    border-radius: var(--wt-radius);
    transition: all var(--wt-transition);
}

.wa-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wt-shadow-sm);
}

/* Charts */
.wa-chart-container {
    border-radius: var(--wt-radius);
}

/* Builder Frontend */
.wa-builder-frontend {
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
}

.wa-builder-frontend .wa-builder-sidebar,
.wa-builder-frontend .wa-builder-layers {
    background: var(--wt-bg-surface);
    border-color: var(--wt-border);
    color: var(--wt-text);
}

.wa-builder-frontend .wa-builder-sidebar h3,
.wa-builder-frontend .wa-builder-layers h3 {
    color: var(--wt-text-heading);
}

/* Form Actions */
.wa-form-actions {
    border-top: 1px solid var(--wt-border);
}

.wa-form-row-split .wa-half label {
    color: var(--wt-text-secondary);
}

/* Tickets Section on Order Details */
.wa-tickets-section {
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    padding: 24px;
}

.wa-tickets-section h2 {
    color: var(--wt-text-heading);
}

.wa-tickets-section .tickets_table {
    background: var(--wt-bg-card);
}

/* Plugin panel table button overrides */
.wa-panel-table .button,
.wa-panel-table .button-small {
    background: var(--wt-bg-surface) !important;
    color: var(--wt-primary) !important;
    border: 1px solid rgba(var(--wt-primary-rgb), 0.3) !important;
    border-radius: var(--wt-radius-sm) !important;
    font-size: 0.8em !important;
    padding: 4px 12px !important;
    transition: all var(--wt-transition) !important;
    box-shadow: none !important;
}

.wa-panel-table .button:hover,
.wa-panel-table .button-small:hover {
    background: rgba(var(--wt-primary-rgb), 0.1) !important;
    border-color: var(--wt-primary) !important;
    transform: none !important;
}

/* Plugin filters bar override */
.wa-tickets-filters {
    gap: 12px;
}

.wa-tickets-filters select {
    border-radius: var(--wt-radius-sm);
    padding: 8px 14px;
    font-size: 0.9em;
    transition: border-color var(--wt-transition);
}

.wa-tickets-filters select:focus {
    border-color: var(--wt-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--wt-primary-rgb), 0.15);
}

/* Empty state override */
.wa-empty-state {
    border-style: dashed;
    border-radius: var(--wt-radius);
}

/* Panel header actions alignment */
.wa-panel-header .button,
.wa-panel-header .wa-btn-primary {
    border-radius: var(--wt-radius-full) !important;
    font-size: 0.85em !important;
}

/* ── Event Search Bar ──────────────────────────────────────── */
.wt-hero-search {
    margin-top: 36px;
    max-width: 800px;
    width: 100%;
}

.wt-search-events {
    background: var(--wt-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    padding: 8px;
}

.wt-search-fields {
    display: flex;
    gap: 6px;
    align-items: center;
}

.wt-search-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.wt-search-keyword {
    flex: 2;
}

.wt-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wt-text-muted);
    pointer-events: none;
}

.wt-search-field input,
.wt-search-field select {
    width: 100%;
    padding: 12px 14px 12px 42px !important;
    background: var(--wt-bg-surface) !important;
    border: 1px solid transparent !important;
    border-radius: var(--wt-radius-sm) !important;
    color: var(--wt-text) !important;
    font-family: var(--wt-font-body) !important;
    font-size: 0.9em;
    transition: border-color var(--wt-transition);
    appearance: none;
    -webkit-appearance: none;
}

.wt-search-field input:focus,
.wt-search-field select:focus {
    border-color: var(--wt-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--wt-primary-rgb), 0.15) !important;
}

.wt-search-field input::placeholder {
    color: var(--wt-text-muted);
}

/* Date input color-scheme for dark */
.wt-search-date input[type="date"] {
    color-scheme: dark;
}

.wt-search-category select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 30px !important;
}

.wt-search-submit {
    padding: 12px 24px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.wt-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .wt-search-fields {
        flex-direction: column;
    }

    .wt-search-field,
    .wt-search-keyword {
        flex: none;
        width: 100%;
    }

    .wt-search-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ── Seating Charts Dark Theme Overrides ────────────────────── */
.wa-seating-frontend-wrapper {
    background: var(--wt-bg-card);
    border-color: var(--wt-border);
    color: var(--wt-text);
}

.wa-seating-viewport {
    background: var(--wt-bg-dark);
    border-bottom-color: var(--wt-border);
}

.wa-seating-canvas {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.wa-seating-controls {
    background: var(--wt-bg-surface);
    border-bottom-color: var(--wt-border);
}

.wa-seating-zoom button {
    background: var(--wt-bg-card);
    border-color: var(--wt-border);
    color: var(--wt-text);
    transition: all var(--wt-transition);
}

.wa-seating-zoom button:hover {
    background: var(--wt-bg-card-hover);
    border-color: rgba(var(--wt-primary-rgb), 0.3);
    color: var(--wt-primary);
}

.wa-seating-legend {
    background: var(--wt-bg-surface);
    border-radius: var(--wt-radius-sm);
    color: var(--wt-text-secondary);
}

.wa-legend-color {
    border-color: rgba(255, 255, 255, 0.15);
}

.legend-avail {
    background: var(--wt-primary) !important;
}

.legend-taken {
    background: var(--wt-text-muted) !important;
}

.legend-selected {
    background: var(--wt-accent) !important;
    box-shadow: 0 0 0 2px var(--wt-bg-card), 0 0 0 3px var(--wt-accent) !important;
}

.wa-seating-cart-panel {
    background: var(--wt-bg-card);
    border-top: 1px solid var(--wt-border);
}

.wa-seating-cart-panel h3 {
    color: var(--wt-text-heading);
}

.wa-seating-cart-list {
    background: var(--wt-bg-surface);
    border-color: var(--wt-border);
}

.wa-seating-cart-list li {
    border-bottom-color: var(--wt-border);
    color: var(--wt-text);
}

.wa-seating-cart-list li.empty-msg {
    color: var(--wt-text-muted);
}

.wa-seat-remove {
    color: var(--wt-accent);
}

.wa-seating-cart-footer {
    border-top-color: var(--wt-border);
}

.wa-seating-total {
    color: var(--wt-text-heading);
}

.wa-seating-add-btn {
    background: var(--wt-gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--wt-radius-full) !important;
    box-shadow: 0 4px 15px rgba(var(--wt-primary-rgb), 0.3) !important;
    transition: all var(--wt-transition) !important;
}

.wa-seating-add-btn:not(:disabled):hover {
    background: var(--wt-gradient) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(var(--wt-primary-rgb), 0.4) !important;
}

.wa-seating-add-btn:disabled {
    opacity: 0.4;
}

/* Seat elements in dark theme */
.wa-front-seat[data-type="text"] {
    color: var(--wt-text-secondary) !important;
}

.wa-front-seat.status-taken {
    color: var(--wt-text-muted) !important;
    opacity: 0.5;
}

.wa-front-seat.status-selected {
    box-shadow: 0 0 0 2px var(--wt-bg-card), 0 0 0 3px var(--wt-accent) !important;
}

/* Seating popup dark overrides */
.wa-seating-popup-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.wa-seating-popup-content {
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.wa-seating-popup-header {
    background: var(--wt-bg-surface);
    border-bottom-color: var(--wt-border);
}

.wa-seating-popup-header h3 {
    color: var(--wt-text-heading);
}

.wa-seating-popup-close {
    color: var(--wt-text-muted);
}

.wa-seating-popup-close:hover {
    color: var(--wt-accent);
}

.wa-seating-popup-body {
    background: var(--wt-bg-card);
}

.wa-seating-popup-trigger {
    background: var(--wt-gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--wt-radius-full) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(var(--wt-primary-rgb), 0.3) !important;
    transition: all var(--wt-transition) !important;
}

.wa-seating-popup-trigger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(var(--wt-primary-rgb), 0.4) !important;
}

/* ── Entradas/Gradas CSS Dark Overrides ─────────────────────── */
.tc-entradas-tabla thead {
    background: var(--wt-bg-surface) !important;
    color: var(--wt-text-heading) !important;
}

.tc-entradas-tabla thead th {
    border-color: var(--wt-border) !important;
    color: var(--wt-text-heading) !important;
}

.tc-entradas-tabla tbody td {
    background: var(--wt-bg-card) !important;
    border-color: var(--wt-border) !important;
    color: var(--wt-text) !important;
}

.tc-entradas-tabla tbody tr:hover td {
    background: var(--wt-bg-card-hover) !important;
}

.tc-btn {
    background: var(--wt-gradient) !important;
    color: #fff !important;
    border-radius: var(--wt-radius-sm) !important;
    transition: all var(--wt-transition) !important;
}

.tc-btn:hover,
.tc-btn:focus {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(var(--wt-primary-rgb), 0.3) !important;
}

.tc-btn--agotado {
    background: rgba(var(--wt-accent-rgb), 0.2) !important;
    color: var(--wt-accent) !important;
}

.tc-qty-wrap {
    border-color: var(--wt-border) !important;
    border-radius: var(--wt-radius-sm) !important;
    overflow: hidden;
}

.tc-qty-wrap input.qty {
    color: var(--wt-text) !important;
    background: var(--wt-bg-surface) !important;
}

.tc-qty-btn {
    background: var(--wt-bg-surface) !important;
    color: var(--wt-text-heading) !important;
}

/* Fix hardcoded Tickera quantity selector colors */
.tickera table.event_tickets div.quantity input.tc-wb-quantity-selector {
    color: var(--wt-text) !important;
    background-color: var(--wt-bg-surface) !important;
    border-color: var(--wt-border) !important;
}

/* Entradas responsive card mode dark override */
@media (max-width: 600px) {
    .tc-entradas-tabla td::before {
        background: var(--wt-bg-surface) !important;
        color: var(--wt-text-heading) !important;
    }
}

/* ── Cart Drawer Responsive Overrides ──────────────────────── */
.wt-cart-drawer-body .woocommerce-mini-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--wt-radius-sm);
    border: 1px solid var(--wt-border);
}

.wt-cart-drawer-body .woocommerce-mini-cart-item .quantity {
    color: var(--wt-text-secondary);
    font-size: 0.85em;
}

.wt-cart-drawer-body .woocommerce-mini-cart-item .amount {
    color: var(--wt-secondary) !important;
}

.wt-cart-drawer-body .woocommerce-mini-cart-item a.remove {
    color: var(--wt-accent) !important;
    font-size: 1.2em;
}

@media (max-width: 480px) {
    .wt-cart-drawer-content {
        width: 100%;
        max-width: 100vw;
    }

    .wt-cart-drawer-body .woocommerce-mini-cart-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0;
    }

    .wt-cart-drawer-body .woocommerce-mini-cart__buttons a {
        padding: 10px 16px !important;
        font-size: 0.85em !important;
    }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wt-event-layout {
        grid-template-columns: 1fr;
    }

    .wt-event-sidebar {
        order: -1;
    }

    .wt-events-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wt-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wt-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --wt-header-h: 68px;
    }

    .wt-header-inner {
        gap: 10px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .wt-logo {
        flex: 1 1 auto;
    }

    .wt-logo img {
        max-width: 180px;
        max-height: 40px;
    }

    .wt-header-actions {
        gap: 8px;
    }

    .wt-nav {
        display: none;
    }

    .wt-nav.open {
        display: flex;
        position: fixed;
        top: var(--wt-header-h);
        left: 0;
        right: 0;
        bottom: auto;
        height: calc(100vh - var(--wt-header-h));
        background: var(--wt-bg-dark);
        z-index: 999;
        padding: 20px;
        overflow-y: auto;
    }

    .wt-nav.open .wt-menu {
        flex: 0 0 auto;
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .wt-nav.open .wt-menu li a {
        padding: 14px 16px;
        font-size: 1.1em;
    }

    .wt-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
    }

    .wt-events-grid,
    .wt-events-grid-3,
    .wt-posts-grid {
        grid-template-columns: 1fr;
    }

    .wt-steps-grid {
        grid-template-columns: 1fr;
    }

    .wt-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wt-footer-grid {
        grid-template-columns: 1fr;
    }

    .wt-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .wt-stat-divider {
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }

    .wt-event-info-grid {
        grid-template-columns: 1fr;
    }

    .wt-hero {
        min-height: 90vh;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .wt-header {
        top: 46px;
    }

    .admin-bar .wt-nav.open {
        top: calc(46px + var(--wt-header-h));
        height: calc(100vh - 46px - var(--wt-header-h));
    }
}

@media (max-width: 480px) {
    .wt-logo img {
        max-width: 150px;
        max-height: 36px;
    }

    .wt-login-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--wt-border);
        border-radius: 50%;
    }

    .wt-login-icon {
        display: block;
    }

    .wt-login-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .wt-hero-title {
        font-size: 2rem;
    }

    .wt-btn-lg {
        padding: 14px 28px;
        font-size: 0.9em;
    }

    .wt-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .wt-filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .wt-filter-tag {
        white-space: nowrap;
    }
}


/* ══════════════════════════════════════════════════════════════
 * (2.2.2) Fase D de PROPUESTA_MEJORAS_TICKETS_2026-10-19.md.
 * Reglas nuevas al final: las de arriba no se tocan.
 * ══════════════════════════════════════════════════════════════ */

/* ── D2 · Tarjetas de evento: estado y precio «desde» ───────── */
.wt-event-card-badges {
    flex-wrap: wrap;
    max-width: calc(100% - 100px);
}

.wt-status-today {
    background: var(--wt-gradient);
    color: #fff;
}

.wt-status-soldout {
    background: rgba(var(--wt-accent-rgb), 0.92);
    color: #fff;
}

.wt-status-few {
    background: rgba(245, 165, 36, 0.92);
    color: #1a1205;
}

.wt-event-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.wt-event-card-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--wt-text-heading);
}

.wt-event-card-price small {
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wt-text-secondary);
}

/* ── D3 · Página del evento ─────────────────────────────────── */
.wt-event-hero--img {
    overflow: hidden;
}

.wt-event-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* La cuenta regresiva en un color neutro; el de alerta, sólo el último día. */
.wt-event-countdown {
    background: rgba(255, 255, 255, 0.08);
    color: var(--wt-text);
}

.wt-event-countdown--hoy {
    background: rgba(var(--wt-accent-rgb), 0.12);
    color: var(--wt-accent);
}

.wt-info-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--wt-primary);
    text-decoration: none;
}

.wt-info-link:hover,
.wt-info-link:focus {
    color: var(--wt-secondary);
    text-decoration: underline;
}

.wt-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.wt-info-links .wt-info-link {
    margin-top: 0;
}

.wt-event-tickets {
    margin-bottom: 30px;
}

.wt-event-tickets > h2 {
    font-size: 1.3em;
    margin: 0 0 16px;
}

.wt-event-tickets .wa-entradas-auto-display {
    margin: 0;
}

/* Que la cabecera fija no tape lo que se abre con un enlace (#entradas, ?wa_funcion=…#…). */
.wt-event-tickets,
[id^="wa-event-purchase-"],
.wa-funcion-elegida,
.wtk-compra {
    scroll-margin-top: 96px;
}

.wt-event-policy .entry-content p:last-child {
    margin-bottom: 0;
}

.wt-ver-entradas {
    display: none;
}

@media (max-width: 768px) {
    .wt-ver-entradas:not([hidden]) {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        border-radius: var(--wt-radius-full);
        background: var(--wt-gradient);
        color: #fff;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }
}

/* ── D4 · Portada y pie ─────────────────────────────────────── */
.wt-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.wt-footer-legal a {
    color: var(--wt-text-muted);
    font-size: 0.85em;
    text-decoration: none;
    transition: color var(--wt-transition);
}

.wt-footer-legal a:hover,
.wt-footer-legal a:focus {
    color: var(--wt-primary);
}

/* ── D9 · Sin los CSS de WooCommerce ──────────────────────────── */
/* Fuera de las páginas de WooCommerce ya no se cargan sus tres CSS (inc/enqueue.php) y el body
   lleva .wt-sin-css-woo. Lo que el tema tomaba de ellos en esas páginas, acá y con los mismos
   valores: el carrito desplegable del encabezado (la «×», la línea, sus datos, el total, los
   botones y el aviso de «quitando») y la caja de los avisos. En las páginas de WooCommerce no
   aplica nada de esto: siguen sus CSS. */
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item {
    position: relative;
    margin: 0;
    padding: 0 0 4px 2em;
    list-style: none;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item::before,
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item::after,
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl::before,
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl::after,
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart__buttons::before,
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart__buttons::after {
    content: " ";
    display: table;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item::after,
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl::after,
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart__buttons::after {
    clear: both;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item a.remove {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
    border: 0;
    border-radius: 100%;
    font-weight: 700;
    text-decoration: none;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item img {
    float: right;
    margin-left: 4px;
    box-shadow: none;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl {
    margin: 0;
    padding-left: 1em;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl dt,
body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl dd {
    display: inline-block;
    float: left;
    margin-bottom: 1em;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl dt {
    font-weight: 700;
    padding: 0 0 0.25em;
    margin: 0 4px 0 0;
    clear: left;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl dd {
    padding: 0 0 0.25em;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart-item dl dd p:last-child {
    margin-bottom: 0;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart__total {
    padding: 4px 0 0;
    border-top: 3px double #e9e6ed;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart__total strong {
    display: inline-block;
    min-width: 40px;
}

body.wt-sin-css-woo .wt-cart-drawer-body .woocommerce-mini-cart__buttons a {
    position: relative;
    margin: 0 5px 5px 0;
    line-height: 1;
}

/* Al quitar una entrada, WooCommerce tapa la línea y gira su ícono de «cargando». */
body.wt-sin-css-woo .wt-cart-drawer-body .blockUI.blockOverlay::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    margin-left: -0.5em;
    font-size: 2em;
    line-height: 1;
    text-align: center;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 91.3 91.1'%3E%3Ccircle cx='45.7' cy='45.7' r='45.7'/%3E%3Ccircle fill='%23FFF' cx='45.7' cy='24.4' r='12.5'/%3E%3C/svg%3E") center center;
    background-size: cover;
    animation: wt-girar 1s ease-in-out infinite;
}

@keyframes wt-girar {
    100% {
        transform: rotate(360deg);
    }
}

/* La caja de los avisos (por ejemplo, el de un mapa de butacas que no está disponible). El ícono
   no: es la fuente de WooCommerce. */
body.wt-sin-css-woo .woocommerce-error,
body.wt-sin-css-woo .woocommerce-info,
body.wt-sin-css-woo .woocommerce-message {
    position: relative;
    width: auto;
    margin: 0 0 2em;
    border-top: 3px solid var(--wt-border);
    list-style: none outside;
    word-wrap: break-word;
}

body.wt-sin-css-woo .woocommerce-error::after,
body.wt-sin-css-woo .woocommerce-info::after,
body.wt-sin-css-woo .woocommerce-message::after {
    content: " ";
    display: table;
    clear: both;
}

body.wt-sin-css-woo .woocommerce-error li,
body.wt-sin-css-woo .woocommerce-info li,
body.wt-sin-css-woo .woocommerce-message li {
    list-style: none outside !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

body.wt-sin-css-woo .woocommerce-error .button,
body.wt-sin-css-woo .woocommerce-info .button,
body.wt-sin-css-woo .woocommerce-message .button {
    float: right;
}

/* ══════════════════════════════════════════════════════════════
   2.3.0 · Diseños del sitio (panel › Diseño del sitio)
   Con los de defecto (Clásico, Completo) nada de esto se aplica:
   todo cuelga de clases del body que sólo aparecen con otro diseño.
   ══════════════════════════════════════════════════════════════ */

/* ── Vista previa ───────────────────────────────────────────── */
.wt-previa-aviso {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3000;
    padding: 10px 16px;
    border-radius: var(--wt-radius-sm);
    background: #1f2937;
    color: #fff;
    font-size: 0.85em;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wt-en-previa .wt-footer-bottom {
    padding-bottom: 72px;
}

/* ── Botón destacado del encabezado ─────────────────────────── */
.wt-enc-boton {
    padding: 10px 20px;
    font-size: 0.85em;
    white-space: nowrap;
}

/* Su copia dentro del menú: sólo en el celular (ahí la barra no tiene lugar). */
.wt-menu-boton {
    display: none;
}

/* En la tablet, junto al menú y los botones, el logo se quedaba sin lugar: el botón se ve desde 1101 px (en
   «Mínimo», que no lleva el menú en la barra, siempre). */
@media (min-width: 769px) and (max-width: 1100px) {
    body:not(.wt-enc-minimo) .wt-enc-boton {
        display: none;
    }
}

/* ── Tamaño del logo ────────────────────────────────────────── */
.wt-logo-chico .wt-logo img {
    max-height: 34px;
}

.wt-logo-grande .wt-logo img {
    max-height: 60px;
}

.wt-logo-chico .wt-logo a,
.wt-logo-chico .wt-logo-text {
    font-size: 1.25em;
}

.wt-logo-grande .wt-logo a,
.wt-logo-grande .wt-logo-text {
    font-size: 1.85em;
}

/* ── Encabezado que no queda fijo al bajar ──────────────────── */
.wt-enc-no-fijo .wt-header {
    position: absolute;
}

/* ── Con franja ─────────────────────────────────────────────── */
body.wt-enc-franja {
    --wt-franja-h: 36px;
    --wt-header-h: 112px;
}

.wt-franja {
    height: var(--wt-franja-h, 36px);
    background: rgba(var(--wt-primary-rgb), 0.18);
    border-bottom: 1px solid var(--wt-border);
    color: var(--wt-text-heading);
    font-size: 0.8em;
}

.wt-franja-inner {
    max-width: var(--wt-container);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.wt-franja-texto {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wt-franja-datos {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    margin: 0 0 0 auto;
}

.wt-franja-texto + .wt-franja-datos {
    margin-left: 0;
}

.wt-franja a {
    color: var(--wt-text-heading);
    text-decoration: none;
}

.wt-franja a:hover,
.wt-franja a:focus {
    color: var(--wt-text-heading);
    text-decoration: underline;
}

.wt-franja-redes {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wt-franja-red svg {
    display: block;
    width: 15px;
    height: 15px;
}

.wt-enc-franja .wt-header-inner {
    height: calc(100% - var(--wt-franja-h, 36px));
}

/* Los encabezados más altos que el de siempre (Con franja, Centrado): el título de las páginas (también el
   carrito, el checkout y Mi cuenta) baja lo mismo; con el de siempre, los 100 px de siempre. */
body.wt-enc-franja .wt-page-header-compact,
body.wt-enc-centrado .wt-page-header-compact {
    padding-top: max(100px, calc(var(--wt-header-h) + 24px));
}

/* ── Sobre la portada (sólo en el inicio y arriba de todo) ──── */
.wt-enc-sobre .wt-header:not(.scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
}

.wt-enc-sobre .wt-header:not(.scrolled) .wt-cart-btn,
.wt-enc-sobre .wt-header:not(.scrolled) .wt-account-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.wt-enc-sobre .wt-header:not(.scrolled) .wt-hamburger span {
    background: #fff;
}

@media (min-width: 769px) {
    .wt-enc-sobre .wt-header:not(.scrolled) .wt-menu li a {
        color: rgba(255, 255, 255, 0.88);
    }

    .wt-enc-sobre .wt-header:not(.scrolled) .wt-menu li a:hover,
    .wt-enc-sobre .wt-header:not(.scrolled) .wt-menu li.current-menu-item a {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }
}

/* ── Centrado (en la compu; en el celular, como el Clásico) ─── */
@media (min-width: 769px) {
    body.wt-enc-centrado {
        --wt-header-h: 124px;
    }

    .wt-enc-centrado .wt-header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        align-items: center;
        row-gap: 2px;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .wt-enc-centrado .wt-logo {
        grid-column: 2;
        grid-row: 1;
        text-align: center;
    }

    .wt-enc-centrado .wt-header-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .wt-enc-centrado .wt-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
    }
}

/* ── Mínimo: el menú se abre aparte, también en la compu ────── */
@media (min-width: 769px) {
    .wt-enc-minimo .wt-nav {
        display: none;
    }

    .wt-enc-minimo .wt-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
    }

    /* Colgado del encabezado (que es fijo): justo debajo, también con la barra de admin. Con «fixed» el
       encabezado (por su backdrop-filter) igual hacía de referencia y la barra se contaba dos veces. */
    .wt-enc-minimo .wt-nav.open {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: min(380px, 100vw);
        height: calc(100vh - var(--wt-header-h));
        padding: 20px;
        background: var(--wt-bg-dark);
        border-left: 1px solid var(--wt-border);
        box-shadow: var(--wt-shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }

    .admin-bar.wt-enc-minimo .wt-nav.open {
        height: calc(100vh - 32px - var(--wt-header-h));
    }

    .wt-enc-minimo .wt-nav.open .wt-menu {
        flex: 0 0 auto;
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .wt-enc-minimo .wt-nav.open .wt-menu li a {
        padding: 14px 16px;
        font-size: 1.05em;
    }
}

/* ── Pie: «Hecho con Wopy» ──────────────────────────────────── */
.wt-footer-powered a {
    color: inherit;
    text-decoration: none;
}

.wt-footer-powered a:hover,
.wt-footer-powered a:focus {
    text-decoration: underline;
}

/* ── Pie Completo con las columnas a medida ─────────────────── */
.wt-footer-grid--a-medida {
    display: flex;
    flex-wrap: wrap;
}

.wt-footer-grid--a-medida > .wt-footer-col {
    flex: 1 1 0;
    min-width: 0;
}

.wt-footer-grid--a-medida > .wt-footer-brand {
    flex-grow: 1.5;
}

/* ── Pie Simple y Centrado ──────────────────────────────────── */
.wt-pie-cuerpo {
    padding: 32px 0;
}

.wt-pie-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 32px;
}

.wt-pie-marca .custom-logo {
    display: block;
    max-height: 44px;
    width: auto;
}

.wt-pie-marca .wt-footer-logo {
    display: inline-block;
    margin: 0;
    font-size: 1.3em;
    text-decoration: none;
}

.wt-pie-enlaces ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-pie-enlaces a {
    color: var(--wt-text-muted);
    font-size: 0.9em;
    text-decoration: none;
    transition: color var(--wt-transition);
}

.wt-pie-enlaces a:hover,
.wt-pie-enlaces a:focus {
    color: var(--wt-primary);
}

.wt-footer--simple .wt-footer-social,
.wt-footer--centrado .wt-footer-social {
    margin-top: 0;
}

.wt-footer--centrado .wt-pie-cuerpo {
    padding: 48px 0 32px;
}

.wt-footer--centrado .wt-pie-fila {
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.wt-footer--centrado .wt-pie-marca .custom-logo {
    margin: 0 auto;
}

.wt-footer--centrado .wt-footer-desc {
    max-width: 520px;
    margin: 10px auto 0;
}

.wt-footer--centrado .wt-pie-enlaces ul,
.wt-footer--centrado .wt-footer-social {
    justify-content: center;
}

.wt-footer--centrado .wt-footer-bottom .wt-container {
    justify-content: center;
    text-align: center;
}

/* ── Diseños en la tableta y el celular ─────────────────────── */
@media (max-width: 1024px) {
    .wt-footer-grid--a-medida > .wt-footer-col {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    body.wt-enc-franja {
        --wt-franja-h: 32px;
        --wt-header-h: 100px;
    }

    .wt-franja-inner {
        padding: 0 14px;
        gap: 10px;
    }

    /* En el celular, la franja lleva el aviso o, sin aviso, el teléfono. */
    .wt-franja-email,
    .wt-franja-redes,
    .wt-franja-texto + .wt-franja-datos {
        display: none;
    }

    .wt-franja-datos {
        margin-left: 0;
    }

    /* En el celular el botón destacado va primero dentro del menú. */
    .wt-enc-boton {
        display: none;
    }

    .wt-nav.open .wt-menu .wt-menu-boton {
        display: block;
        margin-bottom: 8px;
    }

    .wt-nav.open .wt-menu .wt-menu-boton a {
        background: var(--wt-gradient);
        color: #fff;
        font-weight: 600;
        text-align: center;
        border-radius: var(--wt-radius-full);
    }

    .wt-logo-chico .wt-logo img {
        max-height: 30px;
    }

    .wt-logo-grande .wt-logo img {
        max-height: 50px;
    }

    .wt-logo-grande .wt-logo a,
    .wt-logo-grande .wt-logo-text {
        font-size: 1.5em;
    }

    .wt-footer-grid--a-medida > .wt-footer-col {
        flex-basis: 100%;
    }

    .wt-pie-fila {
        flex-direction: column;
        text-align: center;
    }

    .wt-pie-enlaces ul,
    .wt-footer--simple .wt-footer-social {
        justify-content: center;
    }

    .wt-footer--simple .wt-pie-marca .custom-logo {
        margin: 0 auto;
    }

    .wt-footer--simple .wt-footer-bottom .wt-container {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wt-logo-chico .wt-logo img {
        max-height: 28px;
    }

    .wt-logo-grande .wt-logo img {
        max-height: 44px;
    }
}


/* ══════════════════════════════════════════════════════════════
 * (2.6.0) Los eventos de la portada: Lista, Destacado, Carrusel y Agenda
 * (Panel › Diseño del sitio › Eventos en la portada; template-parts/portada-eventos.php).
 * «Tarjetas» es la grilla de siempre: no tiene reglas nuevas.
 * ══════════════════════════════════════════════════════════════ */

/* ── Lista y Agenda: una fila por evento ─────────────────────── */
.wt-ev-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-ev-fila {
    margin: 0;
}

.wt-ev-fila__enlace {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--wt-transition), transform var(--wt-transition), box-shadow var(--wt-transition);
}

.wt-ev-fila__enlace:hover,
.wt-ev-fila__enlace:focus-visible {
    border-color: rgba(var(--wt-primary-rgb), 0.35);
    transform: translateY(-2px);
    box-shadow: var(--wt-shadow-lg);
}

.wt-ev-fila__enlace:focus-visible {
    outline: 2px solid var(--wt-primary);
    outline-offset: 2px;
}

/* El destacado y las tarjetas recortan lo que sobresale (overflow: hidden): el foco del teclado se marca en el
   recuadro, no en el enlace. Sólo con el teclado (:focus-visible), no al tocar. */
.wt-ev-destacado:has(.wt-ev-destacado__enlace:focus-visible),
.wt-event-card:has(.wt-event-card-link:focus-visible) {
    outline: 2px solid var(--wt-primary);
    outline-offset: 2px;
}

.wt-ev-fila__fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 8px 4px;
    border-radius: var(--wt-radius-sm);
    background: rgba(var(--wt-primary-rgb), 0.1);
    text-align: center;
}

.wt-ev-fila__dia {
    color: var(--wt-text-heading);
    font-size: 1.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.wt-ev-fila__mes {
    margin-top: 4px;
    color: var(--wt-text-secondary); /* el primario sobre su tinte no llega a 4,5:1 con letra chica */
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.wt-ev-fila__fecha--sin .wt-ev-fila__mes {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0;
}

.wt-ev-fila__info {
    min-width: 0;
}

.wt-ev-fila__titulo {
    margin: 0 0 6px;
    font-size: 1.1em;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.wt-ev-fila .wt-event-card-category {
    margin-bottom: 6px;
}

.wt-ev-fila .wt-event-card-meta {
    margin-bottom: 0;
}

.wt-ev-fila__compra {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.wt-ev-fila__estado {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.wt-ev-fila__estado:empty {
    display: none;
}

.wt-ev-fila__enlace:hover .wt-event-card-action {
    gap: 10px;
    color: var(--wt-secondary);
}

/* ── Agenda: los meses ───────────────────────────────────────── */
.wt-ev-agenda {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wt-ev-agenda__titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--wt-text-heading);
    font-family: var(--wt-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.wt-ev-agenda__titulo::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--wt-border);
}

/* ── Destacado: el primero en grande ─────────────────────────── */
.wt-ev-destacado {
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--wt-bg-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    transition: border-color var(--wt-transition), box-shadow var(--wt-transition);
}

.wt-ev-destacado:hover {
    border-color: rgba(var(--wt-primary-rgb), 0.3);
    box-shadow: var(--wt-shadow-lg);
}

.wt-ev-destacado__enlace {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    color: inherit;
    text-decoration: none;
}

.wt-ev-destacado__imagen {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: var(--wt-bg-surface);
}

.wt-ev-destacado__imagen img,
.wt-ev-destacado__imagen .wt-event-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wt-ev-destacado__imagen img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wt-ev-destacado:hover .wt-ev-destacado__imagen img {
    transform: scale(1.04);
}

.wt-ev-destacado__cuerpo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 32px;
}

.wt-ev-destacado__cuerpo .wt-event-card-category {
    align-self: flex-start;
    margin-bottom: 0;
}

.wt-ev-destacado__titulo {
    margin: 0;
    font-family: var(--wt-font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.wt-ev-destacado__dato {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--wt-text-secondary);
    font-size: 0.95em;
}

.wt-ev-destacado__dato svg {
    flex: 0 0 auto;
    opacity: 0.7;
}

.wt-ev-destacado__resumen {
    margin: 4px 0 0;
    color: var(--wt-text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

.wt-ev-destacado__pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.wt-ev-destacado:hover .wt-btn-primary {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--wt-primary-rgb), 0.4);
}

/* ── Carrusel: una fila que se desliza ───────────────────────── */
.wt-ev-carrusel__pista {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, calc((100% - 48px) / 3));
    gap: 24px;
    padding: 8px 2px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    overflow-y: hidden; /* las tarjetas que todavía no aparecieron (initScrollAnimations) bajan 20 px */
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--wt-primary-rgb), 0.5) transparent;
}

.wt-ev-carrusel__pista > .wt-event-card {
    scroll-snap-align: start;
}

.wt-ev-carrusel__pista:focus-visible {
    outline: 2px solid var(--wt-primary);
    outline-offset: 4px;
    border-radius: var(--wt-radius);
}

.wt-ev-carrusel__flechas {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.wt-ev-carrusel__flechas[hidden] {
    display: none;
}

.wt-ev-carrusel__flecha {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--wt-border);
    border-radius: 50%;
    background: var(--wt-bg-card);
    color: var(--wt-text-heading);
    cursor: pointer;
    transition: border-color var(--wt-transition), color var(--wt-transition), opacity var(--wt-transition);
}

.wt-ev-carrusel__flecha:hover:not([aria-disabled="true"]) {
    border-color: var(--wt-primary);
    color: var(--wt-primary);
}

.wt-ev-carrusel__flecha:focus-visible {
    outline: 2px solid var(--wt-primary);
    outline-offset: 2px;
}

.wt-ev-carrusel__flecha[aria-disabled="true"] {
    cursor: default;
    opacity: 0.4;
}

@media (max-width: 900px) {
    .wt-ev-destacado__enlace {
        grid-template-columns: 1fr;
    }

    .wt-ev-destacado__imagen {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .wt-ev-destacado__cuerpo {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .wt-ev-carrusel__pista {
        grid-auto-columns: 82%;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .wt-ev-fila__enlace {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px 14px;
        padding: 14px;
    }

    .wt-ev-fila__fecha {
        min-height: 56px;
    }

    .wt-ev-fila__dia {
        font-size: 1.4rem;
    }

    .wt-ev-fila__compra {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .wt-ev-fila__estado {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wt-ev-carrusel__pista {
        scroll-behavior: auto;
    }

    .wt-ev-fila__enlace,
    .wt-ev-destacado__imagen img {
        transition: none;
    }
}
