/* Animaciones personalizadas */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  @keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

  @keyframes messageDrop {
    0% { 
      opacity: 0;
      transform: translateY(-100px) scale(0.8);
    }
    70% {
      transform: translateY(10px) scale(1.1);
    }
    100% { 
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-18px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  .fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
  }

  .slide-in-right {
    animation: slideInRight 1s ease-out both;
  }

  .fade-in {
    animation: fadeIn 1s ease-out both;
  }

  .message-drop {
    animation: messageDrop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
  }

  .fade-in-down {
    animation: fadeInDown 0.7s ease-in-out both;
  }

  /* Paleta de colores - Carbón + Turquesa */
  :root {
    --fondo: #0d0d0d;
    --fondo-secundario: #141414;
    --fondo-tarjeta: #1a1a1a;
    --texto: #f0f0f0;
    --texto-secundario: #a0a0a0;
    --acento: #00d4aa;
    --acento-hover: #00b894;
    --acento-glow: rgba(0, 212, 170, 0.3);
  }

  .text-purple-400 {
    color: var(--acento) !important;
  }
  .bg-mate-blue {
    background: var(--fondo-secundario) !important;
  }
  .bg-mate-purple {
    background: var(--acento) !important;
  }
  .bg-mate-dark {
    background: var(--fondo) !important;
  }
  .bg-mate-light {
    background: var(--fondo-tarjeta) !important;
  }
  .text-mate-gray {
    color: var(--texto-secundario) !important;
  }
  .icon-mate {
    color: var(--texto-secundario) !important;
  }
  .icon-mate:hover {
    color: var(--acento) !important;
  }

  /* Estilos para el título */
  h1 span {
    display: inline-block;
    transition: all 0.3s ease;
  }

  h1 span:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  body {
    min-height: 100vh;
    background: var(--fondo);
    color: var(--texto);
    scroll-behavior: smooth;
  }

  /* Animaciones para las secciones */
  section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    background: transparent !important;
  }

  section.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDown 0.7s ease-in-out both;
  }

  /* Estilo para el scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--fondo);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--acento);
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--acento-hover);
  }

  /* Estilos para el mensaje de confirmación */
  .confirmation-message {
    position: relative;
    margin: 0 auto 1.5rem auto;
    background: transparent;
    color: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: fit-content;
    max-width: 90vw;
    text-align: center;
    display: none;
  }

  .confirmation-message.show {
    display: block;
  }

  /* Fondo global */
  body {
    min-height: 100vh;
    background: var(--fondo);
    color: var(--texto);
    scroll-behavior: smooth;
  }
  /* Cabecera y footer con fondo carbón */
  header, footer {
    background: var(--fondo-secundario);
  }
  /* Secciones principales */
  section {
    background: transparent !important;
  }
  /* Botones estilo turquesa */
  .btn-violeta {
    background: var(--acento);
    color: var(--fondo);
    border-radius: 9999px;
    padding: 0.875rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px 0 var(--acento-glow);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 160px;
  }
  .btn-violeta:hover {
    background: var(--acento-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px 0 var(--acento-glow), 0 4px 15px 0 var(--acento-glow);
  }
  .btn-violeta:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
  }
  /* Botón secundario */
  .btn-outline-violeta {
    background: transparent;
    color: var(--acento);
    border: 2px solid var(--acento);
    border-radius: 9999px;
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
  }
  .btn-outline-violeta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--acento);
    transition: left 0.3s ease;
    z-index: -1;
  }
  .btn-outline-violeta:hover {
    color: var(--fondo);
    border-color: var(--acento);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px 0 var(--acento-glow), 0 4px 15px 0 var(--acento-glow);
  }
  .btn-outline-violeta:hover::before {
    left: 0;
  }
  .btn-outline-violeta:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
  }
  /* Títulos principales */
  h1, h2, h3, h4 {
    color: var(--texto);
  }
  
  /* Título principal del Hero con tipografía moderna */
  .hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 2px 8px var(--acento-glow);
    background: linear-gradient(135deg, var(--acento) 0%, var(--texto) 50%, #f3f4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 8px var(--acento-glow));
  
  }
  
  /* Subtítulo del Hero */
  .hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    line-height: 1.6;
    color: var(--texto-secundario);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
  }
  /* Texto secundario */
  .text-secondary {
    color: var(--texto-secundario);
  }
  /* Íconos de redes sociales */
  .icon-social {
    color: var(--texto-secundario);
    transition: color 0.3s;
  }
  .icon-social:hover {
    color: var(--acento);
  }
  /* Fondo de inputs y formularios */
  input, textarea {
    background: var(--fondo-tarjeta) !important;
    color: var(--texto) !important;
    border: 1px solid #2a2a2a !important;
  }
  input::placeholder, textarea::placeholder {
    color: var(--texto-secundario) !important;
  }
  body, h1, h2, h3, h4, h5, h6, button, input, textarea, a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
    border-radius: 0.5rem;
  }
  .section-title {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  .section-title .white {
    color: var(--texto);
    font-weight: 900;
  }
  .section-title .gradient {
    font-weight: 900;
    color: var(--acento);
  }
  .section-underline {
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: var(--acento);
    margin: 0.5rem auto 2rem auto;
    display: block;
  }
  section {
    background: var(--fondo) !important;
  }
  .social-icon-img {
    transition: transform 0.2s;
  }
  .social-icon-img:hover {
    transform: scale(1.18);
  }
  @media (max-width: 768px) {
    h1, h2, h3, h4 {
      font-size: 1.5rem !important;
    }
    .section-title {
      font-size: 1.3rem !important;
    }
    .btn-violeta, .btn-outline-violeta {
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      min-width: 140px;
    }
    .hero-title {
      font-size: clamp(2rem, 8vw, 2.5rem);
      line-height: 1.2;
      margin-bottom: 1rem;
    }
    .hero-subtitle {
      font-size: clamp(1rem, 4vw, 1.125rem);
      line-height: 1.4;
      margin-bottom: 1.5rem;
    }
    .max-w-7xl, .max-w-6xl, .max-w-4xl, .max-w-xl {
      max-width: 98vw !important;
      padding-left: 0.5rem !important;
      padding-right: 0.5rem !important;
    }
    .py-20, .py-16, .py-6 {
      padding-top: 1.5rem !important;
      padding-bottom: 1.5rem !important;
    }
    .px-6 {
      padding-left: 0.5rem !important;
      padding-right: 0.5rem !important;
    }
    .grid {
      grid-template-columns: 1fr !important;
    }
    .space-x-6, .space-x-4, .space-x-3, .gap-6, .gap-4 {
      gap: 1rem !important;
    }
    .w-full, .w-36, .md\:w-44 {
      width: 100% !important;
      min-width: 0 !important;
    }
    .h-80, .md\:h-80, .md\:h-56, .h-64, .md\:h-64, .md\:h-44 {
      height: 220px !important;
      min-height: 0 !important;
    }
    .min-h-screen {
      min-height: 80vh !important;
    }
    .flex-col.md\:flex-row {
      flex-direction: column !important;
    }
    .ml-6 {
      margin-left: 0 !important;
    }
    .rounded, .rounded-xl, .rounded-full {
      border-radius: 0.7rem !important;
    }
    .text-4xl, .md\:text-5xl {
      font-size: 2rem !important;
    }
    .text-lg, .md\:text-xl {
      font-size: 1rem !important;
    }
    .footer .flex {
      flex-direction: row !important;
      justify-content: center !important;
    }
    /* Iconos de redes sociales más pequeños en móvil */
    .social-icon-img {
      width: 36px !important;
      height: 36px !important;
    }
  }
  
  /* Estilos para el carrusel de videos verticales */
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  
  /* Animación suave para el carrusel */
  .carousel-slide {
    transition: transform 0.5s ease-in-out;
  }
  
  /* Efecto hover mejorado para los botones de navegación */
  #prevBtn:hover, #nextBtn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px var(--acento-glow);
  }
  
  /* Indicadores de posición */
  .indicator {
    transition: all 0.3s ease;
  }
  .indicator.active {
    opacity: 1;
    transform: scale(1.2);
  }
  .indicator.inactive {
    opacity: 0.4;
    transform: scale(1);
  }

  /* Estilos mejorados para las tarjetas de video */
  .video-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px var(--acento-glow);
  }

  .video-card iframe {
    transition: transform 0.3s ease;
  }

  .video-card:hover iframe {
    transform: scale(1.05);
  }

  /* Efectos de overlay mejorados */
  .video-card .absolute.inset-0 {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 212, 170, 0.05) 100%);
  }

  /* Animaciones para el texto del overlay */
  .video-card .absolute.bottom-0 {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 12px 12px;
  }

  /* Efectos de brillo en hover */
  .video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
    pointer-events: none;
  }

  .video-card:hover::before {
    left: 100%;
  }

  /* Mejoras para los botones de navegación */
  #prevBtnVertical, #nextBtnVertical {
    backdrop-filter: blur(10px);
    border: 1px solid var(--acento-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #prevBtnVertical:hover, #nextBtnVertical:hover {
    background: var(--acento) !important;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px var(--acento-glow);
  }

  /* Mejoras para las barras de progreso */
  #progressBarVertical {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--acento-glow);
  }

  #progressFillVertical {
    background: var(--acento);
    box-shadow: 0 0 10px var(--acento-glow);
  }

  /* Mejorar la reproducción de videos */
  .video-card iframe {
    pointer-events: auto;
    transition: all 0.3s ease;
  }

  .video-card:hover iframe {
    transform: scale(1.02);
  }

  /* Indicador de que el video es clickeable */
  .video-card {
    cursor: pointer;
  }

  /* Estilos para el menú hamburguesa */
  .hamburger-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Animación del botón hamburguesa cuando está activo */
  #mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Animación del menú móvil */
  #mobile-menu {
    transition: all 0.3s ease-in-out;
    transform: translateY(-100%);
    opacity: 0;
  }

  #mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
  }

  /* Efecto hover para el botón hamburguesa */
  #mobile-menu-button:hover .hamburger-line {
    background-color: var(--acento);
  }

  /* Estilos para los enlaces del menú móvil */
  #mobile-menu a {
    position: relative;
    overflow: hidden;
  }

  #mobile-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--acento-glow), transparent);
    transition: left 0.3s ease;
  }

  #mobile-menu a:hover::before {
    left: 100%;
  }

  .colorcito {
    color: var(--acento) !important;     
  }