/* --- TUS ESTILOS ORIGINALES INTACTOS --- */
    html {
      background-color: #000000;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
      cursor: none !important;
    }

    body {
      color-scheme: dark;
      background: radial-gradient(circle at bottom right, #6a0f0f, #000000 60%);
      color: #fff;
      min-height: 100vh;
      overflow-x: hidden;
      cursor: none;
      /* Flex Column Layout to match casting.html */
      display: flex;
      flex-direction: column;
    }

    canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    /* Navbar Styles */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.85);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 50px;
      z-index: 3002;
      box-shadow: 0 2px 8px rgba(255, 255, 255, 0.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: bold;
      color: #fff;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 20px;
      align-items: center;
    }

    .submenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: rgba(0, 0, 0, 0.95);
      padding: 10px 0;
      border-radius: 8px;
      min-width: 200px;
      box-shadow: 0 2px 10px rgba(0, 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;
    }

    .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: 0.3s;
    }

    nav ul li a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 0;
      height: 2px;
      background: #ff3c3c;
      transition: width 0.3s;
    }

    nav ul li a:hover {
      color: #ff3c3c;
    }

    nav ul li a:hover::after {
      width: 100%;
    }

    /* PC ONLY: Red bar & Gold Text for Active Page */
    @media (min-width: 901px) {
      nav ul li a.active-page {
        color: #d4af37 !important;
        font-weight: 700;
      }

      nav ul li a.active-page::after {
        width: 100%;
        box-shadow: 0 0 10px #ff3c3c;
      }
    }

    nav ul li:hover .submenu {
      display: block;
    }

    /* Removed generic .active rules to prevent red line artifact */

    /* Section Styles */
    section {
      padding: 120px 40px;
      max-width: 1200px;
      margin: auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      position: relative;
      z-index: 2;
    }

    iframe {
      width: 100%;
      height: 450px;
      border: none;
      border-radius: 15px;
      box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
      opacity: 0;
      transform: translateY(30px);
      animation: fadeIn 1.2s ease forwards;
    }

    @keyframes fadeIn {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .formulario {
      background: rgba(255, 255, 255, 0.05);
      padding: 30px;
      border-radius: 15px;
      box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    }

    .formulario h2 {
      color: #d4af37;
      text-align: center;
      margin-bottom: 20px;
    }

    .formulario p {
      color: #ccc;
      text-align: center;
      margin-bottom: 30px;
      font-size: 0.95rem;
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    input,
    textarea {
      padding: 12px;
      border: 2px solid rgba(212, 175, 55, 0.8);
      border-radius: 5px;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      outline: none;
      transition: all 0.3s ease;
    }

    input:focus,
    textarea:focus {
      border-color: #d4af37;
      box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
      background: rgba(255, 255, 255, 0.12);
    }

    textarea {
      resize: none;
    }

    /* Link Validator Styles */
    .link-validator {
      position: relative;
      display: flex;
      flex-direction: column;
    }
    
    .link-validator input {
      padding-right: 45px !important;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    
    .link-validator i {
      position: absolute;
      right: 15px;
      top: 15px;
      color: rgba(212, 175, 55, 0.5); /* Default Starmark Gold dim */
      font-size: 1.2rem;
      transition: all 0.3s ease;
      pointer-events: none;
    }
    
    .link-validator .error-msg {
      color: #ff3c3c;
      font-size: 0.8rem;
      margin-top: 5px;
      display: none;
      text-align: left;
    }
    
    .link-validator.invalid input {
      border-color: #ff3c3c !important;
      box-shadow: 0 0 10px rgba(255, 60, 60, 0.4) !important;
    }
    
    .link-validator.invalid i {
      color: #ff3c3c !important;
    }
    
    .link-validator.invalid .error-msg {
      display: block;
    }
    
    .link-validator.valid-yt input {
      border-color: #ff0000 !important;
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.5) !important;
    }
    
    .link-validator.valid-yt i {
      color: #ff0000;
    }
    
    .link-validator.valid-drive input {
      border-color: #0F9D58 !important;
      box-shadow: 0 0 10px rgba(15, 157, 88, 0.5) !important;
    }
    
    .link-validator.valid-drive i {
      color: #0F9D58;
    }

    button {
      background: #ff3c3c;
      color: #fff;
      border: none;
      padding: 12px;
      border-radius: 25px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
    }

    button:hover {
      background: #ff5555;
      transform: scale(1.05);
    }

    .info {
      text-align: center;
      color: #ccc;
      margin-top: 10px;
      position: relative;
      z-index: 2;
    }

    .info p {
      margin: 5px 0;
    }

    .map-link {
      text-align: center;
      margin-top: 15px;
    }

    .map-link a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 2px solid #d4af37;
      color: #d4af37;
      background: transparent;
      padding: 12px 25px;
      border-radius: 25px;
      font-weight: bold;
      text-decoration: none;
      font-size: 0.95rem;
      transition: 0.3s;
    }

    .map-link a:hover {
      background: #d4af37;
      color: #000;
      transform: scale(1.05);
    }

    .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, 0.15);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 22px;
      transition: all 0.3s ease;
      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;
    }

    /* Modal Styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 2000;
      display: flex;
      justify-content: center;
      align-items: center;
      backdrop-filter: blur(5px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-content {
      background: linear-gradient(145deg, #1a0505, #000);
      border: 2px solid #d4af37;
      padding: 30px;
      border-radius: 15px;
      text-align: center;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
      transform: scale(0.8);
      transition: transform 0.3s ease;
    }

    .modal-overlay.active .modal-content {
      transform: scale(1);
    }

    .modal-content h3 {
      color: #d4af37;
      margin-bottom: 15px;
      font-size: 1.5rem;
    }

    .modal-content p {
      color: #ccc;
      margin-bottom: 25px;
    }

    .modal-buttons {
      display: flex;
      justify-content: center;
      gap: 15px;
      flex-wrap: wrap;
    }

    .btn-cancel {
      background: transparent;
      border: 2px solid #ff3c3c;
      color: #ff3c3c;
      padding: 10px 20px;
      border-radius: 25px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.3s;
    }

    .btn-cancel:hover {
      background: #ff3c3c;
      color: #fff;
    }

    .btn-confirm {
      background: linear-gradient(135deg, #d4af37, #b8860b);
      border: none;
      color: #000;
      padding: 10px 25px;
      border-radius: 25px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.3s;
    }

    .btn-confirm:hover {
      transform: scale(1.05);
      box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }

    /* Spam Blocker Styles */
    .spam-blocker-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 10;
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      border-radius: 10px;
    }

    .contact-section.blurred>form {
      filter: blur(5px);
      pointer-events: none;
    }

    .contact-section {
      position: relative;
    }

    .timer-content p {
      font-size: 1.1rem;
      color: #ff3c3c;
      margin-bottom: 5px;
    }

    .countdown-timer {
      font-family: 'Cinzel', serif;
      font-size: 2.5rem;
      font-weight: 700;
      color: #d4af37;
      text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
      margin-bottom: 10px;
    }

    .ip-note {
      font-size: 0.8rem;
      color: #888;
    }

    /* Magic Star */
    ::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;
    }

    .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);
      }
    }

    /* Ocultar el cursor personalizado VIRTUAL enteramente en móviles */
    @media (pointer: coarse) {
        .custom-cursor {
            display: none !important;
        }
    }

    /* Success Modal Extra */
    .success-content {
      border-color: #25D366;
      box-shadow: 0 0 30px rgba(37, 211, 102, 0.2);
    }

    .success-icon {
      font-size: 4rem;
      color: #25D366;
      margin-bottom: 15px;
      animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes popIn {
      0% {
        transform: scale(0);
        opacity: 0;
      }

      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    /* Tel Input Customization */
    .iti {
      width: 100%;
    }

    .iti__selected-dial-code {
      color: #d4af37;
    }

    #telefono {
      padding-left: 90px !important;
      color: #fff;
      width: 100%;
    }

    .iti__country-list {
      background-color: #000;
      border: 1px solid #d4af37;
      color: #fff;
    }

    .iti__country-list .iti__country:hover {
      background-color: #333;
    }

    .iti__search-input {
      background-color: #1a0505 !important;
      border: 1px solid #d4af37 !important;
      color: #fff !important;
      border-radius: 5px;
      outline: none;
    }

    .iti__search-input::placeholder {
      color: #aaa;
    }

    .iti__country-list::-webkit-scrollbar {
      width: 10px;
      background: #1a0505;
    }

    .iti__country-list::-webkit-scrollbar-thumb {
      background: #d4af37;
      border-radius: 5px;
      border: 2px solid #1a0505;
    }

    .iti__country-list::-webkit-scrollbar-thumb:hover {
      background: #f0c430;
    }

    .iti__country-list .iti__country:hover,
    .iti__country-list .iti__country--highlight {
      background-color: #333 !important;
      color: #d4af37 !important;
    }

    .iti__divider {
      border-bottom: 1px solid #444 !important;
    }

    

    

    /* --- Responsive Compact Desktop Menu (Tablet/Laptop) --- */
    @media (min-width: 851px) and (max-width: 1100px) {
      header {
        padding: 5px 15px;
      }

      .logo img {
        width: 35px;
        height: 35px;
      }

      .logo span {
        font-size: 1.1rem;
      }

      nav ul {
        gap: 10px;
      }

      nav ul li a {
        font-size: 0.85rem;
        padding: 5px;
      }
    }

    /* Important: Override nav display for mobile */
    @media (max-width: 850px) {
      nav {
        display: none;
        /* Hide default nav */
      }

      

      .logo img {
        width: 35px;
        height: 35px
      }

      .logo span {
        font-size: 1.1rem
      }


      header {
        padding: 15px 20px;
        z-index: 1600;
      }
    }

    

    

    

    

    

    

    

    

    

    /* --- Responsive Stacked Layout (Mobile/Tablet) --- */
    @media (max-width: 1024px) {
      section {
        grid-template-columns: 1fr;
        /* Single column stack */
        padding: 100px 20px 40px;
        /* Reduced padding */
        gap: 30px;
        /* Prevent Overflow */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }

      iframe,
      .formulario,
      form,
      input,
      textarea,
      button,
      .iti,
      #telefono {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }

      iframe {
        height: 350px;
        /* Slightly smaller map on mobile */
      }

      .social-links {
        left: 20px;
        bottom: 20px;
      }

      .social-links a {
        width: 40px;
        height: 40px;
        font-size: 20px;
      }
    }

    /* FIX: Disable map interactions when menu is open */
    body.menu-active iframe {
      pointer-events: none !important;
    }

    /* 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 */
      }
    }

    /* --- Tablet/Desktop Landscape Optimization (iPad and similar) --- */
    @media (min-width: 901px) and (max-width: 1366px) and (orientation: landscape) {
      section {
        padding-top: 90px;
        /* Reduce top padding from 120px */
        padding-bottom: 40px;
        gap: 20px;
      }

      .formulario {
        padding: 20px;
      }

      /* 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;
        background: rgba(255, 255, 255, 0.1);
        /* Slightly more transparent on small screens */
      }

      /* 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); }
        }

    

    

    


    

    

    
