
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            transition: background var(--transicion), color var(--transicion);
        }

        body {
            background: var(--color-fondo);
            color: var(--color-texto);
            overflow-x: hidden;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 60px;
            background: var(--color-primario);
            box-shadow: 0 2px 10px var(--color-sombra);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 10;
        }
        
        .menu-toggle {
            display: none;
            font-size: 1.9rem;
            color: white;
            cursor: pointer;
        }
        
        .user-welcome {
            color: var(--color-texto);
            font-weight: 500;
            margin-right: 10px;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
            animation: aparecer 0.6s ease-out forwards, pulso 5.2s ease infinite;
     
        }
        
        .logo {
            width: 45px;
            height: 45px;
            object-fit: cover;
            transition: transform 0.3s ease;
            
        }
        
        .logo:hover {
            transform: scale(1.08);
        }
        
        header h1 {
            color: white;
            font-weight: 700;
            letter-spacing: 1px;
            font-size: 1.5rem;
        }

        header h1 {
            font-weight: 700;
            letter-spacing: 1px;
        }
        
        .btn-wsp {
            position: fixed;
            bottom: 25px;
            right: 25px;
            width: 62px;
            height: 62px;
            background-color: #25d366;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            cursor: pointer;
            box-shadow: 0 8px 18px rgba(0,0,0,0.25);
            animation: aparecer 0.6s ease-out forwards, pulso 2.2s ease infinite;
            transition: all 0.25s ease;
            
        }
        
        .btn-wsp img {
            width: 34px;
            pointer-events: none;
        }
        
        .btn-wsp:hover {
            transform: scale(2);
            box-shadow: 0 12px 28px rgba(0,0,0,0.35);
        }
        
        @keyframes aparecer {
            from { opacity: 0; transform: translateY(18px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes apaercerydesaparecer {
            0% { opacity: 0; transform: translateY(18px); }
            10% { opacity: 1; transform: translateY(0); }
            90% { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(18px); }
        }
        
        @keyframes pulso {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.07); }
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        nav a {
            position: relative;
            text-decoration: none;
            color: white;
            font-weight: bold;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }
        
        nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0%;
            height: 2px;
            background-color: var(--color-terceario);
            transition: width 0.3s ease;
        }

        nav a:hover {
            color: var(--color-terceario);
        }
        
        nav a:hover::after {
            width: 100%;
        }

        .btn-unirme {
            background: var(--color-terceario);
            color: white;
            padding: 10px 22px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transicion);
        }

        .btn-unirme:hover {
            background: white;
            color: var(--color-primario);
        }
        
        .header-buttons {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        /* Botones */
        .btn-header {
            padding: 8px 18px;
            font-size: 0.9rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            border: 2px solid var(--color-terceario);
            transition: 0.3s ease;
        }
        
        /* Comprar (outline) */
        .btn-outline {
            color: white;
            background: transparent;
            cursor: pointer;
        }
        .btn-outline:hover {
            background: var(--color-terceario);
            color: white;
        }
        
        /* Iniciar Sesi¨®n (solid) */
        .btn-solid {
            background: var(--color-terceario);
            color: white;
        }
        .btn-solid:hover {
            opacity: 0.85;
        }

        .switch {
            position: relative;
            width: 50px;
            height: 26px;
            background: var(--color-terceario);
            border-radius: 25px;
            cursor: pointer;
            transition: background 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 5px;
        }

        .switch svg {
            width: 16px;
            height: 16px;
            color: white;
        }

        .switch::before {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: transform 0.4s ease;
        }
        
        .mobile-actions {
          display: none;
          flex-direction: column;
          gap: 12px;
          padding: 20px;
          background: var(--color-primario);
          text-align: center;
          border-top: 1px solid rgba(255,255,255,0.2);
        }
        
       


        .switch.active {
            background: var(--color-secundario);
        }

        .switch.active::before {
            transform: translateX(24px);
        }
        

        .brand-box .brand-icon {
            margin-top: 10px;
            margin-bottom: 10px;
            width: 150px;
            height: 150px;
            object-fit: contain;
            filter: invert(0); 
            transition: filter .3s;
            animation: apaercerydesaparecer 3s ease-in-out infinite;
        }
        
        .brand-box .brand-text {
            font-weight: 600;
            font-size: 40px;
            color: white;
        }
        
        .carousel {
            position: relative;
            width: 100%;
            height: 70vh;
            overflow: hidden;
        }
        
        .carousel-container {
            display: flex;
            transition: transform 1s ease-in-out;
            width: 100%;
            height: 100%;
        }
        
        .carousel-slide {
            position: relative;
            min-width: 100%;
            height: 100%;
        }
        
        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(70%);
        }
        
        .carousel-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            padding: 60px 20px 40px;
            background: linear-gradient(to top, rgba(7, 16, 93, 0.5), transparent);
        }
        
        .carousel-caption h2 {
            font-size: 2rem;
            margin-bottom: 10px;
        }
        
        .carousel-caption p {
            font-size: 1rem;
            color: #ddd;
            margin-bottom: 10px;
        }
        
        .carousel-controls span {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2rem;
            color: white;
            cursor: pointer;
            padding: 5px 18px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 100%;
            user-select: none;
            z-index: 3;
            transition: all 0.3s ease;
        }
        
        .carousel-controls span:hover {
            background: var(--color-terceario, rgba(245, 60, 20, 0.8));
            transform: translateY(-50%) scale(1.15);
            box-shadow: 0 0 10px rgba(245, 60, 20, 0.8);
        }
        
        .carousel-controls .prev {
            left: 25px;
        }
        
        .carousel-controls .next {
            right: 25px;
        }
        
        .carousel-dots {
            position: absolute;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 3;
        }
        
        .carousel-dots .dot {
            width: 10px;
            height: 10px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .carousel-dots .dot.active {
            background: var(--color-terceario, #f53c14);
        }
        
        /* Videos Destacados */
        #videos-destacados-section {
            padding: 20px 0;
            background: var(--color-primario)
        }
        
        #videos-destacados-section .section-title {
            text-align: center;
            color: #fff;
            font-weight: 800;
            font-size: 35px;
            margin-bottom: 20px;
        }
        
        /* Contenedor del carrusel */
        .videos-carousel-wrapper {
            overflow: hidden;
            width: 100%;
            position: relative;
        }
        
        /* Carrusel */
        .videos-carousel {
            display: flex;
            gap: 20px;
            width: max-content;
            animation: scroll 30s linear infinite;
            padding: 10px 0;
        }
        
        /* Videos estilo tarjetas */
        .videos-carousel iframe {
            width: 380px;
            height: 250px;
            border-radius: 10px;
            border: none;
            transition: transform .3s ease, box-shadow .3s ease;
        }
        
        .videos-carousel.paused {
          animation-play-state: paused !important;
        }
        
        /* Efecto Hover */
        .videos-carousel iframe:hover {
            transform: scale(1.08);
            box-shadow: 0px 8px 20px rgba(0,0,0,0.6);
        }
        
        /* Animaci¨®n infinita suave */
        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* Modulos */
        .modulos-contenedor {
            padding: 70px 80px;
        }
        
        /* Header */
        .modulos-header {
            text-align: center;
            margin-bottom: 55px;
        }
        
        .modulos-header h2 {
            font-size: 38px;
            font-weight: 800;
            color: var(--color-texto);
        }
        
        .modulos-header .subtitle {
            font-size: 18px;
            color: var(--color-gris);
            margin-top: 8px;
        }
        
        /* Grid */
        .modulos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 38px;
        }
        
        /* Cards Nuevas */
        .modulo-card {
            background: var(--color-card);
            backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 45px 28px;
            text-align: center;
            border: 1px solid transparent;
            transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
            cursor: pointer;
            position: relative;
            box-shadow: 0 12px 19px rgba(0,0,0,0.05);
        }

        
        /* Hover estilo premium */
        .modulo-card:hover {
            transform: scale(1.08);
             box-shadow:
                0 0 10px var(--color-terceario),
                0 12px 30px rgba(0,0,0,0.25);
            border-color: var(--color-terceario);
            filter: brightness(1.05);
        }
        
        .modulo-card::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 20px;
            pointer-events: none;
            opacity: 0;
            transition: opacity .35s ease;
            box-shadow: 0 0 18px var(--color-terceario);
        }
        
        .modulo-card:hover::after {
            opacity: 1;
        }
        
        [data-theme="dark"] .modulo-card:hover {
            border-color: #ffffff;
            box-shadow:
                0 0 14px #ffffff,
                0 14px 30px rgba(255,255,255,0.12);
            filter: brightness(1.25);
        }
        
        [data-theme="dark"] .modulo-card:hover::after {
            box-shadow: 0 0 24px #ffffff;
        }

        .modulo-card.auto-hover {
            transform: scale(1.08);
            box-shadow:
                0 0 10px var(--color-terceario),
                0 12px 30px rgba(0,0,0,0.25);
            border-color: var(--color-terceario);
            filter: brightness(1.05);
        }
        
        .modulo-card.auto-hover::after {
            opacity: 1;
        }
        
        /* Modo oscuro tambiÃ©n aplica */
        [data-theme="dark"] .modulo-card.auto-hover {
            border-color: #ffffff;
            box-shadow:
                0 0 14px #ffffff,
                0 14px 30px rgba(255,255,255,0.12);
            filter: brightness(1.25);
        }
        
        /* Imagen */
        .modulo-card img {
            width: 85px;
            height: 85px;
            object-fit: contain;
            margin-bottom: 22px;
            opacity: .92;
            transition: transform .3s;
            filter: invert(1);
        }
        
        .modulo-card:hover img {
            transform: scale(1.08);
        }
        
        /* TÃ­tulo */
        .modulo-card h3 {
            font-size: 17px;
            font-weight: 700;
            letter-spacing: .4px;
            margin-bottom: 8px;
            color: white;
        }
        
        /* DescripciÃ³n */
        .modulo-card p {
            font-size: 15px;
            line-height: 1.5;
            color: white;
        }
        
        /* ApariciÃ³n suave */
        .fade-in {
            opacity: 0;
            transform: translateY(22px);
            animation: fadeInUp .6s forwards;
        }
        
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        footer {
            background: var(--color-primario);
            color: var(--color-texto);
            padding: 60px 20px 30px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 -3px 10px rgba(0,0,0,0.3);
        }
        
        .footer-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            max-width: 1200px;
            margin: 0 auto;
            gap: 40px;
        }
        
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .footer-logo img {
            width: 50px;
            height: 50px;
            filter: brightness(0) invert(1);
        }
        
        .footer-logo h2 {
            font-size: 1.5rem;
            color: white;
        }
        
        .footer-social a {
            color: white;
            font-size: 1.3rem;
            margin: 0 10px;
            text-decoration: none;
            transition: transform 0.3s, color 0.3s;
        }
        
        .footer-social a:hover {
            color: var(--color-terceario);
            transform: scale(1.2);
        }
        
        .footer-bottom {
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.1);
            margin-top: 30px;
            padding-top: 15px;
            font-size: 0.9rem;
            color: #ccc;
        }
        
        .footer-bottom strong {
            color: var(--color-terceario);
        }
        
        .hero-sobre {
            margin-top: 60px;
            display: flex;
            gap: 40px;
            align-items: center;
            padding: 0 60px;
        }
        
        
        .hero-img img {
            width: 350px;
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--color-sombra);
        }
        
        .section-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            padding: 60px 60px 30px 60px;
        }
        
        .info-card {
            background: var(--color-secundario);
            border: 2px solid var(--color-primario);
            padding: 25px;
            border-radius: 16px;
            box-shadow: 0 4px 18px var(--color-sombra);
        }
        
        .contact-box {
            text-align: center;
            padding: 25px 50px 25px 50px;
            background: var(--color-secundario);
            margin-top: 10px;
        }
        
        .contact-box a{
            text-decoration: none;
            color: white;
        }
        
        .map-section {
            margin-top: 30px;
            text-align: center;
        }
        
        .map-section iframe {
            width: 90%;
            height: 350px;
            border-radius: 12px;
            box-shadow: 0 4px 18px var(--color-sombra);
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(3px);
            justify-content: center;
            align-items: center;
            z-index: 999;
        }
        
        /* Caja */
        .modal-content {
            background: var(--color-card);
            padding: 35px;
            border-radius: 12px;
            width: 90%;
            max-width: 420px;
            text-align: center;
            color: white;
            box-shadow: 0 6px 20px var(--color-sombra);
        }
        
        .modal-content p{
            margin-top: 10px;
            margin-bottom: 10px;
        }
        /* Bot¨®n cerrar */
        .modal-close {
            float: right;
            font-size: 22px;
            cursor: pointer;
        }
        
        .btn-google-play {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #000;
            color: #fff;
            padding: 12px 18px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            transition: .25s;
            box-shadow: 0 4px 12px rgba(0,0,0,.25);
        }
        
        .btn-google-play:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0,0,0,.35);
        }
        
        .btn-google-play i {
            font-size: 20px;
        }
        
        .modal-login-alert {
          position: fixed;
          inset: 0;
          background: rgba(0,0,0,.55);
          display: none;
          justify-content: center;
          align-items: center;
          z-index: 9999;
        }
        
        .modal-login-content {
          background: #fff;
          padding: 25px;
          border-radius: 12px;
          width: 90%;
          max-width: 380px;
          text-align: center;
          color: black;
          animation: fadeIn .3s ease;
        }
        
        .modal-login-content h3{
            margin-bottom: 10px;
        }
        
        .btn-login {
          background: var(--color-terceario);
          color: #fff;
          padding: 10px 14px;
          border: none;
          border-radius: 8px;
          margin-top: 12px;
          width: 100%;
          cursor: pointer;
        }
        
        .btn-close-login {
          margin-top: 10px;
          color: #444;
          border: none;
          background: transparent;
          cursor: pointer;
        }
        
        @keyframes fadeIn {
          from { opacity: 0; transform: scale(.96); }
          to { opacity: 1; transform: scale(1); }
        }
        /* ============================= */
/* ðŸŒ RESPONSIVE DESIGN FULVENTAS */
/* ============================= */

/* Dispositivos medianos (tablets, 1024px hacia abajo) */
@media (max-width: 1100px) {
  header {
    padding: 14px 30px;
  }

  header h1 {
    font-size: 1.3rem;
  }

  .carousel-caption h2 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  #planes h2 {
    font-size: 2rem;
  }

  .plan {
    width: 280px;
    padding: 25px 20px;
  }

  .hero h2 {
    font-size: 2.3rem;
  }
  
  
}

/* Dispositivos pequeÃ±os (celulares en horizontal, 768px hacia abajo) */
@media (max-width: 990px) {
  header {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 20px 20px;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 20;
  }
  
  .logo-container{
      flex: 1;
      width: 100%;
      margin-left: 100px;
      justify-content: center;
      margin-left: 0;
  }
  
  header > div:last-child{
      position: absolute;
      right: 20px;
      top: 18px;
  }
  
  .menu-toggle{
      position: absolute;
      left: 20px;
      top: 18px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--color-primario);
    padding: 18px 0;
    text-align: center;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
  }
  
  header.menu-open nav ul {
      display: flex;
  }

  .header-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex: 1; 
    position: relative;
    z-index: 25;
  }
  
  .user-welcome {
    display: block;
    width: 100%;
    text-align: center;
  }

  nav ul li {
    margin: 10px 0;
  }

  .carousel {
    height: 50vh;
  }

  .carousel-caption h2 {
    font-size: 1.3rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
  }

  .hero {
    height: 50vh;
    padding: 0 10px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .planes-container {
    flex-direction: column;
    gap: 30px;
  }

  .plan {
    width: 90%;
  }

  .registro-section {
    padding: 80px 10px;
  }

  .gym-form {
    width: 90%;
    padding: 30px 20px;
  }

  footer .footer-container {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .footer-logo h2 {
    font-size: 1.3rem;
  }
}

@media(max-width: 900px){
    .header-buttons{
        display: none !important;
    }
    .mobile-actions{
        display: none !important;
    }
    
    .videos-carousel iframe {
            width: 300px;
            height: 200px;
    }
}

@media(max-width: 732px){
    .modulos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modulo-card {
        padding: 12px;
    }

    .modulo-card img {
        height: 90px;
    }

    .modulo-card h3 {
        font-size: 14px;
    }
}

/* MÃ³viles muy pequeÃ±os (480px hacia abajo) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }

  .logo {
    width: 38px;
    height: 38px;
  }

  .btn-unirme {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .carousel-caption h2 {
    font-size: 1.1rem;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }
  
  .videos-carousel iframe {
            width: 280px;
            height: 180px;
    }

  .plan {
    width: 100%;
    padding: 25px 15px;
  }

  .plan h3 {
    font-size: 1.2rem;
  }

  .plan ul li {
    font-size: 0.85rem;
  }
  
  .modulos-contenedor {
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 100%;
  }
  
  .modulos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .modulo-card img {
        height: 75px;
    }

    .modulo-card h3 {
        font-size: 13px;
    }

  .btn-ver-mas {
    width: 80%;
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-enviar {
    width: 70%;
  }
}
