/* ... (CSS base igual que antes) ... */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
      cursor: none !important;
    }

    html {
      color-scheme: dark;
    }

    body {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background: radial-gradient(circle at bottom right, #6a0f0f, #000 60%);
      color: #fff;
      overflow-x: hidden;
      scroll-behavior: smooth;
      cursor: none;
    }

    canvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none
    }


    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, .9);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 50px;
      z-index: 3002;
      box-shadow: 0 2px 8px rgba(255, 255, 255, .05)
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .logo img {
      width: 40px;
      height: 40px;
      border-radius: 50%
    }

    .logo span {
      font-size: 1.3rem;
      font-weight: 700;
      color: #fff
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 20px;
      align-items: center
    }

    /* Submenú */
    .submenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: rgba(0, 0, 0, .95);
      padding: 10px 0;
      border-radius: 8px;
      min-width: 200px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
      z-index: 25;
    }

    nav ul li {
      position: relative;
    }

    nav ul li:hover .submenu {
      display: block;
    }

    .submenu li {
      padding: 5px 20px;
    }

    .submenu li a {
      display: block;
      color: #fff;
      padding: 8px 10px;
      transition: .3s;
      position: relative;
      white-space: nowrap;
    }

    .submenu li a:hover {
      background: rgba(65, 11, 11, 0.8);
      color: #fff;
      border-radius: 5px;
      transform: translateX(3px);
    }

    nav ul li a {
      color: #fff;
      text-decoration: none;
      font-weight: 500;
      position: relative;
      padding: 5px;
      transition: .3s
    }

    nav ul li a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 0;
      height: 2px;
      background: #ff3c3c;
      transition: width .3s
    }

    nav ul li a:hover {
      color: #ff3c3c
    }

    nav ul li a:hover::after {
      width: 100%
    }

    nav ul li:hover .submenu {
      display: block
    }

    /* --- Estilo activo como Marketing --- */

    /* Padre activo (Cartelera) */
    nav ul li.parent-active>a {
      color: #d4af37 !important;
      font-weight: 700;
    }

    nav ul li.parent-active>a::after {
      content: "";
      width: 100%;
      background: #ff3c3c;
      height: 2px;
      position: absolute;
      left: 0;
      bottom: -5px;
    }

    /* Hijo activo (En Estreno) */
    .submenu li a.active-page {
      background: #5c0c0c;
      color: #fff !important;
      font-weight: 700;
      border-radius: 5px;
      border-left: 3px solid #d4af37;
      padding-left: 15px;
    }

    main {
      padding: 130px 40px 100px;
      max-width: 1200px;
      margin: auto;
      position: relative;
      z-index: 5
    }

    h2 {
      color: #d4af37;
      text-align: center;
      margin-bottom: 40px;
      font-size: 2rem
    }

    .galeria-shows {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 50px;
      justify-items: center;
      align-items: start
    }

    .show-item {
      text-align: center
    }

    .show-item img {
      width: 100%;
      border-radius: 15px;
      box-shadow: 0 0 25px rgba(212, 175, 55, .25);
      transition: transform .4s, box-shadow .4s;
      cursor: pointer
    }

    .show-item img:hover {
      transform: scale(1.03);
      box-shadow: 0 0 35px rgba(212, 175, 55, .5)
    }

    .show-year {
      margin-top: 15px;
      font-size: 1.2rem;
      font-weight: 700;
      color: #d4af37;
      letter-spacing: 1px;
      text-shadow: 0 0 5px rgba(212, 175, 55, .5)
    }

    /* LIGHTBOX */
    .lightbox {
      overflow: hidden !important;
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .9);
      justify-content: center;
      align-items: center;
      z-index: 3500;
      backdrop-filter: blur(3px);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .lightbox.active {
      opacity: 1;
    }

    .lightbox-content {
      position: relative;
      max-width: 90%;
      max-height: 85%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .lightbox img {
      width: auto;
      height: auto;
      max-width: 90vw;
      /* Constrain to viewport width */
      max-height: 90vh;
      /* Constrain to viewport height */
      border-radius: 10px;
      box-shadow: 0 0 35px rgba(212, 175, 55, 0.8);
      border: 2px solid #d4af37;
      transform: scale(0.8);
      object-fit: contain;
      /* Ensure Aspect Ratio */
      transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .lightbox.active img {
      transform: scale(1);
    }

    /* BOTÓN CERRAR (X) */
    .close-btn {
      position: fixed;
      /* Fixed on desktop to stay in corner */
      top: 30px;
      right: 40px;
      color: #fff;
      font-size: 2.5rem;
      cursor: pointer;
      transition: color .3s;
      z-index: 3505;
      text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    }

    .close-btn:hover {
      color: #d4af37
    }

    /* Mobile Lightbox Adjustments */
    @media (max-width: 900px) {
      .close-btn {
        position: absolute;
        /* Absolute to container on mobile */
        top: 10px;
        right: 15px;
        font-size: 2rem;
        background: rgba(0, 0, 0, 0.5);
        /* Background for better visibility on img */
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 4px;
        /* centering fix */
      }
    }

    /* BOTÓN GALERÍA */
    .gallery-toggle {
      position: absolute;
      right: 40px;
      bottom: 40px;
      background: rgba(255, 255, 255, .1);
      color: #d4af37;
      border-radius: 50%;
      width: 55px;
      height: 55px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.8rem;
      cursor: pointer;
      transition: all .3s;
      z-index: 3505;
    }

    .gallery-toggle:hover {
      background: rgba(212, 175, 55, .2);
      transform: scale(1.1)
    }

    /* PANEL LATERAL */
    .gallery-panel {
      overflow-x: hidden !important;
      position: fixed;
      top: 0;
      right: 0;
      width: 350px;
      height: 100%;
      background: rgba(15, 15, 15, .95);
      padding: 20px;
      display: flex;
      flex-direction: column;
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      will-change: transform;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      z-index: 3510;
      /* MÁS ALTO que la X para cubrirla */
    }

    .gallery-panel.open {
      transform: translateX(0);
      box-shadow: -2px 0 25px rgba(212, 175, 55, .4), inset -5px 0 10px rgba(212, 175, 55, .3);
      animation: glowSlide .6s forwards
    }

    @keyframes glowSlide {
      0% {
        box-shadow: -2px 0 0 rgba(212, 175, 55, 0);
        background: rgba(15, 15, 15, .8)
      }

      50% {
        box-shadow: -2px 0 20px rgba(212, 175, 55, .5);
        background: rgba(20, 20, 20, .9)
      }

      100% {
        box-shadow: -2px 0 25px rgba(212, 175, 55, .4);
        background: rgba(15, 15, 15, .95)
      }
    }

    .gallery-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #d4af37;
      border-bottom: 1px solid rgba(255, 255, 255, .1);
      padding-bottom: 10px;
      margin-bottom: 15px
    }

    .gallery-thumbs {
      overflow-x: hidden !important;
      display: flex;
      flex-direction: column;
      gap: 15px;
      overflow-y: auto
    }

    .gallery-thumbs img {
      width: 100%;
      border-radius: 10px;
      cursor: pointer;
      opacity: .9;
      transition: all .3s
    }

    .gallery-thumbs img:hover {
      opacity: 1;
      transform: scale(1.03);
      box-shadow: 0 0 15px rgba(212, 175, 55, .5)
    }

    #lightbox-img.shifted {
      transform: translateX(-150px);
      transition: transform .4s
    }

    /* Flecha cerrar panel */
    #closeGallery {
      cursor: pointer;
      color: rgba(255, 255, 255, .95); /* Aumentada visibilidad */
      font-size: 1.5rem; /* Asegurar que sea grande y clickeable */
      transition: color .2s, transform .18s;
      z-index: 3515;
    }

    #closeGallery:hover {
      color: #d4af37;
      transform: translateX(3px)
    }

    /* Footer/Social */
    .social-links {
      position: fixed;
      bottom: 30px;
      left: 30px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      z-index: 100
    }

    .social-links a {
      width: 45px;
      height: 45px;
      background: rgba(255, 255, 255, .15);
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 22px;
      transition: all .3s;
      backdrop-filter: blur(5px)
    }

    .social-links a:hover {
      background: linear-gradient(135deg, #d4af37, #ffecb3);
      color: #000;
      transform: scale(1.1);
      box-shadow: 0 0 15px #d4af37, 0 0 30px #ffecb3
    }

    footer {
      text-align: center;
      padding: 25px 10px;
      color: #d4af37;
      font-size: .95rem;
      width: 100%;
      margin-top: auto;
      z-index: 5;
    }

    @media(max-width:900px) {
      .galeria-shows {
        grid-template-columns: 1fr
      }

      .gallery-panel {
      overflow-x: hidden !important;
        width: 300px
      }

      .show-item img {
        border-radius: 12px
      }
    }

    /* EFECTO DE SELECCIÓN MÁGICA */
    ::selection {
      background: rgba(106, 15, 15, 0.8);
      color: #ffffff;
      text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37, 0 0 20px #ffecb3;
    }

    ::-moz-selection {
      background: rgba(106, 15, 15, 0.8);
      color: #ffffff;
      text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37;
    }

    /* Estilo de la partícula mágica */
    .magic-star {
      position: fixed;
      pointer-events: none;
      background: #d4af37;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      box-shadow: 0 0 10px #ffecb3;
      animation: fadeOut 1s linear forwards;
      z-index: 9999;
    }

    @keyframes fadeOut {
      0% {
        opacity: 1;
        transform: scale(1) translateY(0);
      }

      100% {
        opacity: 0;
        transform: scale(0) translateY(20px);
      }
    }

    

    

    /* Important: Override nav display for mobile */
    @media (max-width: 900px) {
      nav {
        display: none;
        /* Hide default nav */
      }

      

      .logo img {
        width: 35px;
        height: 35px
      }

      .logo span {
        font-size: 1.1rem
      }

      header {
        padding: 15px 20px;
        z-index: 3002;
        /* Ensure header is above menu */
      }
    }

    

    

    

    

    


    

    

    

    /* Submenu item active style */
    
  
        /* Custom Animated Cursor */
        .custom-cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 20px;
            height: 20px;
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.1s linear;
        }
        .custom-cursor svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
        }

        /* Estilo de la partícula mágica */
        .magic-star {
            position: fixed;
            pointer-events: none;
            background: #d4af37;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            box-shadow: 0 0 10px #ffecb3;
            animation: fadeOutMagic 1s linear forwards;
            z-index: 9999;
        }

        @keyframes fadeOutMagic {
            0% { opacity: 1; transform: scale(1) translateY(0); }
            100% { opacity: 0; transform: scale(0) translateY(20px); }
        }

        /* Ocultar el cursor personalizado VIRTUAL enteramente en móviles */
        @media (pointer: coarse) {
          .custom-cursor {
            display: none !important;
          }
        }
    

    

    


    

    

    
