@media (max-width: 768px) {
    .visible{
      display: none !important;
      visibility: hidden !important;
    }

    .hidden{
        display: flex !important;
        visibility: visible !important;
    }
    .popup-content {
      margin: 0 auto !important;
      width: 95vw !important;
      height: 70vh !important;
      overflow: auto;
    }
    .popup-content::-webkit-scrollbar {display: none;}

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        text-align: left;
        justify-content: center;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        z-index: 999;
        
        /* Ocultar inicialmente */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        
        /* Agregamos transición suave */
        transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
    }

    .nav-links a {
        width: 100%;
        display: block;
        /* text-align: center; */
        margin: auto 0 0 5% !important;
        /* padding: 20px; */
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .logo {
        flex-direction: row-reverse;
        gap: 50px !important;
    }

    /* Ajustes al navbar cuando está activo */
    .navbar {
        position: fixed;
        width: 100%;
        z-index: 1000;
        padding: 0px 20px;
        background: transparent;
    }

    .icons {
        margin: 10% 0 0 5% !important;
    }

    .language-list{
        top: 37%;
        left: 5%;
      }
      .user-list{
        top: 62%;
        left: 22%;
      }
      
      .download-list{
        top: 41.8%;
        left: 38%; 
      }
      .programs-list {
        top: 30%;
        left: 30%;
      }

      .icons i::after{
        top: 55px !important;
      }

    /* Botón de menú */
    .menu-toggle {
        display: block;
        z-index: 1100;
        font-size: 28px;
        color: var(--white);
        cursor: pointer;
        transition: transform 0.3s ease-in-out;
    }

    /* Efecto de rotación del icono */
    .menu-toggle.active i {
        transform: rotate(180deg);
        transition: transform 0.3s ease-in-out;
    }

    /* Cambiar el icono a una X */
    .menu-toggle.active i::before {
        content: "\f00d"; /* FontAwesome "X" */
    }
    .menu-toggle i {
        font-size: 24px;
        color: var(--white);
      }

    #typewriter, #typewriterComplete, #typewriterMaster, #typewriterProfessional, #typewriterThanks {
        width: 65% !important;
        top: 35% !important;
        left: 0;
        text-align: center;
        font-size: 1.4rem !important;
    }

    #typewriter2 {
        width: 65% !important;
        top: 55% !important;
        left: 0;
        text-align: center;
        font-size: 1.4rem !important;
    }
    
    .card-acces{
      width: 95% !important;
    }

    .tittle-commitment {
      width: 95%;
      margin: 0 auto;
      text-align: center;
    }

    .btnSignUp {
      margin: 5% auto 0 auto !important;
    }

    .text-overlay {
      /* width: 90%; */
      left: 0%;
      top: 0%;
      max-width: none;
      /* margin: 0 auto; */
    }
    #section-black {
      display: none; /* Ocultar la versión de PC en mobile */
    }
    #section-black-mobile {
      display: flex !important; /* Mostrar la versión mobile */
      flex-direction: column;
      align-items: center;
      width: 100%;
      padding: 15px;
      background-color: var(--black);
    }
    .text-overlay-mobile {
      order: 1;
      text-align: center;
      width: 90%;
      backdrop-filter: blur(10px);
      height: auto;
      /* overflow: auto; */
    }
    .text-overlay-mobile h2 {margin-top: 5%;}
    .text-overlay-mobile::-webkit-scrollbar{display: none;}
    .text-overlay-mobile p {
      color: var(--white);
      text-align: justify;
    }
  
    .text-overlay-mobile img {
      width: 100%;
      height: auto;
      border-radius: 0; /* Imagen sin bordes */
    }
  
    .gallery-wallstreet-mobile {
      order: 2;
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }
  
    .spool-mobile, .spool2-mobile {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      gap: 10px;
    }
  
    .spool-item-mobile {
      width: 100%;
      height: 200px;
      background-size: cover;
      background-position: center;
      border-radius: 10px;
    }
    .spool-mobile .spool-item-mobile:nth-child(1){background: url('../assets/img/wall2.jpg') no-repeat center/cover;}
    .spool-mobile .spool-item-mobile:nth-child(2){background: url('../assets/img/wall1.jpg') no-repeat center/cover;}
    .spool-mobile .spool-item-mobile:nth-child(3){background: url('../assets/img/wall4.jpg') no-repeat center/cover;}
    .spool2-mobile .spool-item-mobile:nth-child(1){background: url('../assets/img/wall3.jpg') no-repeat center/cover;}
    .spool2-mobile .spool-item-mobile:nth-child(2){background: url('../assets/img/wall5.jpg') no-repeat center/cover;}
    .spool2-mobile .spool-item-mobile:nth-child(3){background: url('../assets/img/wall6.jpg') no-repeat center/cover;}
    
    .social-media {
      flex-direction: column-reverse !important;
      gap: 50px;
      width: 100% !important;
    }
    .social-media .iframe {width: 100%;}
    .social-media .meeting-text {width: 100%;}
    .meeting-text p{
      font-size: 1rem;
      width: 95%;
    }
  
    .cards-programs {
      flex-direction: column;
      align-items: center;
      gap: 15px;
  }

    .card-program {
        width: 100% !important;  /* Más ancho para que se vea bien en mobile */
        height: auto; /* Ajuste dinámico de altura */
        transform: none;
        opacity: 1;
    }

    .card-program.left, .card-program.right {
        transform: none;
        scale: 1; /* Eliminamos la diferencia de tamaño en mobile */
    }

    .card-program.center {
        transform: scale(1.05); /* Un leve realce a la card del medio */
    }

    .card-program:hover {
        transform: scale(1.07); /* Pequeño efecto al tocar */
    }
    
    .confidence {
      flex-direction: column;
      align-items: center;
    }

    .card-confidence {
        width: 90%;
        transform: scale(1) !important;
        opacity: 1 !important;
    }

    .card-confidence:hover {
        transform: scale(1.05) !important;
    }

    .confidence .card-confidence:nth-child(2) {
      margin-top: 0 !important;
    }
    .confidence .card-confidence:nth-child(1),
    .confidence .card-confidence:nth-child(3) {
      margin-top: 0 !important;
    }

    .card {
      width: 95%;
    }

    .contact{
      flex-direction: column !important;
      justify-content: center !important;
    }

    .form {
      width: 100% !important;
      padding: 0 !important;
      height: 60vh !important;
    }

    .input-group{
      width: 100% !important;
    }
    
    .item-time-counter, .item-visitors-counter {
      padding: 15px 5px !important;
    }
    .text-counter {
      font-size: 20px !important;
    }

    .floating-widget-counter {
      padding: 0.1rem 0.5rem !important;
      width: 90%;
      height: 30%;
    }

    .widget-counterr{
      margin-top: 0.5rem !important;
    }
    
    .floating-promo-container {
        top: 90px !important;
    }
    
    .floating-promo-container:hover .floating-promo-text-box {
        width: 250px !important; /* Ajusta este valor si tu texto es más largo */
        white-space: normal !important;
    }
    
    .floating-promo-container:hover .floating-promo-text-box p{
        width: 100% !important; /* Ajusta este valor si tu texto es más largo */
        font-size: 0.8rem;
    }
    
    /* 1. Hacemos que el overlay no ocupe toda la pantalla y no bloquee clics */
    .popup-overlay-counter {
        inset: 25% 5%;
        background: transparent; /* Quitamos el fondo oscuro que tapa todo */
        align-items: flex-start; /* Alinea el contenido arriba */
        pointer-events: none; /* LA CLAVE: Permite hacer clic "a través" del overlay */
    }

    /* 2. Hacemos que solo el contenido del popup (el banner) sea interactivo */
    .popup-content-counter {
        pointer-events: auto; /* El contenido SÍ puede recibir clics */
        width: 100%;
        max-width: 100%;
        border-radius: 0 0 12px 12px; /* Redondeamos solo las esquinas de abajo */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

  }


@media (min-width: 1450px) {
    .visible{
      display: flex !important;
      visibility: visible !important;
    }

    .hidden{
        display: none !important;
        visibility: hidden !important;
    }
    .language-list{
        top: 11.5%; /* Ajustamos para que no se superponga con el navbar */
        right: 10.3%; /* Pegado a la izquierda */
      }
      .user-list{
        top: 11.5%; /* Ajustamos para que no se superponga con el navbar */
        right: 6.3%; /* Pegado a la derecha */
      }
      
      .download-list{
        top: 11.5%; /* Ajustamos para que no se superponga con el navbar */
        right: 2.3%; /* Pegado a la derecha */
      }
      .programs-list {
        top: 11.1%;
        left: 43%;
      }

      .text-overlay {
        width: 80%;
        left: 10%;
        top: 5%;
        max-width: none;
      }
}