

  :root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg3: #1a1a24;
    --card: #16161f;
    --accent: #006cd9;
    --accent2: #ff4fd8;
    --accent3: #47d4ff;
    --text: #f0f0f5;
    --text2: #9090a8;
    --text3: #5a5a72;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.14);
    --radius: 16px;
    --radius-sm: 8px;
  }


  /* MOBILE BOTTOM BAR — black */
  body {
    background-color: #000;
    padding-bottom: env(safe-area-inset-bottom);
  }

  body::after {
    content: '';
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: env(safe-area-inset-bottom);
    background: #000;
    z-index: 9999;
    pointer-events: none;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 68px;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .logo span {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 7px;
    border-radius: 4px;
    vertical-align: middle;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--text); }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .btn-ghost {
    background: none;
    border: 1px solid var(--border2);
    color: var(--text2);
    padding: 8px 18px;
    border-radius: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
  }

  .btn-ghost:hover {
    border-color: var(--text2);
    color: var(--text);
  }

  .btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 9px 20px;
    border-radius: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
  }

  .btn-accent:hover {
    background: #3385e0;
    transform: translateY(-1px);
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }

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

  /* MOBILE MENU */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 99;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-menu.open { display: flex; }

  .mobile-menu a {
    color: var(--text2);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu a:last-child { border-bottom: none; }

  /* HERO */
  /* HERO CAROUSEL */
  .hero-carousel {
    position: relative;
    width: 100%;
    min-height: 70vh;
    overflow: hidden;
  }

  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
  }

  .hero-slide.active {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 8s ease;
  }

  .hero-slide.active .hero-slide-bg { transform: scale(1); }

  .hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.2) 100%);
  }

  .hero {
    position: relative;
    z-index: 2;
    padding: 100px 2rem 60px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Carousel dots */
  .hero-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }

  .hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
  }

  .hero-dot.active {
    width: 24px;
    background: #fff;
  }

  /* Carousel arrows */
  .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
  }

  .hero-arrow:hover { background: rgba(255,255,255,0.2); }
  .hero-arrow.left  { left: 1.5rem; }
  .hero-arrow.right { right: 1.5rem; }

  @media (max-width: 600px) {
    .hero-arrow { display: none; }
    .hero { padding: 90px 1.25rem 70px; }
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,108,217,0.1);
    border: 1px solid rgba(0,108,217,0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
  }

  .hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--accent);
  }

  .hero p {
    font-size: 1.1rem;
    color: var(--text2);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .btn-hero {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 14px 32px;
    border-radius: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
  }

  .btn-hero:hover { background: #3385e0; transform: translateY(-2px); }

  .btn-hero-ghost {
    background: none;
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 14px 32px;
    border-radius: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
  }

  .btn-hero-ghost:hover { border-color: var(--text2); }

  .hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
  }

  .stat { }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
  }

  .stat-label {
    font-size: 0.8rem;
    color: var(--text3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
  }

  /* SEARCH + FILTER SECTION */
  .discover-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
  }

  .search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
  }

  .search-bar:focus-within {
    border-color: rgba(0,108,217,0.4);
  }

  .search-bar svg {
    color: var(--text3);
    flex-shrink: 0;
  }

  .search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
  }

  .search-bar input::placeholder { color: var(--text3); }

  .search-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
  }

  .search-btn:hover { background: #3385e0; }

  /* FILTERS */
  .filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
  }

  .filter-label {
    font-size: 0.78rem;
    color: var(--text3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 4px;
  }

  .filter-chip {
    background: none;
    border: 1px solid var(--border);
    color: var(--text2);
    padding: 7px 16px;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .filter-chip:hover {
    border-color: var(--border2);
    color: var(--text);
  }

  .filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 500;
  }

  .filter-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
  }

  /* SECTION HEADER */
  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .section-link {
    color: var(--text3);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .section-link:hover { color: var(--accent); }

  /* FEATURED EVENTS */
  .featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4rem;
  }

  .event-card-featured {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.08s;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .event-card-featured:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.6);
  }

  .event-card-featured:first-child {
    grid-row: span 2;
    min-height: 480px;
  }

  .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
  }

  .event-card-featured:hover .card-bg { transform: scale(1.04); }

  .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  }

  .card-content {
    position: relative;
    padding: 1.5rem;
    z-index: 2;
  }

  .card-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
  }

  .card-badge.hot { background: var(--accent2); color: #fff; }
  .card-badge.nuevo { background: var(--accent3); color: #0a0a0f; }

  .card-title {
    color: #fff !important;
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
  }

  .event-card-featured:first-child .card-title { font-size: 1.9rem; }

  .card-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6) !important;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

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

  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .card-price.price-free { color: #4cd964 !important; }

  .card-price {
    color: #fff !important;
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
  }

  .price-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4) !important;
    font-weight: 300;
    display: block;
    margin-bottom: 2px;
  }

  .btn-buy {
    background: #006cd9;
    border: 1px solid #006cd9;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-buy:hover {
    background: #1a7fe0;
    border-color: #1a7fe0;
    transform: translateY(-1px);
  }

  /* EVENT LIST */
  .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 4rem;
    align-items: start;
  }

  @media (max-width: 900px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
  }

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

  .event-card {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.08s;
    display: flex;
    flex-direction: column;
  }

  .event-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
  }

  .event-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
  }

  .event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
  }

  .event-card-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
  }

  .event-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .event-info { flex: 1; }

  .event-cat {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }

  .event-name {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
  }

  .event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1rem;
  }

  .event-info-row {
    display: flex !important;
    visibility: visible !important;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 400;
  }

  .event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }

  .event-price.price-free { color: #4cd964; }

  .event-price {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
  }

  .event-price-label {
    font-size: 0.7rem;
    color: var(--text3);
    font-weight: 300;
    margin-bottom: 1px;
  }

  .btn-ticket {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 7px 16px;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-ticket:hover { background: #3385e0; transform: scale(1.02); }

  /* NO RESULTS */
  .no-results {
    text-align: center;
    padding: 4rem 1rem;
    display: none;
  }

  .no-results h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .no-results p { color: var(--text3); font-size: 0.9rem; }

  /* PROMO BANNER */
  .promo-banner {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
  }

  .promo-banner::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,108,217,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .promo-text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
  }

  .promo-text p {
    color: var(--text2);
    font-size: 0.9rem;
    font-weight: 300;
  }

  .promo-text em {
    font-style: normal;
    color: var(--accent);
  }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand p {
    color: var(--text3);
    font-size: 0.85rem;
    font-weight: 300;
    max-width: 260px;
    line-height: 1.7;
    margin-top: 1rem;
  }

  .footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
  }

  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-col ul a {
    color: var(--text3);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
  }

  .footer-col ul a:hover { color: var(--text2); }

  .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .footer-bottom p {
    color: var(--text3);
    font-size: 0.78rem;
  }

  /* MODAL */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
  }

  .modal-overlay.open { display: flex; }

  .modal {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    width: min(1200px, 100vw);
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .modal-img-wrap {
    position: relative;
    height: 340px;
    flex-shrink: 0;
    overflow: hidden;
  }

  .modal-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }

  .modal-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.25) 100%);
  }

  .modal-img-content {
    position: absolute;
    inset: 0;
    padding: 1.5rem 2rem;
  }

  .modal-img-title {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    max-width: 65%;
  }


  /* MODAL STICKY BAR */
  .modal-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: linear-gradient(
      to right,
      rgba(10,10,15,0.97) 0%,
      rgba(10,10,15,0.35) 35%,
      rgba(10,10,15,0.35) 65%,
      rgba(10,10,15,0.97) 100%
    );
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }

  .modal-sticky-logo-inner {
    display: flex;
    align-items: center;
  }

  .modal-sticky-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .modal-sticky-close:hover { background: rgba(255,255,255,0.18); }

  @media (max-width: 600px) {
    .modal-img-title { font-size: 1.5rem; bottom: 1.25rem; left: 1.25rem; }
    .modal-img-content { padding: 1rem; }
  }

  .modal-body { padding: 2rem; }

  .modal-body h2 {
    display: none;
  }

  .modal-detail {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .modal-detail-row {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #fff;
  }

  .modal-detail-row strong { color: #fff; min-width: 80px; }

  .ticket-qty {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg3);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .qty-label { font-size: 0.85rem; color: #fff; flex: 1; }

  .qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border2);
    background: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

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

  /* Active state when qty > 0 */
  .qty-cell.qty-active .qty-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .qty-cell.qty-active .qty-btn:hover {
    background: #1a7fe0;
    border-color: #1a7fe0;
  }

  .qty-cell.qty-active .qty-select {
    border-color: var(--accent);
    background: rgba(0,108,217,0.15);
    color: #fff;
    font-weight: 700;
  }

  .qty-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
  }

  .modal-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }





  .modal-wrap { position: relative; }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .nav-links, .nav-right { display: none; }
    .hamburger { display: flex; }

    .featured-grid {
      grid-template-columns: 1fr;
    }

    .event-card-featured:first-child { min-height: 340px; }
    .event-card-featured:first-child .card-title { font-size: 1.5rem; }

    footer {
      grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand { grid-column: span 2; }
  }

  @media (max-width: 600px) {
    nav { padding: 0 1.25rem; }

    .discover-section { padding: 0 1.25rem 3rem; }
    .hero-stats { gap: 1.5rem; }
    .hero h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); margin-bottom: 1rem; }
    .hero p  { font-size: 0.88rem; margin-bottom: 1.5rem; }
    .hero-tag { font-size: 0.62rem; padding: 4px 10px; margin-bottom: 1rem; }
    .btn-hero, .btn-hero-ghost { padding: 11px 22px; font-size: 0.8rem; }
    .stat-num   { font-size: 1.5rem; }
    .stat-label { font-size: 0.65rem; }
    .hero-stats { margin-top: 2rem; }

    .search-bar {
      flex-wrap: wrap;
      border-radius: var(--radius);
      padding: 12px 16px;
    }

    .search-btn { width: 100%; text-align: center; }
    .promo-banner { flex-direction: column; text-align: center; }

    footer {
      grid-template-columns: 1fr;
      padding: 2rem 1.25rem;
    }

    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  }

  /* AUTH MODAL */
  .auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(10px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .auth-modal-overlay.open { display: flex; }

  .auth-modal {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    animation: slideUp 0.28s cubic-bezier(0.16,1,0.3,1);
  }

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

  .auth-header {
    padding: 2rem 2rem 0;
    position: relative;
  }

  .auth-close {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    width: 32px; height: 32px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text2);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }

  .auth-close:hover { background: var(--border); color: var(--text); }

  .auth-logo-sm {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 5px;
  }

  .auth-logo-sm span {
    background: var(--accent);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 5px;
    border-radius: 3px;
  }

  /* TABS */
  .auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
  }

  .auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text3);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    padding: 0.75rem 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
  }

  .auth-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
    font-weight: 500;
  }

  .auth-tab:hover:not(.active) { color: var(--text2); }

  /* PANELS */
  .auth-panel { display: none; }
  .auth-panel.active { display: block; }

  /* FORM */
  .auth-body { padding: 0 2rem 2rem; }

  .auth-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
  }

  .auth-body p.sub {
    font-size: 0.82rem;
    color: var(--text3);
    margin-bottom: 1.5rem;
    font-weight: 300;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }

  .form-group label {
    font-size: 0.78rem;
    color: var(--text2);
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
  }

  .form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
  }

  .form-group select option { background: var(--bg2); }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--text3);
  }

  .form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0;
  }

  .form-divider span {
    font-size: 0.75rem;
    color: var(--text3);
    white-space: nowrap;
  }

  .form-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border);
  }

  .btn-social {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--text2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-bottom: 10px;
  }

  .btn-social:hover { border-color: var(--border2); background: var(--card); color: var(--text); }
  .btn-social.btn-social-loading { opacity: 0.6; pointer-events: none; cursor: wait; }
  .btn-social-apple:hover  { border-color: rgba(255,255,255,0.4); }
  .btn-social-facebook:hover { border-color: #1877F2; color: #1877F2; }
  .btn-social-microsoft:hover { border-color: #7FBA00; }
  .btn-social.btn-social-success {
    border-color: #4cd964;
    background: rgba(76,217,100,0.08);
    color: #4cd964;
    pointer-events: none;
  }

  .btn-submit {
    width: 100%;
    background: var(--accent);
    border: none;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
  }

  .btn-submit:hover { background: #1a7fe0; transform: translateY(-1px); }

  .form-hint {
    font-size: 0.74rem;
    color: var(--text3);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
  }

  .form-hint a { color: var(--accent); cursor: pointer; text-decoration: none; }
  .form-hint a:hover { text-decoration: underline; }

  .form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .form-check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent);
    width: 14px; height: 14px;
    flex-shrink: 0;
  }

  .form-check label {
    font-size: 0.77rem;
    color: var(--text3);
    line-height: 1.5;
  }

  .form-check label a { color: var(--accent); cursor: pointer; }

  /* SUCCESS STATE */
  .auth-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
  }

  .auth-success.show { display: flex; }

  .success-icon {
    width: 64px; height: 64px;
    background: rgba(0,108,217,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
  }

  .auth-success h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
  }

  .auth-success p { color: var(--text3); font-size: 0.85rem; line-height: 1.6; }

  /* EVENT MODAL wider */
  .event-modal { max-width: 580px; }

  .event-modal .auth-body h2 { font-size: 1.3rem; }

  .img-upload {
    background: var(--bg3);
    border: 2px dashed var(--border2);
    border-radius: var(--radius-sm);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 14px;
  }

  .img-upload:hover { border-color: var(--accent); }
  .img-upload p { font-size: 0.82rem; color: var(--text3); margin-top: 6px; }
  .img-upload .icon { font-size: 1.8rem; }

  .price-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }


  /* PAGINATOR */
  .paginator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
  }

  .paginator.visible { display: flex; }

  .pag-btn {
    background: none;
    border: 1px solid var(--border2);
    color: var(--text2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .pag-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
  }

  .pag-btn:disabled {
    opacity: 0.25;
    cursor: default;
  }

  .pag-pages {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .pag-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: none;
    color: var(--text3);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
  }

  .pag-num:hover { border-color: var(--border2); color: var(--text); }

  .pag-num.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 500;
  }

  .pag-ellipsis {
    color: var(--text3);
    font-size: 0.85rem;
    padding: 0 4px;
  }

  /* TICKET TABLE */
  .modal-body { padding: 1.5rem 2rem calc(5rem + env(safe-area-inset-bottom)); }

  .modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .modal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .modal-meta-label {
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .modal-meta-value {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 500;
  }

  .ticket-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
  }

  /* DESKTOP TABLE */
  .ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
  }

  .ticket-table thead tr {
    background: var(--bg3);
    border-bottom: 1px solid var(--border2);
  }

  .ticket-table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
  }

  .ticket-table th:last-child { text-align: center; }

  /* ODD/EVEN row colors every 5 rows (groups of rows use alternating bg) */
  .ticket-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
  }

  .ticket-table tbody tr:last-child { border-bottom: none; }

  .ticket-table tbody tr.row-odd  { background: var(--card); }
  .ticket-table tbody tr.row-even { background: rgba(0,108,217,0.04); }

  .ticket-table tbody tr:hover { background: rgba(0,108,217,0.1) !important; }

  .ticket-table td {
    padding: 14px 16px;
    color: #fff;
    font-size: 0.95rem;
    vertical-align: middle;
  }

  .ticket-table td:first-child { color: #fff; font-weight: 500; }

  /* MOBILE CARD LAYOUT */
  @media (max-width: 640px) {
    .qty-cell { justify-content: flex-end; }

    .table-vertical>tbody>tr>td:last-child {
      text-align: right;
    }

    .table-vertical>tbody>tr>td:last-child::before {
      text-align: left;
    }

    .table-vertical>tbody>tr>td:last-child .qty-cell {
      justify-content: flex-end;
    }
  }

  .ticket-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .badge-gen  { background: rgba(0,108,217,0.12); color: #4da3ff; }
  .badge-vip  { background: rgba(255,79,216,0.12); color: #ff4fd8; }
  .badge-plat { background: rgba(255,196,0,0.12);  color: #ffc400; }
  .badge-prem { background: rgba(71,212,255,0.12); color: #47d4ff; }
  .badge-campo{ background: rgba(76,217,100,0.12); color: #4cd964; }
  .badge-stream{
    background: rgba(255,59,48,0.15);
    color: #ff3b30;
    border: 1px solid rgba(255,59,48,0.3);
    animation: streamBlink 1.4s ease-in-out infinite;
  }

  @keyframes streamBlink {
    0%, 100% { opacity: 1; background: rgba(255,59,48,0.15); border-color: rgba(255,59,48,0.3); }
    50%       { opacity: 0.55; background: rgba(255,59,48,0.32); border-color: rgba(255,59,48,0.7); }
  }

  .ticket-promo {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(0,108,217,0.15);
    color: var(--accent);
  }

  .ticket-promo.none {
    background: none;
    color: var(--text3);
    font-weight: 400;
  }

  .ticket-valor { font-weight: 600; color: var(--text); }
  .ticket-valor.free { color: #4cd964; }
  .ticket-cargo { color: #fff; font-size: 0.9rem; }

  .qty-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .qty-select {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 6px;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 4px 6px;
    width: 52px;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
  }

  .qty-select:focus { border-color: var(--accent); }
  .qty-select option { background: var(--bg2); color: #fff; }

  .qty-cell .qty-btn {
    width: 26px; height: 26px;
    font-size: 1rem;
  }

  .qty-cell .qty-num {
    font-size: 1.1rem;
    min-width: 20px;
  }

  /* TERMS */
  /* TERMS TOGGLE */
  .terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 16px 20px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s, background 0.3s;
  }

  .terms-row.accepted {
    border-color: var(--accent);
    background: rgba(0,108,217,0.08);
  }

  .terms-text {
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
    cursor: default;
    font-weight: 400;
  }

  .terms-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,108,217,0.4);
    transition: border-color 0.2s;
  }

  .terms-link:hover { border-color: var(--accent); }

  /* TOGGLE SWITCH */
  .terms-check {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
  }

  .terms-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
  }

  .terms-check-box {
    display: block;
    width: 52px;
    height: 28px;
    border-radius: 99px;
    background: var(--bg2);
    border: 1.5px solid var(--border2);
    position: relative;
    transition: background 0.3s, border-color 0.3s;
    cursor: pointer;
  }

  .terms-check-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }

  .terms-check input:checked ~ .terms-check-box {
    background: var(--accent);
    border-color: var(--accent);
  }

  .terms-check input:checked ~ .terms-check-box::after {
    transform: translateX(24px);
    background: #fff;
  }

  .terms-link:hover { border-color: var(--accent); }

  /* PAYMENT METHODS */
  .payment-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .payment-header {
    margin-bottom: 1.2rem;
  }

  .payment-label {
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 500;
  }

  .payment-methods {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
  }

  @media (max-width: 700px) {
    .payment-methods { grid-template-columns: repeat(3, 1fr); }
  }

  @media (max-width: 460px) {
    .payment-methods { grid-template-columns: repeat(2, 1fr); }
  }

  .pay-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .pay-btn:hover {
    border-color: var(--border2);
    background: var(--card);
    transform: translateY(-2px);
  }

  .pay-btn.selected {
    border-color: var(--accent);
    background: rgba(0,108,217,0.08);
  }

  .pay-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 6px; right: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
  }

  .pay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pay-icon svg {
    border-radius: 8px;
    display: block;
  }

  .pay-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .pay-name {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
  }

  .pay-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
  }

  .btn-pay-final {
    width: 100%;
    background: linear-gradient(135deg, #006cd9 0%, #0056b3 100%);
    border: none;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    padding: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,108,217,0.4);
  }

  .btn-pay-final:hover:not(:disabled) {
    background: linear-gradient(135deg, #1a7fe0 0%, #0066cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,108,217,0.55);
  }

  .btn-pay-final:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
  }

  .btn-pay-final.pay-not-ready {
    opacity: 0.4;
    filter: grayscale(0.3);
  }

  .btn-pay-label {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(255,255,255,0.2);
  }

  .btn-pay-amount {
    padding: 16px 28px;
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex: 1;
    text-align: center;
  }


  /* SECTION LABEL */
  .section-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* LOC TABLE — 4 columns, same base styles as ticket-table */
  .loc-table-wrap {
    margin-bottom: 0;
  }

  .loc-table td { color: #fff; font-size: 0.95rem; }
  .loc-table td:first-child { color: #fff; font-weight: 600; }

  /* RUT input inside table */
  @keyframes borderBlink {
    0%, 100% { border-color: rgba(0,108,217,0.25); box-shadow: none; }
    50%       { border-color: var(--accent); box-shadow: 0 0 6px rgba(0,108,217,0.5); }
  }

  .rut-input {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 6px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    padding: 6px 10px;
    width: 130px !important;
    max-width: 130px !important;
    text-align: right;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .rut-input:placeholder-shown {
    animation: borderBlink 1.8s ease-in-out infinite;
  }

  .rut-input:focus,
  .rut-input:not(:placeholder-shown) {
    animation: none;
    border-color: var(--accent);
    box-shadow: none;
  }

  .rut-input::placeholder { color: rgba(255,255,255,0.3); }

  /* Mobile responsive for loc-table */
  @media (max-width: 640px) {
    .loc-table thead { display: none; }
    .loc-table,
    .loc-table tbody,
    .loc-table tr,
    .loc-table td { display: block; width: 100%; }

    .loc-table tbody tr {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-bottom: 2px solid var(--border2);
    }

    .loc-table tbody tr:last-child { border-bottom: none; }

    .loc-table td {
      padding: 8px 12px;
      display: flex;
      flex-direction: column;
      gap: 3px;
      border-bottom: none;
      text-align: right;
      align-items: flex-end;
    }

    .loc-table td:nth-child(odd) { border-right: none; }

    .loc-table td::before {
      content: attr(data-label);
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.5);
      display: block;
    }

    /* RUT cell spans full width */
    .loc-table td:last-child {
      grid-column: span 2;
      border-right: none;
      align-items: flex-end;
    }

    .rut-input { max-width: 130px !important; width: 130px !important; }
  }


  /* PAYMENT TIMER MODAL */
  .pay-timer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    z-index: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .pay-timer-overlay.open { display: flex; }

  .pay-timer-modal {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.35s cubic-bezier(0.16,1,0.3,1);
  }

  .pay-timer-icon { font-size: 2.5rem; margin-bottom: 1rem; }

  .pay-timer-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    color: #fff;
  }

  .pay-timer-sub {
    font-size: 0.85rem;
    color: var(--text3);
    margin-bottom: 2rem;
  }

  /* SVG RING */
  .pay-timer-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.75rem;
  }

  .pay-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }

  .pay-timer-track {
    fill: none;
    stroke: var(--bg3);
    stroke-width: 8;
  }

  .pay-timer-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.5s;
  }

  .pay-timer-progress.urgent { stroke: #ff4fd8; }
  .pay-timer-progress.critical { stroke: #ff3b30; }

  .pay-timer-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .pay-timer-label {
    font-size: 0.65rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }

  .pay-timer-count {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    transition: color 0.5s;
  }

  .pay-timer-count.urgent   { color: #ff4fd8; }
  .pay-timer-count.critical { color: #ff3b30; }

  .pay-timer-info {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .pay-timer-info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .pay-timer-info-label { color: var(--text3); }
  .pay-timer-info-value { font-weight: 600; }

  .pay-timer-actions {
    display: flex;
    gap: 10px;
  }

  .pay-timer-cancel {
    flex: 1;
    background: none;
    border: 1px solid var(--border2);
    color: var(--text2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
  }

  .pay-timer-cancel:hover { border-color: #ff3b30; color: #ff3b30; }

  .pay-timer-go {
    flex: 2;
    background: linear-gradient(135deg, #006cd9 0%, #0056b3 100%);
    border: none;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0,108,217,0.4);
  }

  .pay-timer-go:hover { background: linear-gradient(135deg, #1a7fe0, #006cd9); transform: translateY(-1px); }



  /* SOLD OUT */
  .ticket-row-soldout { opacity: 0.55; }

  .soldout-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,59,48,0.12);
    border: 1px solid rgba(255,59,48,0.35);
    color: #ff3b30;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .soldout-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff3b30;
    animation: streamBlink 1.2s ease-in-out infinite;
  }

  /* TICKET TABLE LOADING SKELETON */
  .skeleton-row td {
    padding: 13px 14px;
  }

  .skeleton-cell {
    height: 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bg3) 25%, rgba(255,255,255,0.06) 50%, var(--bg3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
  }

  @keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .skeleton-cell.w-sm  { width: 60%; }
  .skeleton-cell.w-md  { width: 80%; }
  .skeleton-cell.w-full{ width: 95%; }

  /* Row fade-in animation */
  .ticket-row-enter {
    animation: rowFadeIn 0.35s ease forwards;
    opacity: 0;
  }

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


  /* PAGE LAYOUT WITH SIDEBAR */
  .page-layout {
    display: flex;
    align-items: flex-start;
    max-width: 1600px;
    margin: 0 auto;
  }







  .sidebar-banner {
    border-radius: 14px;
    padding: 14px 12px;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 110px;
  }

  .sidebar-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .sb-hot   { border-color: rgba(255,79,216,0.3); background: rgba(255,79,216,0.05); }
  .sb-promo { border-color: rgba(255,196,0,0.3);  background: rgba(255,196,0,0.05);  }
  .sb-new   { border-color: rgba(0,108,217,0.3);  background: rgba(0,108,217,0.06); }
  .sb-sport { border-color: rgba(76,217,100,0.3); background: rgba(76,217,100,0.04);}

  .sb-hot:hover   { border-color: #ff4fd8; box-shadow: 0 8px 24px rgba(255,79,216,0.2); }
  .sb-promo:hover { border-color: #ffc400; box-shadow: 0 8px 24px rgba(255,196,0,0.2); }
  .sb-new:hover   { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,108,217,0.25); }
  .sb-sport:hover { border-color: #4cd964; box-shadow: 0 8px 24px rgba(76,217,100,0.2); }

  .sb-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text3);
  }

  .sb-hot   .sb-tag { color: #ff4fd8; }
  .sb-promo .sb-tag { color: #ffc400; }
  .sb-new   .sb-tag { color: var(--accent); }
  .sb-sport .sb-tag { color: #4cd964; }

  .sb-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .sb-sub {
    font-size: 0.65rem;
    color: var(--text3);
    line-height: 1.4;
    flex: 1;
  }

  .sb-cta {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
  }

  /* SCROLLBARS — thin & dark */
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
  }

  *::-webkit-scrollbar { width: 4px; height: 4px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 99px;
  }
  *::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
  *::-webkit-scrollbar-corner { background: transparent; }


  /* WIDE SCREEN SIDEBAR */
  .page-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
  }

  .page-main { flex: 1; min-width: 0; }

  .page-sidebar {
    width: 240px;
    flex-shrink: 0;
    padding: 2rem 1rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
  }

  @media (max-width: 1500px) { .page-sidebar { display: none; } }

  .sb-banner {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
  }

  .sb-banner:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.4); }

  .sb-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s;
  }

  .sb-banner:hover .sb-img { transform: scale(1.05); }

  .sb-img-wrap {
    overflow: hidden;
    position: relative;
  }

  .sb-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--card), transparent);
  }

  .sb-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .sb-banner.sb-hot   { border-color: rgba(255,79,216,0.3);  background: rgba(255,79,216,0.05); }
  .sb-banner.sb-blue  { border-color: rgba(0,108,217,0.3);   background: rgba(0,108,217,0.06);  }
  .sb-banner.sb-red   { border-color: rgba(255,59,48,0.3);    background: rgba(255,59,48,0.06);   }
  .sb-banner.sb-gold  { border-color: rgba(255,196,0,0.3);   background: rgba(255,196,0,0.05);  }
  .sb-banner.sb-green { border-color: rgba(76,217,100,0.3);  background: rgba(76,217,100,0.04); }

  .sb-banner.sb-hot:hover   { border-color: #ff4fd8; }
  .sb-banner.sb-blue:hover  { border-color: var(--accent); }
  .sb-banner.sb-red:hover   { border-color: #ff3b30; }
  .sb-banner.sb-gold:hover  { border-color: #ffc400; }
  .sb-banner.sb-green:hover { border-color: #4cd964; }

  .sb-tag {
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 5px;
  }
  .sb-tag-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }

  .sb-hot  .sb-tag { color: #ff4fd8; } .sb-hot  .sb-tag-dot { background: #ff4fd8; animation: badgePulse 2s infinite; }
  .sb-blue .sb-tag { color: var(--accent); } .sb-blue .sb-tag-dot { background: var(--accent); }
  .sb-red  .sb-tag { color: #ff3b30; }          .sb-red  .sb-tag-dot  { background: #ff3b30; }
  .sb-red  .sb-cta { color: #ff3b30; }
  .sb-gold .sb-tag { color: #ffc400; } .sb-gold .sb-tag-dot { background: #ffc400; }
  .sb-green .sb-tag { color: #4cd964; } .sb-green .sb-tag-dot { background: #4cd964; }

  .sb-title {
    font-family: 'Syne', sans-serif; font-size: 0.95rem;
    font-weight: 700; color: #fff; line-height: 1.2;
  }

  .sb-sub { font-size: 0.72rem; color: var(--text3); line-height: 1.5; }

  .sb-cta { font-size: 0.72rem; font-weight: 600; color: var(--accent); margin-top: 4px; }
  .sb-hot  .sb-cta { color: #ff4fd8; }
  .sb-gold .sb-cta { color: #ffc400; }
  .sb-green .sb-cta { color: #4cd964; }


  /* VER MÁS BUTTON */
  .ver-mas-wrap {
    display: none;
    justify-content: center;
    margin: 1.5rem 0 0.5rem;
  }
  .ver-mas-wrap.visible { display: flex; }

  .btn-ver-mas {
    background: var(--card);
    border: 1.5px solid var(--border2);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 12px 32px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
  }
  .btn-ver-mas:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,108,217,0.06);
    transform: translateY(-1px);
  }
  .ver-mas-count {
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
  }

  /* VALIDATION TOAST */
  .pay-toast {
    position: fixed;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg2);
    border: 1px solid rgba(255,59,48,0.4);
    border-left: 3px solid #ff3b30;
    border-radius: 10px;
    padding: 12px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pay-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .pay-toast-icon { font-size: 1rem; flex-shrink: 0; }


  /* EVENTO FINALIZADO BADGE */
  .badge-finalizado {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(90,90,114,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 6px;
  }




  /* WELCOME TOAST */
  .welcome-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0,108,217,0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,108,217,0.5);
    border-radius: 14px;
    padding: 16px 28px;
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s, transform 0.35s;
    white-space: nowrap;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    text-align: center;
  }

  .welcome-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }


  /* DISCOUNT CODE BOX */
  .discount-box {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(135deg, rgba(0,108,217,0.08) 0%, rgba(0,108,217,0.04) 100%);
    border: 1.5px solid rgba(0,108,217,0.3);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
    position: relative;
  }

  .discount-box:focus-within { border-color: var(--accent); }

  .discount-box-icon {
    background: rgba(0,108,217,0.15);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border-right: 1px solid rgba(0,108,217,0.2);
  }

  .discount-box-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
  }

  .discount-box-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
  }

  .discount-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 100%;
  }

  .discount-input::placeholder {
    color: rgba(255,255,255,0.2);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
  }

  .discount-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 18px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    letter-spacing: 0.02em;
  }

  .discount-btn:hover { background: #1a7fe0; }

  .discount-status {
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 18px;
    font-weight: 500;
    display: none;
  }

  .discount-status.ok    { color: #4cd964; display: block; }
  .discount-status.error { color: #ff3b30; display: block; }

  .discount-applied-badge {
    position: absolute;
    top: -10px; right: 10px;
    background: #4cd964;
    color: #0a0a0f;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    display: none;
  }

  .discount-applied-badge.show { display: block; }


  /* VENUE MAP */
  .venue-map-wrap {
    margin-bottom: 1.5rem;
  }

  .venue-map-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .venue-map-svg {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #0d1117;
    display: block;
  }


  /* Hide empty promo cells on mobile */
  @media (max-width: 640px) {
    .promo-empty-cell {
      display: none !important;
    }
  }


  @media (max-width: 640px) {
    .hide-mobile { display: none !important; }
  }


  /* THEME TOGGLE BUTTON */
  .theme-toggle {
    background: none;
    border: 1px solid var(--border2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .theme-toggle:hover {
    background: var(--bg3);
    border-color: var(--accent);
  }

  /* LIGHT THEME */
  body.light {
    --bg:   #f5f5f7;
    --bg2:  #ffffff;
    --bg3:  #e8e8ed;
    --card: #ffffff;
    --text: #1a1a2e;
    --text2:#4a4a6a;
    --text3:#8a8aa8;
    --border:  rgba(0,0,0,0.1);
    --border2: rgba(0,0,0,0.18);
  }

  body.light nav {
    background: rgba(245,245,247,0.92);
    border-bottom-color: rgba(0,0,0,0.1);
  }

  body.light .hero-slide-overlay {
    background: linear-gradient(120deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.35) 60%, rgba(255,255,255,0.1) 100%);
  }

  body.light .hero h1,
  body.light .hero h1 em,
  body.light .event-name,
  body.light .section-title {
    color: #1a1a2e;
  }

  body.light .hero p,
  body.light .card-meta,
  body.light .event-info-row,
  body.light .nav-links a {
    color: #4a4a6a;
  }

  body.light .hero-tag {
    background: rgba(0,108,217,0.1);
    border-color: rgba(0,108,217,0.25);
    color: var(--accent);
  }

  body.light .stat-num { color: #1a1a2e; }
  body.light .stat-label { color: #8a8aa8; }

  body.light .event-card,
  body.light .featured-grid .event-card-featured {
    border-color: rgba(0,0,0,0.1);
  }

  body.light .event-price { color: #1a1a2e; }
  body.light .event-cat   { color: var(--accent); }

  body.light .modal,
  body.light .auth-modal,
  body.light .pay-timer-title { color: #1a1a2e; }
  body.light .pay-timer-sub   { color: #4a4a6a; }
  body.light .pay-timer-count { color: #1a1a2e; }
  body.light .pay-timer-label { color: #8a8aa8; }
  body.light .pay-timer-info  { background: #f0f0f5; border-color: rgba(0,0,0,0.1); }
  body.light .pay-timer-info-label { color: #8a8aa8; }
  body.light .pay-timer-info-value { color: #1a1a2e; }

  body.light .pay-timer-modal,
  body.light .exit-modal-title { color: #1a1a2e; }
  body.light .exit-modal-sub   { color: #4a4a6a; }

  body.light .exit-modal,
  body.light .pay-toast {
    background: #fff;
    border-color: rgba(255,59,48,0.3);
    color: #1a1a2e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  }

  body.light .guest-modal-title { color: #1a1a2e; }
  body.light .guest-modal-sub   { color: #4a4a6a; }
  body.light .guest-form-group label { color: #4a4a6a; }

  body.light .guest-modal {
    background: #ffffff;
    color: #1a1a2e;
  }

  body.light .modal-body,
  body.light .ticket-table td,
  body.light .ticket-table th,
  body.light .loc-table td,
  body.light .modal-meta-value,
  body.light .modal-meta-label {
    color: #1a1a2e;
  }

  body.light .ticket-table thead tr,
  body.light .loc-table-wrap {
    background: #f0f0f5;
  }

  body.light .ticket-table tbody tr:hover { background: #e8e8f0 !important; }

  body.light .paginator .pag-btn,
  body.light .pag-num {
    color: #4a4a6a;
    border-color: rgba(0,0,0,0.15);
  }

  body.light .footer-bottom p,
  body.light .footer-col ul a,
  body.light .footer-brand p {
    color: #4a4a6a;
  }

  body.light .mobile-menu {
    background: #ffffff;
    border-bottom-color: rgba(0,0,0,0.1);
  }

  body.light .mobile-menu a { color: #4a4a6a; border-bottom-color: rgba(0,0,0,0.08); }

  body.light .search-bar {
    background: #ffffff;
    border-color: rgba(0,0,0,0.15);
  }

  body.light .search-bar input { color: #1a1a2e; }
  body.light .search-bar input::placeholder { color: #8a8aa8; }

  body.light .filter-chip {
    color: #4a4a6a;
    border-color: rgba(0,0,0,0.15);
  }

  body.light .chat-panel { background: #ffffff; }
  body.light .chat-msg.bot .chat-bubble { background: #e8e8ed; color: #1a1a2e; }
  body.light .chat-input { background: #f0f0f5; color: #1a1a2e; border-color: rgba(0,0,0,0.15); }


  /* Light theme select/option */
  body.light .qty-select,
  body.light .qty-cell.qty-active .qty-select {
    background: #fff;
    border-color: rgba(0,0,0,0.2);
    color: #1a1a2e;
  }

  body.light .qty-select option,
  body.light .qty-cell.qty-active .qty-select option {
    background: #fff;
    color: #1a1a2e;
  }

  body.light .form-group select {
    background: #fff;
    color: #1a1a2e;
    border-color: rgba(0,0,0,0.2);
  }

  body.light .form-group select option {
    background: #fff;
    color: #1a1a2e;
  }

  body.light .guest-input,
  body.light .rut-input,
  body.light .discount-input,
  body.light .chat-input,
  body.light .form-group input,
  body.light .form-group textarea {
    background: #f5f5f7;
    color: #1a1a2e;
    border-color: rgba(0,0,0,0.15);
  }

  body.light .form-group input::placeholder,
  body.light .form-group textarea::placeholder,
  body.light .rut-input::placeholder,
  body.light .discount-input::placeholder {
    color: #8a8aa8;
  }

  body.light .sb-title { color: #1a1a2e; }

  /* Light mode: payment methods, terms, pay button */
  body.light .pay-name { color: #1a1a2e; }
  body.light .pay-desc { color: #4a4a6a; }
  body.light .pay-btn  { background: #f5f5f7; border-color: rgba(0,0,0,0.15); }
  body.light .pay-btn:hover { background: #e8e8ed; border-color: var(--accent); }
  body.light .pay-btn.selected { background: rgba(0,108,217,0.08); border-color: var(--accent); }

  body.light .terms-text { color: #1a1a2e; }
  body.light .terms-row  { background: #f5f5f7; border-color: rgba(0,0,0,0.12); }
  body.light .terms-row.accepted { background: rgba(0,108,217,0.06); border-color: var(--accent); }

  body.light .btn-pay-label { color: #fff; }
  body.light .btn-pay-amount { color: #fff; }
  body.light .payment-label { color: #4a4a6a; }


  /* TABLE VERTICAL RESPONSIVE */
  .table-vertical { 
    width: 100%; 
    height: auto;
    border-collapse: collapse; 
  }

  .table-vertical>tbody>tr:nth-of-type(odd) { 
    background: rgba(255,255,255,0.04);
  }

  .table-vertical>thead>tr>th { 
    background: var(--bg3); 
    color: var(--text); 
    font-weight: bold; 
  }

  .table-vertical>tbody>tr>td, .table-vertical>thead>tr>th { 
    padding: 6px; 
    border-top: 1px solid var(--border); 
    text-align: left; 
    vertical-align: middle;
  }

  @media only screen and (max-width: 760px),
  (min-device-width: 768px) and (max-device-width: 1024px) {
    .table-vertical table, .table-vertical thead, .table-vertical tbody,
    .table-vertical th, .table-vertical td, .table-vertical tr { 
      display: block; 
    }

    .table-vertical thead tr { 
      position: absolute;
      top: -9999px;
      left: -9999px;
    }

    .table-vertical>thead>tr, .table-vertical>tbody>tr { 
      border: 1px solid var(--border2); 
    }

    .table-vertical>thead>tr>td, .table-vertical>tbody>tr>td { 
      border: none;
      border-bottom: 1px solid var(--border); 
      position: relative;
      padding-left: 30%; 
    }

    .table-vertical>tbody>tr>td:before { 
      position: absolute;
      top: 6px;
      left: 6px;
      width: 68%; 
      padding-right: 10px; 
      white-space: nowrap;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--text3);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .table-vertical>tbody>tr>td:before { content: attr(data-th); }

    /* Apply to ticket-table and loc-table */
    .ticket-table.table-vertical table,
    .ticket-table.table-vertical thead,
    .ticket-table.table-vertical tbody,
    .ticket-table.table-vertical th,
    .ticket-table.table-vertical td,
    .ticket-table.table-vertical tr { display: block; }

    .ticket-table.table-vertical thead tr,
    .loc-table.table-vertical thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
  }

  /* SCROLL ANIMATION */
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
  }

  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }


  .chat-fab {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,108,217,0.5);
    z-index: 500;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
  }

  .chat-fab:hover { transform: scale(1.1); background: #1a7fe0; }
  .chat-fab.open  { transform: rotate(45deg) scale(1.05); }

  .chat-fab svg { transition: opacity 0.2s; }

  .chat-badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 18px; height: 18px;
    background: #ff4fd8;
    border-radius: 50%;
    border: 2px solid var(--bg);
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s ease-in-out infinite;
  }

  @keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
  }

  /* CHAT PANEL */
  .chat-panel {
    position: fixed;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    right: 1.5rem;
    width: 340px;
    max-height: 520px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 499;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
  }

  .chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  @media (max-width: 400px) {
    .chat-panel { width: calc(100vw - 2rem); right: 1rem; }
  }

  .chat-header {
    background: var(--accent);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .chat-header-info { flex: 1; }

  .chat-header-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
  }

  .chat-header-status {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .chat-header-status::before {
    content: '';
    width: 6px; height: 6px;
    background: #4cd964;
    border-radius: 50%;
    display: inline-block;
  }

  .chat-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
  }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: msgIn 0.3s ease;
  }

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

  .chat-msg.user { flex-direction: row-reverse; }

  .chat-bubble {
    max-width: 75%;
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 0.83rem;
    line-height: 1.5;
    color: #fff;
  }

  .chat-msg.bot  .chat-bubble { background: var(--bg3); border-bottom-left-radius: 4px; }
  .chat-msg.user .chat-bubble { background: var(--accent); border-bottom-right-radius: 4px; }

  .chat-bubble-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--bg3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .chat-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg3);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
  }

  .chat-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text3);
    animation: typingDot 1.2s infinite;
  }

  .chat-typing span:nth-child(2) { animation-delay: 0.2s; }
  .chat-typing span:nth-child(3) { animation-delay: 0.4s; }

  @keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-4px); opacity: 1; }
  }

  .chat-input-row {
    display: flex;
    gap: 8px;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    align-items: center;
  }

  .chat-input {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 20px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 8px 14px;
    outline: none;
    transition: border-color 0.2s;
  }

  .chat-input:focus { border-color: var(--accent); }
  .chat-input::placeholder { color: var(--text3); }

  .chat-send {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
  }

  .chat-send:hover { background: #1a7fe0; transform: scale(1.05); }


  .exit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .exit-modal-overlay.open { display: flex; }

  .exit-modal {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
    animation: slideUp 0.25s cubic-bezier(0.16,1,0.3,1);
  }

  .exit-modal-icon { font-size: 2rem; margin-bottom: 0.75rem; }

  .exit-modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
  }

  .exit-modal-event {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .exit-modal-sub {
    font-size: 0.83rem;
    color: var(--text3);
    margin-bottom: 1.75rem;
    line-height: 1.6;
  }

  .exit-modal-actions {
    display: flex;
    gap: 10px;
  }

  .exit-btn-stay {
    flex: 2;
    background: var(--accent);
    border: none;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
  }

  .exit-btn-stay:hover { background: #1a7fe0; }

  .exit-btn-leave {
    flex: 1;
    background: none;
    border: 1px solid var(--border2);
    color: var(--text3);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
  }

  .exit-btn-leave:hover { border-color: #ff3b30; color: #ff3b30; }


  .guest-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(10px);
    z-index: 650;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .guest-modal-overlay.open { display: flex; }

  .guest-modal {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.28s cubic-bezier(0.16,1,0.3,1);
  }

  .guest-modal-icon { font-size: 2rem; text-align: center; margin-bottom: 0.75rem; }

  .guest-modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
  }

  .guest-modal-sub {
    font-size: 0.8rem;
    color: var(--text3);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .guest-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
  }

  .guest-form-group label {
    font-size: 0.75rem;
    color: var(--text2);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .guest-input {
    background: var(--bg3);
    border: 1.5px solid var(--border2);
    border-radius: 8px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
  }

  .guest-input:focus { border-color: var(--accent); }
  .guest-input::placeholder { color: var(--text3); }
  .guest-input.error { border-color: #ff3b30; }
  .guest-input.ok    { border-color: #4cd964; }

  .guest-error-msg {
    font-size: 0.72rem;
    color: #ff3b30;
    display: none;
    margin-top: 2px;
  }

  .guest-error-msg.show { display: block; }

  .guest-divider {
    text-align: center;
    margin: 1rem 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text3);
  }

  .btn-guest-login {
    width: 100%;
    background: none;
    border: 1px solid var(--border2);
    color: var(--text2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
  }

  .btn-guest-login:hover { border-color: var(--accent); color: var(--accent); }

  .btn-guest-submit {
    width: 100%;
    background: linear-gradient(135deg, #006cd9 0%, #0056b3 100%);
    border: none;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0,108,217,0.35);
  }

  .btn-guest-submit:hover { background: linear-gradient(135deg, #1a7fe0, #006cd9); transform: translateY(-1px); }



/* RUT KEYBOARD */

  .rut-kb-overlay {
    display: none; position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
    align-items: flex-end; justify-content: center;
  }
  .rut-kb-overlay.open { display: flex; }
  .rut-kb-panel {
    background: var(--bg2); border-top: 1px solid var(--border2);
    border-radius: 20px 20px 0 0; padding: 1rem;
    width: 100%; max-width: 420px;
    animation: slideUp 0.25s cubic-bezier(0.16,1,0.3,1);
  }
  .rut-kb-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 0.75rem; padding: 0 4px;
  }
  .rut-kb-lbl { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
  .rut-kb-display { font-family: 'Syne',sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: 0.05em; min-width: 100px; text-align: right; }
  .rut-kb-display.empty { color: var(--text3); font-size: 0.85rem; font-weight: 400; }
  .rut-kb-x { background: var(--bg3); border: 1px solid var(--border2); border-radius: 50%; width: 28px; height: 28px; color: var(--text2); font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .rut-kb-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
  .rut-kb-btn {
    background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
    padding: 13px 6px; font-family: 'Syne',sans-serif; font-size: 1.05rem;
    font-weight: 700; color: #fff; cursor: pointer; text-align: center;
    transition: all 0.1s; user-select: none; -webkit-user-select: none;
  }
  .rut-kb-btn:active { background: var(--accent); color: #fff; transform: scale(0.93); }
  .rut-kb-k   { background: rgba(0,108,217,0.14); border-color: #006cd9; color: #4da3ff; }
  .rut-kb-p   { background: rgba(71,212,255,0.12); border-color: #47d4ff; color: #47d4ff; }
  .rut-kb-del { background: rgba(255,59,48,0.1); border-color: rgba(255,59,48,0.3); color: #ff3b30; font-size: 1.15rem; }
  .rut-kb-ok  { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 0.8rem; }
  @media (min-width: 761px) { .rut-kb-overlay { display: none !important; } }

/* LAZY LOAD */
.lazyload {
  filter: blur(5px);
  transition: filter 0.3s;
}
.lazyloaded {
  filter: blur(0);
}
