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

    body {
      background-color: #000;
      color: #fff;
      font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      text-align: center;
      overflow-x: hidden;
      position: relative;
    }

    body.modal-open, html.modal-open {
      overflow: hidden !important;
      height: 100% !important;
      position: fixed !important;
      width: 100% !important;
    }

    #particles-js {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #000;
      z-index: -1;
    }

    header {
      margin-top: 20px;
      animation: bounceIn 1.5s ease-out;
    }

    @keyframes bounceIn {
      0% {
        transform: scale(0.5);
        opacity: 0;
      }

      80% {
        transform: scale(1.1);
        opacity: 1;
      }

      100% {
        transform: scale(1);
      }
    }

    .logo {
      width: 300px;
      margin: 0 auto;
      transition: transform 0.3s ease;
    }

    h1 {
      color: #e60000;
      font-size: 48px;
      margin-bottom: 10px;
      animation: slideInDown 1.5s ease;
    }

    @keyframes slideInDown {
      from {
        transform: translateY(-100px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    h2 {
      font-weight: 300;
      font-size: 24px;
      margin-bottom: 50px;
      color: #fff;
      animation: slideInUp 1.5s ease;
    }

    @keyframes slideInUp {
      from {
        transform: translateY(100px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    nav {
      margin-bottom: 50px;
    }

    nav a {
      color: #fff;
      text-decoration: none;
      margin: 0 15px;
      font-size: 18px;
      transition: color 0.3s ease, transform 0.3s ease;
    }

    nav a:hover {
      color: #e60000;
      transform: scale(1.1);
    }

    .gallery {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      padding: 20px;
    }

    .gallery .main-event-img {
      width: auto;
      height: 420px;
      object-fit: cover;
      border-radius: 12px;
      transition: transform 0.3s ease;
    }

    .gallery .main-event-img:hover {
      transform: scale(1.05);
    }

    footer {
      margin-top: 100px;
      font-size: 14px;
      color: #777;
    }

    @media (max-width: 768px) {
      h1 {
        font-size: 36px;
      }

      h2 {
        font-size: 18px;
      }

      nav a {
        font-size: 16px;
        margin: 0 10px;
      }

      .gallery .main-event-img {
        width: 100%;
        height: auto;
      }

      footer {
        font-size: 12px;
      }
    }

    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.98);
      z-index: 99999;
      overflow: hidden; /* El scroll va adentro */
    }

    .modal-scroll-container {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      padding: 40px 0;
    }

    .modal img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 10px;
    }

    .modal:target {
      display: block;
    }

    .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      font-size: 24px;
      color: #fff;
      text-decoration: none;
      background: rgba(255, 0, 0, 0.7);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .event-info {
      padding: 15px;
      text-align: center;
    }

    .event-info h3 {
      color: #e60000;
      margin: 10px 0;
    }

    .event-info p {
      color: #aaa;
      font-size: 14px;
      margin: 5px 0 15px;
    }

    .event-info button {
      background: #e60000;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .event-info button:hover {
      background: #ff3333;
    }

    #formulario-evento {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      background: #000;
      padding: 30px 20px 80px 20px; /* Mucho padding abajo */
      border-radius: 20px;
      width: 90%;
      max-width: 400px;
      margin: 40px auto; /* Centrado manual */
      color: #fff;
      border: 1px solid rgba(255,255,255,0.1);
    }

    #formulario-evento label {
      align-self: flex-start;
    }

    #formulario-evento input {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      background: #222;
      color: #fff;
    }

    #formulario-evento input:focus {
      outline: none;
      border-color: #e60000;
    }

    #formulario-evento button {
      background: #e60000;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    #formulario-evento button:hover {
      background: #ff3333;
    }

    #formulario-evento select {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      background: #222;
      /* Fondo oscuro */
      color: #fff;
      /* Texto blanco */
      appearance: none;
      /* Eliminar la apariencia predeterminada */
      -webkit-appearance: none;
      /* Compatibilidad con Safari */
      -moz-appearance: none;
      /* Compatibilidad con Firefox */
      cursor: pointer;
      font-size: 16px;
    }

    #formulario-evento select:focus {
      outline: none;
      border-color: #e60000;
      /* Resaltar el borde al enfocarse */
    }

    #formulario-evento select option {
      background: #222;
      /* Fondo oscuro para las opciones */
      color: #fff;
      /* Texto blanco */
    }

    #formulario-evento .select-wrapper {
      position: relative;
      width: 100%;
    }

    #formulario-evento .select-wrapper::after {
      content: '▼';
      /* Flecha hacia abajo */
      position: absolute;
      top: 50%;
      right: 15px;
      /* Ajustar según el padding del select */
      transform: translateY(-50%);
      pointer-events: none;
      /* No interferir con los clics */
      color: #e60000;
      /* Color de la flecha */
      font-size: 14px;
    }

    .gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
      margin-top: 30px;
    }

    .gallery .main-event-img {
      width: 100%;
      height: 420px;
      object-fit: cover;
      border-radius: 12px;
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      display: block;
    }

    /* UX Balanced Alliance Badge */
    .image-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .image-wrapper:hover .main-event-img {
      transform: scale(1.08);
    }

    .alliance-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 8px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .image-wrapper:hover .alliance-badge {
        background: rgba(230, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-5px);
    }

    .partner-mini-logo {
        height: 35px !important;
        width: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    }

    .event-card {
        background: transparent;
        border-radius: 20px;
        padding: 0;
        transition: all 0.3s ease;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 320px;
    }

    .event-info {
        width: 100%;
        text-align: center;
        padding: 20px 10px;
    }

    .event-info h3 {
      color: #fff;
      margin: 0;
      font-size: 1.3rem;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    .event-info p {
      color: #e60000;
      font-size: 15px;
      margin: 5px 0 15px;
      font-weight: 600;
      letter-spacing: 1px;
    }


    .buy-btn {
        display: inline-block;
        background: #e60000;
        color: #fff;
        text-decoration: none;
        padding: 12px 30px;
        border-radius: 4px;
        font-size: 15px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .buy-btn:hover {
        background: #fff;
        color: #000;
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      background: #222;
      color: #fff;
    }

    #formulario-evento input:focus {
      outline: none;
      border-color: #e60000;
    }

    #formulario-evento button {
      background: #e60000;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    #formulario-evento button:hover {
      background: #ff3333;
    }

    #formulario-evento select {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      background: #222;
      /* Fondo oscuro */
      color: #fff;
      /* Texto blanco */
      appearance: none;
      /* Eliminar la apariencia predeterminada */
      -webkit-appearance: none;
      /* Compatibilidad con Safari */
      -moz-appearance: none;
      /* Compatibilidad con Firefox */
      cursor: pointer;
      font-size: 16px;
    }

    #formulario-evento select:focus {
      outline: none;
      border-color: #e60000;
      /* Resaltar el borde al enfocarse */
    }

    #formulario-evento select option {
      background: #222;
      /* Fondo oscuro para las opciones */
      color: #fff;
      /* Texto blanco */
    }

    #formulario-evento .select-wrapper {
      position: relative;
      width: 100%;
    }

    #formulario-evento .select-wrapper::after {
      content: '▼';
      /* Flecha hacia abajo */
      position: absolute;
      top: 50%;
      right: 15px;
      /* Ajustar según el padding del select */
      transform: translateY(-50%);
      pointer-events: none;
      /* No interferir con los clics */
      color: #e60000;
      /* Color de la flecha */
      font-size: 14px;
    }

    .gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
      margin-top: 30px;
    }

    .gallery .main-event-img {
      width: 100%;
      height: 420px;
      object-fit: cover;
      border-radius: 12px;
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      display: block;
    }

    /* UX Balanced Alliance Badge */
    .image-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .image-wrapper:hover .main-event-img {
      transform: scale(1.08);
    }

    /* REGLA MAESTRA UX: DISEÑO DE ALIANZA REFINADO */
    .alliance-badge {
        position: absolute !important;
        top: 25px !important; /* Ajuste para que coincida con la regla maestra */
        right: 25px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 10px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        display: flex !important;
        flex-direction: column !important; /* Logo arriba, Tag abajo */
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important; /* Espacio entre logo y tag */
        z-index: 999 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
        transition: all 0.3s ease !important;
        width: 140px !important; /* Ancho fijo para consistencia */
    }

    /* El logo ahora NO es absoluto, fluye dentro del badge */
    .image-wrapper img.partner-mini-logo {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        height: 65px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .alliance-tag {
        font-size: 9px !important;
        font-weight: 900 !important;
        color: #fff !important;
        background: #e60000 !important;
        padding: 5px 0 !important;
        border-radius: 6px !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        border: 2px solid #000 !important; /* Borde negro pedido */
        display: block !important;
        width: 100% !important; /* Mismo ancho que el logo */
        text-align: center !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    }

    .image-wrapper:hover .alliance-badge {
        transform: translateY(-5px) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }
