/* Estilos generales */
body, html {
     margin: 0;
     padding: 0;
     font-family: 'Montserrat', sans-serif;
     height: 100%;
     background: linear-gradient(135deg, #292367 0%, #1b192f 50%, #230a36 100%);
     /* Soporte para diferentes unidades de viewport height */
     height: 100dvh; /* Dynamic viewport height para contenido completo */
     height: 100vh; /* Fallback tradicional */
 }

/* Estilos del hero */
.hero {
     position: relative;
     height: 90dvh; /* Dynamic viewport height - considera barras de navegación móviles */
     height: 90vh; /* Fallback para navegadores que no soportan dvh */
     min-height: 90dvh; /* Asegura altura mínima considerando barras dinámicas */
     width: 100%;
     overflow: hidden;
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(0, 0, 0, 0.2);
/* Estilos para Splide */
.splide {
    height: 100dvh;
    height: 100vh;
}

.splide__track {
    height: 100%;
}

.splide__list {
    height: 100%;
}

.splide__slide {
    height: 100%;
    display: flex;
}

.splide__pagination {
    bottom: 20px;
    z-index: 1000;
}

.splide__pagination__page {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.splide__pagination__page.is-active {
    background: white;
    transform: scale(1.2);
}

/* Estilos para la card de imagen */
.image-card {
    position: relative;
    width: 99%;
    max-width: 800px;
    height: 90dvh;
    height: 90vh;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-10px);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 30px 30px;
    color: white;
    text-align: center;
}

.card-overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-overlay p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}
 }


/* Estilos del contenido del hero */
.hero-content {
       position: relative;
       z-index: 2;
       width: 100%;
       padding: 0%;
       padding-top: max(0px, env(safe-area-inset-top)); /* Considera notch/barra superior en iOS */
       padding-bottom: max(20px, env(safe-area-inset-bottom) + 20px); /* Considera barra inferior en iOS */
       background: rgba(0, 0, 0, 0.1);
       min-height: calc(100dvh - 30px); /* Asegura altura mínima del contenido */
       display: flex;
       flex-direction: column;
       justify-content: center;
 }

.hero h1 {
     font-size: 4.5rem;
     margin-bottom: 20px;
     font-weight: 900;
     text-shadow: 0 0 25px rgba(236, 72, 153, 0.9), 0 0 50px rgba(236, 72, 153, 0.5);
     background: linear-gradient(135deg, #ec4899 0%, #f97316 50%, #fbbf24 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     letter-spacing: -0.03em;
     text-transform: uppercase;
 }

.hero h2 {
     font-size: 2rem;
     margin-bottom: 30px;
     font-weight: 600;
     text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
     color: #ffffff;
     letter-spacing: 0.5px;
 }

.event-badge {
     background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
     color: #1f2937;
     padding: 12px 24px;
     border-radius: 50px;
     font-size: 0.9rem;
     font-weight: 700;
     letter-spacing: 2px;
     text-transform: uppercase;
     display: inline-block;
     margin-bottom: 20px;
     box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
     border: 1px solid rgba(251, 191, 36, 0.5);
     animation: bounceIn 1s ease-out;
 }

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.event-date {
      font-size: 1.5rem;
      margin-bottom: 40px;
      font-weight: 600;
      color: #3b82f6;
      text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }

/* Estilos del contador */
.countdown-container {
     display: flex;
     justify-content: center;
     gap: 10px;
     margin-bottom: 30px;
 }

.countdown-box {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
      border-radius: 15px;
      padding: 12px 8px;
      min-width: 70px;
      max-width: 80px;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
      border: 2px solid rgba(251, 191, 36, 0.7);
      position: relative;
      overflow: hidden;
      animation: float 3s ease-in-out infinite;
 }

.countdown-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.countdown-box span:first-child {
     font-size: 2rem;
     font-weight: 900;
     color: #1f2937;
     text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
     position: relative;
     z-index: 2;
 }

.countdown-label {
     font-size: 0.75rem;
     margin-top: 2px;
     font-weight: 700;
     color: #1f2937;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     position: relative;
     z-index: 2;
 }

/* Estilos del botón */
.btn-primary {
      background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
      border: 2px solid rgba(236, 72, 153, 0.5);
      padding: 18px 40px;
      font-size: 1.2rem;
      font-weight: 700;
      border-radius: 50px;
      transition: all 0.3s ease;
      color: white;
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
      position: relative;
      overflow: hidden;
  }

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
      background: linear-gradient(135deg, #be185d 0%, #ec4899 100%);
      transform: scale(1.05) translateY(-2px);
      box-shadow: 0 12px 35px rgba(236, 72, 153, 0.6);
      border: 2px solid rgba(236, 72, 153, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
      .hero {
          /* Ajuste específico para tablets considerando barras de navegación */
          height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
          min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      }

      .hero h1 {
          font-size: 2.5rem;
      }

      .hero h2 {
          font-size: 1.5rem;
      }

      .countdown-container {
          flex-wrap: wrap;
      }

      .countdown-box {
          min-width: 60px;
          max-width: 70px;
          padding: 8px 6px;
      }

      .countdown-box span:first-child {
          font-size: 1.5rem;
      }

      .countdown-label {
          font-size: 0.65rem;
      }

      /* Íconos sociales más pequeños en tablet */
      .social-icon {
          width: 42px;
          height: 42px;
          font-size: 0.95rem;
      }

      .social-icon:hover {
          width: 42px;
          height: 42px;
      }

      /* Botón flotante más pequeño pero visible en móvil */
      .floating-action-menu {
          bottom: max(20px, env(safe-area-inset-bottom) + 20px);
          right: 20px;
      }

      .main-button {
          width: 50px;
          height: 50px;
          font-size: 1.2rem;
      }

      .secondary-button {
          width: 45px;
          height: 45px;
          font-size: 1rem;
      }
 }


/* Estilos para el botón flotante */
.floating-action-menu {
     position: fixed;
     bottom: max(30px, env(safe-area-inset-bottom) + 30px); /* Considera barra inferior en iOS */
     right: 30px;
     z-index: 999;
}

.floating-cards {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-cards.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-card {
    width: 175px;
    height: 40px;
    background: #25d366;
    border-radius: 21px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #25d366;
    position: relative;
    overflow: visible;
}

.contact-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    background: #22c55e;
    border-color: #22c55e;
}

.card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    position: relative;
    z-index: 2;
    margin-left: -13px;
}

.card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.card-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.main-button {
     background: linear-gradient(135deg, #10b981 0%, #059669 100%);
     color: white;
     font-size: 1.5rem;
     z-index: 2;
     box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
     border: 3px solid rgba(16, 185, 129, 0.5);
 }

.main-button i {
    transition: transform 0.3s ease;
}

.main-button.active i {
    transform: rotate(45deg);
}

.secondary-button {
    background: white;
    color: #333;
    font-size: 1.2rem;
}

.secondary-button:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

/* Estilos para íconos sociales */
.social-icons {
     display: flex;
     gap: 15px;
     margin-top: 20px;
     justify-content: center;
     flex-wrap: wrap;
 }

.social-icon {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: linear-gradient(135deg, #3b82f6, #1d4ed8);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1rem;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
      border: 2px solid rgba(59, 130, 246, 0.5);
  }

.social-icon:hover {
      transform: scale(1.1) translateY(-3px);
      box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
      background: linear-gradient(135deg, #1d4ed8, #3b82f6);
      width: 45px;
      height: 45px;
  }

/* Tooltip para los botones secundarios */
.secondary-button::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.secondary-button:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Animación de pulso para el botón principal */
@keyframes pulse {
     0% {
         box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
     }
     70% {
         box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
     }
     100% {
         box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
     }
 }

.main-button:not(.active) {
    animation: pulse 2s infinite;
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    width: 100%;
    text-align: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

.scroll-indicator p {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    text-align: center;
}

/* Elementos decorativos festivos */
.hero::before {
       content: '';
       position: absolute;
       top: 10%;
       left: 5%;
       width: 100px;
       height: 100px;
       background: linear-gradient(135deg, #fbbf24, #f59e0b);
       border-radius: 50% 20% 50% 20%;
       opacity: 0.3;
       animation: float 4s ease-in-out infinite;
       z-index: 0;
       box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
       /* Ajuste para áreas seguras en dispositivos móviles */
       margin-top: env(safe-area-inset-top);
  }

/* Llama de fuego de fondo sutil */
.hero::after {
      content: '';
      position: absolute;
      bottom: 15%;
      right: 10%;
      width: 80px;
      height: 120px;
      background: linear-gradient(to top,
          rgba(251, 191, 36, 0.1) 0%,
          rgba(245, 158, 11, 0.15) 30%,
          rgba(236, 72, 153, 0.1) 60%,
          rgba(59, 130, 246, 0.05) 100%);
      border-radius: 40px 40px 20px 20px;
      opacity: 0.4;
      animation: flame 3s ease-in-out infinite;
      z-index: 0;
      transform: rotate(-5deg);
 }

.hero-content::after {
      content: '';
      position: absolute;
      top: 20%;
      right: 8%;
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, #ec4899, #be185d);
      border-radius: 50%;
      opacity: 0.4;
      animation: float 3s ease-in-out infinite reverse;
      z-index: 0;
      box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
 }

.hero-content::before {
     content: '';
     position: absolute;
     bottom: -50px;
     left: 10%;
     width: 80px;
     height: 80px;
     background: linear-gradient(135deg, #3b82f6, #1d4ed8);
     border-radius: 20px;
     opacity: 0.3;
     animation: rotate 10s linear infinite;
     z-index: 0;
     box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
 }

@keyframes rotate {
     from { transform: rotate(0deg); }
     to { transform: rotate(360deg); }
 }

@keyframes flame {
     0%, 100% {
         transform: rotate(-5deg) scale(1);
         opacity: 0.4;
     }
     50% {
         transform: rotate(-3deg) scale(1.02);
         opacity: 0.6;
     }
 }

/* Responsive para elementos decorativos */
@media (max-width: 768px) {
     .hero::before {
         width: 60px;
         height: 60px;
         top: 5%;
         left: 3%;
     }

     .hero::after {
         width: 40px;
         height: 40px;
         top: 15%;
         right: 5%;
     }

     .hero-content::before {
         width: 50px;
         height: 50px;
         bottom: -30px;
         left: 5%;
     }
}

/* Elementos decorativos adicionales para móvil */
@media (max-width: 480px) {
       .hero {
           /* Ajuste específico para móviles pequeños considerando barras de navegación */
           height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
           min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
       }

       .hero::before {
           width: 40px;
           height: 40px;
           top: 3%;
           left: 2%;
           opacity: 0.4;
           margin-top: env(safe-area-inset-top); /* Considera notch/superior */
       }

       .hero-content::after {
           width: 30px;
           height: 30px;
           top: 12%;
           right: 3%;
           opacity: 0.5;
       }

       .hero-content::before {
           width: 35px;
           height: 35px;
           bottom: -20px;
           left: 3%;
           opacity: 0.4;
       }

       /* Llama de fuego más pequeña para móvil */
       .hero::after {
           width: 50px;
           height: 80px;
           bottom: 10%;
           right: 5%;
           opacity: 0.3;
       }
  }

/* Responsive para el scroll indicator */
@media (max-width: 576px) {
     .scroll-indicator {
         bottom: 20px;
     }

     .mouse {
         width: 25px;
         height: 40px;
     }

     .scroll-indicator p {
         font-size: 0.7rem;
     }

     /* Íconos sociales aún más pequeños en móvil pequeño */
     .social-icon {
         width: 38px;
         height: 38px;
         font-size: 0.85rem;
     }

     .social-icon:hover {
         width: 38px;
         height: 38px;
     }

     .social-icons {
         gap: 10px;
     }
 }

/* Estilos del footer */
.footer {
     position: fixed;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     z-index: 1000;
     background: transparent;
     padding: 0;
 }

.play-button {
      position: fixed;
      bottom: max(30px, env(safe-area-inset-bottom) + 30px); /* Considera barra inferior en iOS */
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, #735cf6, #553aed);
      border: none;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.6);
      z-index: 1000;
}

.play-button:hover {
     transform: translateX(-50%) scale(1.1);
     box-shadow: 0 8px 30px rgba(139, 92, 246, 0.7), 0 0 0 5px rgba(255, 255, 255, 0.8);
     background: linear-gradient(135deg, #7c3aed, #6d28d9);
 }

.play-button.playing {
     background: linear-gradient(135deg, #ec4861, #db2727);
     box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.6);
 }

.play-button.playing:hover {
     background: linear-gradient(135deg, #db2777, #be185d);
     box-shadow: 0 8px 30px rgba(236, 72, 153, 0.7), 0 0 0 5px rgba(255, 255, 255, 0.8);
 }

/* Responsive para botón de audio flotante */
@media (max-width: 768px) {
      .play-button {
          width: 70px;
          height: 70px;
          font-size: 1.8rem;
          bottom: max(25px, env(safe-area-inset-bottom) + 25px); /* Considera barra inferior en tablets */
      }

      .floating-action-menu {
          bottom: max(25px, env(safe-area-inset-bottom) + 25px); /* Considera barra inferior en tablets */
      }
 }

@media (max-width: 480px) {
      .play-button {
          width: 60px;
          height: 60px;
          font-size: 1.5rem;
          bottom: max(20px, env(safe-area-inset-bottom) + 20px); /* Considera barra inferior en móviles pequeños */
      }

      .floating-action-menu {
          bottom: max(20px, env(safe-area-inset-bottom) + 20px); /* Considera barra inferior en móviles pequeños */
      }
 }