/**
 * Grammelot Theme: Main Style Sheet
 * 
 * Elegant, cinematic dark design system for theatrical events.
 */

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
    --bg-dark-primary: #0a0a0c;     /* Deep cinematic black */
    --bg-dark-secondary: #131317;   /* Rich surface dark gray */
    --bg-dark-tertiary: #1b1b22;    /* Card & interactive surface */
    --border-color: #2b2b36;        /* Subtle border color */
    
    --accent-gold: #d4af37;         /* Classic luxury theater gold */
    --accent-gold-hover: #f3cf55;   /* Brighter gold for hover states */
    --accent-glow: rgba(212, 175, 55, 0.15);
    
    --text-primary: #f3f4f6;        /* Almost white */
    --text-secondary: #a1a1aa;      /* Muted gray */
    --text-muted: #6b7280;          /* Darker gray */
    
    --success: #10b981;             /* Emerald for green seats */
    --success-glow: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;              /* Rose for reserved seats */
    
    --font-primary: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 207, 85, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* ==========================================================================
   Layout: Header
   ========================================================================== */
.site-header {
    background-color: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding .site-logo {
    display: flex;
    align-items: center;
}

.site-logo-img {
    height: 72px;
    width: auto;
    display: block;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation ul a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.main-navigation ul a:hover,
.main-navigation ul .current-menu-item a {
    color: var(--accent-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ==========================================================================
   Hamburger Menu Toggle
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 102;
    transition: border-color 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--accent-gold);
}

.menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle--open .menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle--open .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle--open .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-overlay--visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Mobile: Navigation Panel (slides from right)
   ========================================================================== */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .menu-overlay {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-dark-secondary);
        border-left: 1px solid var(--border-color);
        padding: 90px 30px 30px;
        z-index: 101;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-navigation--open {
        transform: translateX(0);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }

    /* Vertical nav menu items */
    .main-navigation #primary-menu {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 24px;
    }

    .main-navigation #primary-menu li {
        width: 100%;
    }

    .main-navigation #primary-menu a {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text-primary);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .main-navigation #primary-menu a:hover {
        background: var(--bg-dark-tertiary);
        color: var(--accent-gold);
    }

    /* Language switcher in mobile menu */
    .main-navigation .lang-switcher {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation .lang-switcher-toggle {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .main-navigation .lang-switcher-dropdown {
        position: static;
        margin-top: 6px;
        box-shadow: none;
    }

    /* Nav actions vertical in mobile menu */
    .main-navigation .nav-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 4px;
    }

    .main-navigation .nav-actions .member-badge {
        text-align: center;
        width: 100%;
    }

    .main-navigation .nav-actions .header-account-label {
        width: 100%;
        justify-content: center;
    }

    .main-navigation .nav-actions .btn {
        width: 100%;
        text-align: center;
    }
}

.member-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
}

.member-badge.active {
    background-color: var(--accent-glow);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.member-badge.pending {
    background-color: rgba(239, 149, 0, 0.1);
    border: 1px solid #ef9500;
    color: #ef9500;
}

.member-badge.admin {
    background-color: rgba(139, 92, 246, 0.15);
    border: 1px solid #8b5cf6;
    color: #c084fc;
}

/* Language switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.lang-switcher-toggle:hover {
    border-color: var(--accent-gold);
}

.lang-switcher-toggle img {
    display: block;
    border-radius: 2px;
}

.lang-switcher-toggle svg {
    margin-left: 2px;
    color: var(--text-secondary);
}

.main-navigation .lang-switcher-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 4px;
    min-width: 120px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    gap: 0;
}

.lang-switcher--open .lang-switcher-dropdown {
    display: block;
}

.lang-switcher-dropdown li {
    margin: 0;
}

.lang-switcher-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.lang-switcher-dropdown a:hover {
    background: var(--bg-dark-tertiary);
}

.lang-switcher-dropdown a.active {
    color: var(--accent-gold);
    font-weight: 600;
}

.lang-switcher-dropdown img {
    display: block;
    border-radius: 2px;
}

/* Header avatar + account label */
.header-account-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.header-account-label:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    color: var(--accent-gold);
}

.header-account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.header-account-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Layout: Landing Page
   ========================================================================== */
.main-content {
    margin-top: 80px; /* Offset fixed header */
}

/* Hero Section: Espectáculo en Curso */
.hero-show {
    position: relative;
    padding: 100px 0 140px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-show::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 1) 90%);
    z-index: 2; /* Updated to layer correctly with responsive img background */
}

.hero-show-grid {
    position: relative;
    z-index: 3; /* Updated to layer on top of background overlay */
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.hero-show-info {
    max-width: 650px;
}

.show-badge {
    background-color: var(--accent-gold);
    color: #000000;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

.show-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.show-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.show-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-show-poster img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium), 0 0 40px rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
}

/* Secciones de la Landing */
.section-title-wrap {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ==========================================================================
   Layout: Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    margin-top: 100px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    text-align: center;
}

.footer-brand .footer-logo {
    display: block;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-tagline {
    color: var(--text-secondary);
}

.footer-nav {
    width: 100%;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-gold);
}

.footer-meta {
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .hero-show-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-show-poster {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Upcoming Shows (Cartelera) Section
   ========================================================================== */
.upcoming-shows-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

/* Shows Slider */
.shows-slider {
    position: relative;
    margin-top: 50px;
}

.shows-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.shows-slider-track {
    display: grid;
    gap: 30px;
    transition: transform 0.4s ease;
}

/* Grid columns by visible card count */
.shows-slider-track.shows-grid-1 { grid-template-columns: 1fr; }
.shows-slider-track.shows-grid-2 { grid-template-columns: repeat(2, 1fr); }
.shows-slider-track.shows-grid-3 { grid-template-columns: repeat(3, 1fr); }
.shows-slider-track.shows-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Slider mode: JS sets grid-template-columns dynamically */
.shows-slider[data-total] .shows-slider-track.shows-slider-active {
    display: grid;
    gap: 30px;
    padding-top: 6px;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-arrow:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

.slider-arrow--disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.slider-arrow-left  { left: -22px; }
.slider-arrow-right { right: -22px; }

@media (max-width: 768px) {
    .shows-slider-track {
        grid-template-columns: 1fr !important;
        transform: none !important;
    }
    .slider-arrow {
        display: none !important;
    }
}

.show-card {
    position: relative;
    background-color: var(--bg-dark-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.show-card .cancellation-reason {
    padding-left: 80px;
}

.show-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.05);
}

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

.show-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.show-card-title a:hover {
    color: var(--accent-gold);
}

.show-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.show-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.show-card:hover .show-card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.show-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.show-card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.show-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.show-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.show-card .btn {
    width: 100%;
    margin-top: auto;
}

.no-shows-alert {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-secondary);
}

/* Past Shows CTA */
.past-shows-cta {
    padding: 0 0 60px;
    text-align: center;
}

.btn-past-shows {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    padding: 14px 30px;
}

.past-shows-count {
    background: var(--accent-gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Historial Page */
.historial-section {
    padding: 100px 0;
}

.historial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.historial-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.historial-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.historial-pagination .page-numbers.current {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    font-weight: 700;
}

.historial-pagination .page-numbers:hover:not(.current):not(.dots) {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.historial-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

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

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard-section {
    padding: 80px 0 100px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header .section-title {
    margin-bottom: 0;
}

/* Tabs */
.dashboard-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.dash-tab {
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-bottom: -1px;
}

.dash-tab:hover {
    color: var(--text-primary);
    background: var(--bg-dark-tertiary);
}

.dash-tab--active {
    color: var(--accent-gold);
    background: var(--bg-dark-secondary);
    border-color: var(--border-color);
    border-bottom-color: var(--bg-dark-secondary);
}

/* Notices */
.dash-notice {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.dash-notice--success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.dash-notice--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Profile form */
.form-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 25px 0;
}

/* Avatar widget */
.avatar-widget {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.avatar-widget-label {
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: -8px;
}

.avatar-widget-preview {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-tertiary);
}

.avatar-widget-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-widget-initials {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.form-section-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

/* Reservations table */
.reservas-table-wrap {
    overflow-x: auto;
}

.reservas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.reservas-table thead {
    border-bottom: 2px solid var(--accent-gold);
}

.reservas-table th {
    text-align: left;
    padding: 14px 16px;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.reservas-table td {
    padding: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.reservas-table tbody tr:hover td {
    background: var(--bg-dark-tertiary);
}

@media (max-width: 768px) {
    .reservas-table thead {
        display: none;
    }
    .reservas-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 12px;
        background: var(--bg-dark-secondary);
    }
    .reservas-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        font-size: 0.9rem;
    }
    .reservas-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        margin-right: 12px;
        white-space: nowrap;
    }
}

/* ==========================================================================
   Membership Section (Registro de Socios)
   ========================================================================== */
.membership-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
}

.membership-card-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.membership-info-pane {
    max-width: 550px;
}

.membership-badge-outline {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 20px;
}

.membership-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.membership-price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 25px;
    line-height: 1;
}

.membership-price span {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.membership-benefits {
    list-style: none;
}

.membership-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.benefit-icon {
    background-color: var(--accent-glow);
    color: var(--accent-gold);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Glassmorphism Card Form */
.glassmorphism-card {
    background: rgba(19, 19, 23, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.form-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.association-form .form-group {
    margin-bottom: 20px;
}

.association-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.association-form select,
.association-form textarea,
.association-form input[type="text"],
.association-form input[type="email"],
.association-form input[type="tel"],
.association-form input[type="password"] {
    width: 100%;
    background-color: rgba(10, 10, 12, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 14px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.association-form textarea {
    resize: vertical;
    min-height: 80px;
}

.association-form input:focus,
.association-form textarea:focus,
.association-form select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.form-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-gold);
}

.w-full {
    width: 100%;
}

/* ==========================================================================
   Interactive Booking Modal Overlay
   ========================================================================== */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 6, 8, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.booking-modal-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   Booking Modal Container & Steps
   ========================================================================== */
.booking-modal-container {
    background: rgba(19, 19, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 680px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

/* Modal Loading & Errors */
.modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 12, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-error-bar {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #f87171;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Modal Header */
.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.modal-show-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.modal-show-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.step-dot.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000000;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: var(--border-color);
}

/* Step Content Styles */
.step-pane {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-align: center;
}

.step-instructions {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
    text-align: center;
}

.step-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Ticket Count Selector */
.tickets-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.ticket-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark-tertiary);
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ticket-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.ticket-btn.active {
    background-color: var(--accent-gold);
    color: #000000;
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.session-card {
    background-color: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    justify-content: justify;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.session-card:hover {
    border-color: var(--text-secondary);
}

.session-card.recommended {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.02);
}

.session-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(239, 68, 68, 0.2);
}

.session-card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.session-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.session-capacity {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.recommend-badge {
    background-color: var(--accent-gold);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
}

.full-badge {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.extra-session-teaser {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 10px;
}

.teaser-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Seat Map SVG Styling
   ========================================================================== */
.info-banner-gold {
    background-color: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--accent-gold);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    color: var(--accent-gold);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.seat-map-viewport {
    background-color: #060608;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 20px;
}

.seat-map-svg {
    max-width: 100%;
    height: auto;
}

/* SVG Shapes */
.stage-indicator-svg {
    fill: var(--bg-dark-tertiary);
    stroke: var(--border-color);
    stroke-width: 1;
}

.stage-corridor-svg {
    fill: rgba(212, 175, 55, 0.02);
    stroke: var(--border-color);
    stroke-dasharray: 4,4;
    stroke-width: 1;
}

.stage-text-svg {
    fill: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.stage-text-svg.large {
    font-size: 14px;
    letter-spacing: 0.2em;
}

.table-circle-svg {
    fill: var(--bg-dark-tertiary);
    stroke: var(--border-color);
    stroke-width: 1.5;
}

.table-text-svg {
    fill: #ffffff;
    font-size: 7px;
    font-weight: 700;
}

.seat-svg {
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.seat-svg.available {
    fill: var(--bg-dark-secondary);
    stroke: var(--success);
}

.seat-svg.available:hover {
    fill: var(--success-glow);
    transform: scale(1.15);
}

.seat-svg.selected {
    fill: var(--accent-gold);
    stroke: var(--accent-gold);
    animation: pulseSelected 2s infinite;
}

@keyframes pulseSelected {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.seat-svg.reserved {
    fill: var(--bg-dark-tertiary);
    stroke: var(--border-color);
    cursor: not-allowed;
}

.seat-svg.my-seat {
    fill: rgba(212, 175, 55, 0.2);
    stroke: var(--accent-gold);
    stroke-width: 2px;
    cursor: default;
}

.seat-text-svg {
    fill: var(--text-secondary);
    font-size: 6px;
    font-weight: 700;
    pointer-events: none;
}

.seat-svg-g {
    cursor: pointer;
}

.seat-svg-g:hover .seat-svg.available {
    fill: var(--success);
    stroke: var(--success);
}

.seat-svg-g:hover .seat-text-svg {
    fill: #000000;
}

/* Legend & Summary */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

.legend-dot.available {
    background-color: var(--bg-dark-secondary);
    border-color: var(--success);
}

.legend-dot.selected {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.legend-dot.reserved {
    background-color: var(--bg-dark-tertiary);
    border-color: var(--border-color);
}

.selected-summary {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Success Ticket Styles */
.success-pane {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconBounce 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.ticket-summary {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-row {
    display: flex;
    justify-content: justify;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.ticket-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ticket-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.ticket-val {
    color: #ffffff;
    font-weight: 700;
}

.ticket-val.gold {
    color: var(--accent-gold);
}

/* Extra Session Form */
.extra-session-form {
    margin-top: 15px;
}

.extra-session-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.extra-session-form textarea {
    width: 100%;
    background-color: #060608;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.extra-session-form textarea:focus {
    border-color: var(--accent-gold);
}

.success-alert {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: #34d399;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 15px;
}

/* Membership Status Popup */
.membership-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.membership-popup-overlay--closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.membership-popup {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.membership-popup-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.membership-popup-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.membership-popup-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.membership-popup-close {
    width: 100%;
}

.mt-4 {
    margin-top: 16px;
}

/* Cancel Confirmation Popup */
.cancel-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cancel-confirm-overlay--closing {
    animation: fadeOut 0.3s ease forwards;
}

.cancel-confirm-popup {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: popIn 0.3s ease;
}

.cancel-confirm-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cancel-confirm-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.cancel-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cancel-confirm-actions .btn {
    flex: 1;
}

/* Modify Reservation Popup */
.modify-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modify-popup-overlay--closing {
    animation: fadeOut 0.3s ease forwards;
}

.modify-popup {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    animation: popIn 0.3s ease;
}

.modify-popup-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modify-popup-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modify-popup-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modify-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.modify-popup-actions .btn {
    width: 100%;
}

.modify-popup-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 12px;
    transition: color 0.3s ease;
}

.modify-popup-close-btn:hover {
    color: var(--text-primary);
}

/* Dashboard Reservations Table */
.reserva-thumb {
    width: 60px;
    vertical-align: middle;
}

.reserva-thumb-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.reserva-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: var(--bg-dark-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.reserva-title-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.reserva-title-link:hover {
    color: var(--accent-gold);
}

.reserva-actions {
    text-align: right;
    white-space: nowrap;
}

.reserva-actions .btn {
    font-size: 0.8rem;
    padding: 8px 14px;
}

/* Modify button variant */
.btn--modify {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

.show-comments-section {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border-color);
}

.comments-wrapper {
    max-width: 720px;
    margin: 40px auto 0;
}

/* Comment list */
.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.commentlist .comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.commentlist .comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-primary);
    font-style: normal;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.comment-meta a {
    color: var(--text-secondary);
    text-decoration: none;
}

.comment-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-content p {
    margin: 0 0 10px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply link */
.comment-reply-link {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.comment-reply-link:hover {
    color: var(--accent-gold-hover);
}

/* Comment form */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.comment-reply-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.comment-reply-title small a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 8px;
}

.comment-notes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.comment-form-comment {
    margin-bottom: 16px;
}

.comment-form-comment label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.comment-form-comment textarea {
    width: 100%;
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    resize: vertical;
    min-height: 120px;
}

.comment-form-comment textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.form-submit .submit {
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form-submit .submit:hover {
    background: var(--accent-gold-hover);
}

/* Logged-out notice */
.comment-form .must-log-in {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.comment-form .must-log-in a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* ==========================================================================
   Single Espectaculo (Ficha de Obra) & Gallery Styles
   ========================================================================== */
.single-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.single-show-details {
    padding: 80px 0 40px;
    background-color: var(--bg-dark-primary);
    border-bottom: 1px solid var(--border-color);
}

.show-details-layout {
    max-width: 800px;
    margin: 0 auto;
}

.details-section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.details-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2, .entry-content h3 {
    margin: 40px 0 20px;
    color: #ffffff;
}

/* Gallery Styling */
.show-gallery-section {
    padding: 80px 0 100px;
    background-color: var(--bg-dark-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    background-color: var(--bg-dark-tertiary);
    aspect-ratio: 4 / 3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}


/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-lightbox.hide {
    display: none;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.gallery-lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-close:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .single-hero {
        padding: 80px 0 60px;
    }
    
    .show-details-layout {
        padding: 0 10px;
    }
}

/* Page hero (legal pages etc. — no featured image) */
.page-hero--no-image {
    padding: 120px 0 20px;
    background: var(--bg-dark-primary);
}

.page-hero--no-image .hero-show-grid {
    min-height: auto;
}

/* ==========================================================================
   Cancellation Banner
   ========================================================================== */

.cancellation-banner {
    position: absolute;
    top: 60px;
    left: -40px;
    background: var(--danger);
    color: #000;
    font-weight: 800;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 50px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
}

.hero-show .cancellation-banner {
    z-index: 10;
}

.show-card .cancellation-banner {
    top: 24px;
    left: -40px;
    font-size: 0.7rem;
    padding: 6px 40px;
    z-index: 5;
}

.cancellation-reason {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--accent-gold);
    border-radius: var(--border-radius);
    padding: 20px 24px 20px 140px;
    margin-bottom: 25px;
    color: var(--accent-gold);
    font-size: 0.95rem;
    line-height: 1.7;
}

.cancellation-reason strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--accent-gold-hover);
}

.cancelled-pane {
    text-align: center;
    padding: 20px 0;
}

.cancelled-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.cancellation-reason-modal {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--accent-gold);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin: 20px 0;
    text-align: left;
    color: #f3f4f6;
    font-size: 0.95rem;
    line-height: 1.7;
}

.cancellation-reason-modal strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

