* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
      cursor: none !important;
    }

    html,
    body {
      color-scheme: dark;
      height: 100%;
      display: flex;
      flex-direction: column;
      background: radial-gradient(circle at bottom right, #6a0f0f, #000 60%);
      color: #fff;
      overflow: 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
    }

    /* --- CORRECCIÓN SUBMENÚ (Igual que en Shows Pasados) --- */
    .submenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: rgba(0, 0, 0, .95);
      padding: 10px 0;
      border-radius: 8px;
      min-width: 200px;
      /* Aumentado para evitar saltos de línea */
      box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
      z-index: 25
    }

    nav ul li {
      position: relative
    }

    .submenu li {
      padding: 5px 20px
    }

    .submenu li a {
      display: block;
      color: #fff;
      padding: 8px 10px;
      transition: all .3s ease;
      white-space: nowrap;
      /* IMPORTANTE: Esto evita que el texto se rompa */
    }

    .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%
    }

    /* PC ONLY: Red bar for Active Page (Inicio) */
    @media (min-width: 901px) {
      nav ul li a.active-page::after {
        width: 100%;
        box-shadow: 0 0 10px #ff3c3c;
      }
    }

    nav ul li:hover .submenu {
      display: block
    }

    /* ESTILO UNIFICADO PARA PÁGINA ACTIVA */
    nav ul li.parent-active>a,
    nav ul li a.active-page,
    .submenu .active-page {
      color: #d4af37 !important;
      /* Dorado Starmark */
      font-weight: 700;
    }

    nav ul li.parent-active>a::after {
      content: "";
      width: 100%;
      background: #ff3c3c;
      /* Rojo Starmark */
      height: 2px;
      position: absolute;
      left: 0;
      bottom: -5px;
      transition: none;
      /* Elimina animación al cargar para que aparezca fija */
    }

    /* Hijo Activo (Rounded Card Style) */
    .submenu li a.active-page,
    .submenu .active-page {
      background: #5c0c0c;
      color: #fff !important;
      border-radius: 10px;
      border-left: 5px solid #d4af37;
      border-bottom: none;
      margin: 5px 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      text-shadow: none;
    }

    /* EFECTO DE SELECCIÓN MÁGICA */
    ::selection {
      background: rgba(106, 15, 15, 0.8);
      /* Fondo rojo oscuro Starmark (semi-transparente) */
      color: #ffffff;
      /* Texto blanco */
      /* Esto crea el efecto de "estrellitas" o luz mágica alrededor de las letras */
      text-shadow:
        0 0 5px #d4af37,
        0 0 10px #d4af37,
        0 0 20px #ffecb3;
    }

    ::-moz-selection {
      /* Para Firefox */
      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;
      /* Para que no interfiera con los clics */
      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);
      }
    }

    /* El elemento padre no necesita marcarse aquí ya que "Inicio" no tiene padre */

    /* --- DISNEY ARC ANIMATION --- */
    .disney-arc-wrapper {
      position: absolute;
      top: -150px;
      /* Movido más arriba para dar espacio */
      left: 50%;
      transform: translateX(-50%);
      width: 150%;
      /* Más ancho para asegurar que cubra todo el texto sin cortarlo */
      height: 300px;
      pointer-events: none;
      z-index: 4;
    }

    .disney-svg {
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    /* La ruta del arco (la línea blanca/brillante) */
    .arc-path {
      fill: none;
      stroke: url(#arcGradient);
      stroke-width: 4;
      stroke-linecap: round;
      stroke-dasharray: 1000;
      stroke-dashoffset: 1000;
      animation: drawArc 2.5s ease-out forwards;
      filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #d4af37);
    }

    /* La estrella que lidera el arco */
    .leading-star {
      offset-path: path("M10,250 Q300,-100 590,250");
      offset-distance: 0%;
      position: absolute;
      top: 0;
      left: 0;
      width: 40px;
      height: 40px;
      background: radial-gradient(circle, #fff 20%, #d4af37 60%, transparent 80%);
      clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
      animation: moveStar 2.5s ease-out forwards;
      filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px #ffecb3);
      z-index: 10;
    }

    /* Brillo extra rotando en la estrella */
    .leading-star::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 10%, transparent 60%);
      animation: sparkle 1s infinite linear;
    }

    @keyframes drawArc {
      0% {
        stroke-dashoffset: 1000;
        opacity: 0;
      }

      10% {
        opacity: 1;
      }

      100% {
        stroke-dashoffset: 0;
        opacity: 0;
        /* Desvanece al final si quieres, o déjalo en 1 */
      }
    }

    @keyframes moveStar {
      0% {
        offset-distance: 0%;
        opacity: 0;
        transform: scale(0.5);
      }

      10% {
        opacity: 1;
        transform: scale(1.2);
      }

      100% {
        offset-distance: 100%;
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
      }
    }

    @keyframes sparkle {
      0% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.8;
      }

      50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
      }

      100% {
        transform: scale(0.8) rotate(360deg);
        opacity: 0.8;
      }
    }

    .hero {
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      position: relative;
      z-index: 5;
      padding: 0 20px
    }

    /* Contenedor relativo para posicionar el arco respecto al h1 */
    .title-container {
      position: relative;
      display: inline-block;
    }

    .hero h1 {
      font-size: 3rem;
      color: #d4af37;
      text-shadow: 0 0 10px #d4af37, 0 0 20px #d4af37, 0 0 30px #ffecb3;
      animation: glow 2s infinite alternate;
      position: relative;
      /* Asegura que el h1 esté sobre el arco si se superponen */
      z-index: 6;
    }


    @keyframes glow {
      from {
        text-shadow: 0 0 10px #d4af37, 0 0 20px #d4af37
      }

      to {
        text-shadow: 0 0 20px #ffecb3, 0 0 40px #ffecb3
      }
    }

    .hero h2 {
      color: #e4c96f;
      margin-top: 10px;
      font-size: 1.2rem
    }

    .hero p {
      max-width: 700px;
      margin-top: 20px;
      color: #ddd;
      line-height: 1.5
    }

    .botones {
      display: flex;
      gap: 20px;
      margin-top: 30px
    }

    .btn {
      padding: 12px 30px;
      border-radius: 25px;
      font-weight: 700;
      font-size: .95rem;
      text-decoration: none;
      transition: .3s
    }

    .btn.rojo {
      background: #ff3c3c;
      color: #fff
    }

    .btn.rojo:hover {
      background: #ff5555;
      transform: scale(1.05)
    }

    .btn.dorado {
      border: 2px solid #d4af37;
      color: #d4af37;
      background: transparent
    }

    .btn.dorado:hover {
      background: #d4af37;
      color: #000;
      transform: scale(1.05)
    }

    @media (max-width: 900px) {
      .botones {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
      }
      .btn {
        width: 90%;
        max-width: 300px;
        font-size: 1rem;
        padding: 15px 20px;
      }
    }

    /* Botón Música */
    .music-btn {
      position: fixed;
      bottom: 25px;
      right: 25px;
      border-radius: 25px;
      padding: 12px 20px;
      font-weight: 700;
      font-size: 1.2rem;
      cursor: pointer;
      backdrop-filter: blur(5px);
      transition: all .3s;
      z-index: 20;
      background: transparent;
      color: #d4af37;
      border: 3px solid #d4af37
    }

    .music-btn:hover {
      background: #d4af37;
      color: #000;
      transform: scale(1.1)
    }

    .music-btn.playing {
      animation: pulse-music 2s infinite
    }

    @keyframes pulse-music {
      0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7)
      }

      70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0)
      }
    }

    .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 Style (Agregado para consistencia) */
    footer {
      text-align: center;
      padding: 25px 10px;
      color: #d4af37;
      font-size: .95rem;
      width: 100%;
      margin-top: auto;
      z-index: 5;
      /* Asegurar que esté sobre las partículas */
    }

    

    

    /* Important: Override nav display for mobile and Tablet Portrait */
    @media (max-width: 900px),
    (max-width: 1025px) and (orientation: portrait) {
      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 */
    

    /* --- Landscape Mode Optimization (Phones) --- */
    @media (max-width: 900px) and (orientation: landscape) {
      

      

      .logo img {
        width: 30px;
        height: 30px;
      }

      header {
        padding: 5px 20px;
        /* Header más delgado */
      }

      /* Fix for Hero Spacing in Landscape */
      .hero {
        justify-content: flex-start;
        /* Don't center vertically */
        padding-top: 80px;
        /* Push content down below header */
      }

      .hero h1 {
        font-size: 2rem;
        margin-top: 0;
      }

      .disney-arc-wrapper {
        top: -80px;
        /* Pull arc closer so it's not cut off */
        transform: translateX(-50%) scale(0.6);
        /* Scale down to fit short screen */
      }

      .hero p {
        font-size: 0.9rem;
        margin-top: 10px;
      }

      .botones {
        margin-top: 20px;
      }
    }

    /* --- Tablet/Desktop Landscape Optimization (iPad and similar) --- */
    @media (min-width: 901px) and (max-width: 1366px) and (orientation: landscape) {
      main {
        padding-top: 90px;
        /* Reduce top padding from 130px */
        padding-bottom: 40px;
        max-width: 95%;
      }

      h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
      }

      h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
      }

      .casting-block {
        gap: 20px;
        padding: 20px;
        margin-bottom: 40px;
      }

      .casting-block iframe {
        height: 350px;
        /* Reduce iframe height */
      }

      .casting-info {
        font-size: 0.95rem;
        line-height: 1.6;
      }

      /* Adjust social links to not float awkwardly mid-screen */
      .social-links {
        left: 15px;
        bottom: 15px;
        /* Tucked closer to corner */
        gap: 10px;
      }

      .social-links a {
        width: 35px;
        height: 35px;
        font-size: 18px;
      }

      /* Fix Menu Wrapping on Tablet Landscape */
      header {
        padding: 5px 10px;
        /* Minimal side padding */
      }

      .logo {
        white-space: nowrap;
        /* Prevent "Starmark Producciones" from breaking */
        margin-right: auto;
        /* Push menu to right but allow shrink */
      }

      .logo span {
        font-size: 1rem;
        /* Smaller logo text (was 1.1rem) */
      }

      nav ul {
        gap: 8px;
        /* Very tight gap (was 15px) */
      }

      nav ul li a {
        white-space: nowrap;
        /* Prevent "Cartelera ▾" from breaking */
        font-size: 0.8rem;
        /* Smaller menu text (was 0.9rem) */
        padding: 5px 5px;
        /* Minimal padding */
      }
    }
  
        /* 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;
      }
    }

/* --- REAL-TIME VISITOR STATS --- */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10; /* Above particles */
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 5, 5, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

.stat-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
}

.stat-badge i {
    color: #ff3c3c;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 60, 60, 0.5));
}

.stat-badge span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 500;
}

.stat-badge strong {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #d4af37;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
    min-width: 30px;
    text-align: center;
}

/* Tooltip estético */
.tooltip-box .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: rgba(20, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    z-index: 15;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    border: 1px solid #d4af37;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.tooltip-box .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #d4af37 transparent transparent transparent;
}

.tooltip-box:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Animación de actualización en vivo */
@keyframes pulseUpdate {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.5); border-color: #d4af37; }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
}

.pulse-update {
    animation: pulseUpdate 0.5s ease-out;
}

@media (max-width: 900px) {
    .stats-container {
        gap: 10px;
        margin-top: 30px;
    }
    .stat-badge {
        padding: 8px 15px;
    }
    .stat-badge i { font-size: 1rem; }
    .stat-badge span { font-size: 0.8rem; }
    .stat-badge strong { font-size: 1.1rem; }
}
