/*
 * ALPHA FITNESS — BASE STYLES
 * Variables, reset, tipografía, layout principal, header, drawer,
 * hero, bottom-nav, mega-menu, login modal, etc.
 * Extraído del HTML monolítico (el bloque más grande).
 * Refactor: 2026-06-02
 */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            /* Desactiva scroll anchoring: las imágenes lazy que cargan
               arriba del viewport peleaban con scrollTo/scrollIntoView,
               clavando el scroll y rompiendo "Ver marcas". */
            overflow-anchor: none;
            /* Scrollbars OSCUROS globales (Firefox): reemplazan las barras
               blancas del SO por una sutil que combina con el tema oscuro.
               Los carruseles que ocultan su barra (scrollbar-width:none por
               clase) NO se afectan: ganan en especificidad. */
            scrollbar-width: thin;
            scrollbar-color: #2a2a2a transparent;
        }

        /* ===== Scrollbars oscuros globales (WebKit: Safari/Chrome) =====
           Track invisible + thumb gris muy oscuro (se aclara apenas al hover),
           con "padding" transparent vía background-clip para que se vea fino y
           redondeado. Especificidad mínima (universal) → cualquier contenedor
           con su propia regla de scrollbar por clase la sigue sobreescribiendo. */
        *::-webkit-scrollbar { width: 11px; height: 11px; }
        *::-webkit-scrollbar-track { background: transparent; }
        *::-webkit-scrollbar-thumb {
            background: #262626;
            border-radius: 8px;
            border: 3px solid transparent;
            background-clip: padding-box;
        }
        *::-webkit-scrollbar-thumb:hover {
            background: #383838;
            background-clip: padding-box;
        }
        *::-webkit-scrollbar-corner { background: transparent; }

        /* ===== DESIGN TOKENS (Professional System) ===== */
        :root {
            /* Colors */
            --primary: #39ff14;                    /* Verde Neon SOLO para hero */
            --primary-dark: #2ecc00;               /* Verde Suave para interfaces */
            --primary-interfaces: #2ecc00;        /* Verde para botones/precios/acciones */
            --accent-orange: #ff9500;             /* Naranja para ofertas/atención */
            --bg-black: #000;
            --bg-dark: #0f0f0f;
            --bg-darker: #1a1a1a;
            --text-white: #ffffff;
            --text-light: #e0e0e0;
            --text-muted: #999999;
            --border-subtle: rgba(255,255,255,0.08);
            --accent-red: #ff4444;
            --accent-blue: #4ea8ff;

            /* Typography */
            --font-display: 'Cormorant Garamond', serif;
            --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'Monaco', 'Menlo', monospace;

            /* Size Scale (based on 16px) */
            --text-xs: 0.75rem;
            --text-sm: 0.875rem;
            --text-base: 1rem;
            --text-lg: 1.125rem;
            --text-xl: 1.5rem;
            --text-2xl: 2rem;
            --text-3xl: 2.5rem;
            --text-4xl: 3.5rem;
            --text-5xl: 5rem;

            /* Line Heights */
            --lh-tight: 1.2;
            --lh-normal: 1.5;
            --lh-relaxed: 1.75;

            /* Spacing */
            --space-1: 0.25rem;
            --space-2: 0.5rem;
            --space-3: 0.75rem;
            --space-4: 1rem;
            --space-6: 1.5rem;
            --space-8: 2rem;
            --space-10: 2.5rem;
            --space-12: 3rem;

            /* Transitions */
            --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --trans-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --trans-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: var(--font-body);
            background: var(--bg-black);
            color: var(--text-white);
            line-height: var(--lh-normal);
            overflow-x: hidden;
            overscroll-behavior: none;
            font-size: var(--text-base);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            /* Cifras "lining": todos los digitos a la misma altura sobre la linea
               base. Sin esto, Cormorant Garamond usa cifras old-style (el 1 queda
               mas alto y el 2 mas bajo en un "12"). Hereda a toda la pagina. */
            font-variant-numeric: lining-nums;
        }

        /* Los controles de formulario no siempre heredan font-variant-numeric */
        input, button, textarea, select, optgroup, option {
            font-variant-numeric: lining-nums;
        }

        /* TYPOGRAPHY HIERARCHY */
        h1 {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 8vw, 5rem);
            font-weight: 700;
            line-height: var(--lh-tight);
            letter-spacing: -0.02em;
            text-transform: uppercase;
        }

        h2 {
            font-family: var(--font-display);
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 600;
            line-height: var(--lh-tight);
            letter-spacing: -0.01em;
        }

        h3 {
            font-family: var(--font-display);
            font-size: clamp(1.25rem, 3vw, 2rem);
            font-weight: 600;
            line-height: var(--lh-tight);
            letter-spacing: 0;
        }

        h4, h5, h6 {
            font-family: var(--font-body);
            font-weight: 600;
            line-height: var(--lh-normal);
        }

        h4 { font-size: var(--text-lg); }
        h5 { font-size: var(--text-base); }
        h6 { font-size: var(--text-sm); }

        p {
            font-size: var(--text-base);
            line-height: var(--lh-relaxed);
            color: var(--text-light);
        }

        /* ACCENT COLORS — Restricción: solo en puntos críticos */
        .primary-accent { color: var(--primary); }
        .text-muted { color: var(--text-muted); }

        /* NEON GREEN (legacy compat) */
        :root {
            --neon-green: var(--primary);
            --neon-green-dark: var(--primary-dark);
            --black: var(--bg-black);
            --dark-gray: var(--bg-darker);
        }

        /* HERO SECTION */
        .hero {
            height: 90vh;
            background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-top: 0%;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="g" cx="50%" cy="50%"><stop offset="0%" stop-color="%2339ff14" stop-opacity="0.1"/><stop offset="100%" stop-color="%2339ff14" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23g)"/></svg>');
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        .hero h1 {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 1rem;
            color: var(--text-white);
            text-shadow: 0 2px 6px rgba(0,0,0,0.6);
            animation: fadeInHero 0.8s ease-out;
            position: relative;
            isolation: isolate;
            z-index: 1;
        }

        /* LUZ NEÓN DETRÁS DE LAS LETRAS — texto duplicado, verde, difuminado */
        .hero h1::before {
            content: "Alpha Fitness";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            color: #39ff14;
            filter: blur(22px);
            z-index: -1;
            pointer-events: none;
            user-select: none;
            animation: neonBacklight 2.6s ease-in-out infinite;
        }

        @keyframes fadeInHero {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes neonBacklight {
            0%, 100% {
                opacity: 0.45;
                filter: blur(18px);
            }
            50% {
                opacity: 0.9;
                filter: blur(30px);
            }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .brand-section {
            animation: fadeInUp 0.5s ease-out !important;
        }

        .brand-section.hidden {
            display: none !important;
        }

        .hero .subtitle {
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 500;
            color: var(--text-light);
            font-size: clamp(1rem, 2.3vw, 1.4rem);
            margin-bottom: 2rem;
            opacity: 0.85;
            animation: fadeInHero 1s ease-out 0.2s both;
        }

        .btn {
            display: inline-block;
            background: linear-gradient(45deg, var(--primary-interfaces), var(--primary-dark));
            color: #fff;
            padding: 1rem 2.5rem;
            font-size: 1.2rem;
            font-weight: bold;
            text-decoration: none;
            text-transform: uppercase;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(46, 204, 0, 0.4);
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(46, 204, 0, 0.6);
        }

        .btn::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;
        }

        .btn:hover::before {
            left: 100%;
        }

        /* BRANDS NAVIGATION */
        .brands-nav {
            padding: 5rem 2rem;
            background: var(--dark-gray);
            text-align: center;
            scroll-margin-top: 80px; /* respira bajo el header al hacer scroll a #brands */
        }

        .brands-nav h2 {
            font-size: 2.7rem;
            margin-bottom: 3.2rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .brands-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 2.5rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .brand-card {
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--border-subtle);
            border-radius: 16px;
            padding: 2.5rem;
            cursor: pointer;
            transition: all var(--trans-normal);
            position: relative;
            overflow: hidden;
        }

        .brand-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
            opacity: 0;
            transition: opacity var(--trans-normal);
        }

        .brand-card:hover {
            transform: translateY(-12px);
            border-color: var(--primary-interfaces);
            box-shadow: 0 16px 32px rgba(0,0,0,0.4);
            background: rgba(255,255,255,0.08);
        }

        .brand-card:hover::before {
            opacity: 1;
        }

        .brand-card i {
            font-size: 4rem;
            color: var(--primary-interfaces);
            margin-bottom: 1.2rem;
            transition: transform var(--trans-normal);
        }

        .brand-card:hover i {
            transform: scale(1.1);
        }

        .brand-card h3 {
            font-size: 1.7rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        /* ============================================
           PRODUCT SECTIONS — PREMIUM REDESIGN
           ============================================ */
        .brand-section {
            padding: 5rem 2rem 6rem;
            background: #000;
            position: relative;
            overflow: hidden;
        }

        /* Subtle radial glow behind each section */
        .brand-section::before {
            content: '';
            position: absolute;
            top: -40%;
            left: 50%;
            transform: translateX(-50%);
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(57,255,20,0.04) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        /* Decorative noise grain overlay */
        .brand-section::after {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 0;
        }

        .brand-section > * {
            position: relative;
            z-index: 1;
        }

        .brand-section:nth-child(even) {
            background: #050505;
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-header h2 {
            font-family: 'Cormorant Garamond', Georgia, serif;
            font-size: 2.8rem;
            text-transform: uppercase;
            margin-bottom: 0;
            position: relative;
            letter-spacing: 6px;
            font-weight: 700;
            color: #fff;
            display: inline-block;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -14px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background: var(--primary-interfaces);
            border-radius: 2px;
            box-shadow: 0 0 12px rgba(57,255,20,0.4);
        }

        .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

        /* ---- Premium Product Cards ---- */
        .product-card {
            background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
            border-radius: 18px;
            overflow: hidden;
            transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease, border-color 0.3s ease;
            border: 1px solid rgba(255,255,255,0.06);
            backdrop-filter: blur(2px);
        }

        .product-card:hover {
            transform: translateY(-10px);
            border-color: rgba(57,255,20,0.3);
            box-shadow:
              0 20px 50px rgba(0,0,0,0.5),
              0 0 40px rgba(57,255,20,0.06),
              inset 0 1px 0 rgba(255,255,255,0.06);
        }

        .product-image {
            height: 260px;
            background: linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
            border-bottom: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            position: relative;
            color: var(--primary-interfaces);
            overflow: hidden;
        }

        /* Subtle bottom glow on product image */
        .product-image::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(57,255,20,0.25), transparent);
        }

        .product-image img {
            transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
        }

        .product-card:hover .product-image img {
            transform: scale(1.05);
        }

        .product-info {
            padding: 1.4rem 1.5rem 1.6rem;
        }

        .product-info h3 {
            font-family: 'Cormorant Garamond', Georgia, serif;
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .product-info p {
            color: #999;
            margin-bottom: 1rem;
            font-size: 0.88rem;
            line-height: 1.5;
        }

        .price {
            font-size: 1.7rem;
            font-weight: 800;
            color: var(--primary-interfaces);
            margin-bottom: 1rem;
            text-shadow: 0 0 20px rgba(57,255,20,0.2);
        }

        /* BENEFITS SECTION */
        .benefits {
            padding: 6rem 2rem;
            background: var(--dark-gray);
            text-align: center;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            max-width: 1000px;
            margin: 3rem auto 0;
        }

        .benefit-item i {
            font-size: 3rem;
            color: var(--primary-interfaces);
            margin-bottom: 1rem;
        }

        .benefit-item h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        /* TESTIMONIALS */
        .testimonials {
            padding: 6rem 2rem;
            background: var(--black);
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            max-width: 1000px;
            margin: 3rem auto 0;
        }

        .testimonial {
            background: rgba(255,255,255,0.05);
            padding: 2rem;
            border-radius: 15px;
            border-left: 4px solid var(--primary-interfaces);
        }

        .stars {
            color: var(--primary-interfaces);
            margin-bottom: 1rem;
        }

        .stars i {
            font-size: 1.2rem;
        }

        /* FOOTER */
        .footer {
            background: var(--dark-gray);
            padding: 3rem 2rem 1rem;
            text-align: center;
        }

        .footer-content {
            max-width: 800px;
            margin: 0 auto 2rem;
        }

        .social-links a {
            color: var(--primary-interfaces);
            font-size: 1.5rem;
            margin: 0 1rem;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            transform: translateY(-3px);
            text-shadow: 0 0 10px var(--primary-interfaces);
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .hero h1 { font-size: 2.5rem; }
            .brands-grid, .products-grid, .benefits-grid, .testimonials-grid {
                grid-template-columns: 1fr;
            }
            .brand-section { padding: 3.5rem 1rem 4rem; }
            .brand-section::before { width: 400px; height: 400px; }
            .carousel::before, .carousel::after { width: 40px; }
            .carousel .arrow.left { left: -8px; }
            .carousel .arrow.right { right: -8px; }
            .carousel .arrow { font-size: 36px !important; }
            .brands-nav { padding: 4rem 1rem; }
            .brands-nav h2 { font-size: 2rem; margin-bottom: 2.5rem; }
            .brand-card { padding: 2.2rem; }
            .brand-card i { font-size: 4rem; }
            .brand-card h3 { font-size: 1.4rem; }
        }

        /* SMOOTH SCROLLING */
        html {
            scroll-behavior: smooth;
        }
    
    .menu-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 13px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  cursor: pointer;
  padding: 8px 9px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  height: auto;
}

.menu-btn:hover {
  color: var(--primary-interfaces);
}    
    
.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
}

.dropdown {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  border: 1px solid #333;
  padding: 10px;
  z-index: 999;

box-shadow: 0 12px 30px rgba(0,0,0,0.7);

opacity: 0;
transform: translateY(10px);
pointer-events: none;
transition: 0.3s ease;
}

.dropdown a {
  display: block;
  color: #aaa;
  padding: 6px 10px;
  text-decoration: none;
  transition: 0.2s;
}

.dropdown a:hover {
  background: #222;
  color: var(--primary-interfaces);
}

.menu-item:hover .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.arrow {
  transition: transform 0.3s ease;
}

.menu-item:hover .arrow {
  transform: rotate(180deg);
}

.products-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-card {
  width: 250px;
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}


.product-image {
    background: var(--primary-interfaces);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.product-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transform: scale(1.6);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.7);
}

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

.product-info h3 {
  color: white;
  margin: 10px 0;
}

.product-info p {
  color: #aaa;
  font-size: 14px;
}

.price {
  display: block;
  color: var(--primary-interfaces);
  font-size: 18px;
  margin: 10px 0;
}

.product-info button {
  background: var(--primary-interfaces);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
}

.products-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-card {
  width: 250px;
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  background: #39ff14;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.product-image img {
  width: 120px;
}

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

.product-info h3 {
  color: white;
  margin: 10px 0;
}

.product-info p {
  color: #aaa;
  font-size: 14px;
}

.price {
  display: block;
  color: var(--primary-interfaces);
  font-size: 18px;
  margin: 10px 0;
}

.product-info button {
  background: var(--primary-interfaces);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
}
.products-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-card {
  width: 250px;
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  background: #39ff14;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.product-image img {
  width: 120px;
}

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

.product-info h3 {
  color: white;
  margin: 10px 0;
}

.product-info p {
  color: #aaa;
  font-size: 14px;
}

.price {
  display: block;
  color: var(--primary-interfaces);
  font-size: 18px;
  margin: 10px 0;
}

.product-info button {
  background: var(--primary-interfaces);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
}

.products-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-card {
  width: 250px;
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  background: #39ff14;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.product-image img {
  width: 120px;
}

.product-image img {
  width: 120px;
}

/* 👇 PEGÁ ESTO ACÁ */
.btn-volver {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--primary-interfaces);
  color: black;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2000;
  transition: 0.3s;
}

.btn-volver:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.btn-volver {
  display: none;
}

.cart-icon {
  cursor: pointer;
  color: #39ff14;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}

.cart-icon:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px #39ff14;
}

#cart-count { font-weight: bold; color: #ffffff; }

    
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE FIX COMPLETO ===== */
html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background: #000 !important;
  overscroll-behavior: none;
}

/* evitar espacios laterales */
section, header, div {
  max-width: 100%;
}

/* botones más tocables */
button, .btn {
  min-height: 44px;
}

/* dropdown mobile fix */
.dropdown {
  display: none !important;
  z-index: 9999;
}

.menu-item {
  z-index: 1000;
}

/* header mobile layout */
@media (max-width:768px){
  header > div:first-child{
    flex-direction: column !important;
    gap:10px;
  }

  #buscador{
    width:100% !important;
  }

  header > div:nth-child(2){
    overflow-x:auto;
    white-space:nowrap;
  }
}


#product-img img {
  max-width: 300px;
  width: 100%;
  height: auto;
  object-fit: contain;
}


.product-image img {
    width: 70% !important;
    height: auto !important;
    object-fit: contain;
    transform: scale(1) !important;
}


/* === CONSISTENT PRODUCT IMAGE SIZE === */
.product-image {
  display:flex;
  align-items:center;
  justify-content:center;
  height: 200px;
}

.product-image img {
  max-width: 80% !important;
  max-height: 80% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  transform: scale(1) !important;
}


/* === BIGGER PRODUCT IMAGES === */
.product-image {
  height: 230px;
}

.product-image img {
  max-width: 95% !important;
  max-height: 95% !important;
}


/* === BIGGER IMAGES ONLY BLACK SKULL === */
#black-skull .product-image {
  height: 260px;
}

#black-skull .product-image img {
  max-width: 110% !important;
  max-height: 110% !important;
}


/* === BIGGER ONLY GROWTH HIPERCALORICO === */
#growth .product-card:nth-child(3) .product-image {
  height: 260px;
}

#growth .product-card:nth-child(3) .product-image img {
  max-width: 110% !important;
  max-height: 110% !important;
}


/* === AJUSTE FINO HIPERCALORICO GROWTH === */
#growth .product-card:nth-child(3) .product-image {
  height: 230px !important;
}

#growth .product-card:nth-child(3) .product-image img {
  max-width: 100% !important;
  max-height: 100% !important;
}


/* === AJUSTE FINAL HIPERCALORICO GROWTH === */
#growth .product-card:nth-child(3) .product-image img {
  max-width: 110% !important;
  max-height: 110% !important;
}


/* === AJUSTE ULTRA FINO HIPERCALORICO GROWTH === */
#growth .product-card:nth-child(3) .product-image img {
  max-width: 118% !important;
  max-height: 118% !important;
}


/* === AJUSTE PRE-ENTRENO BLACK SKULL === */
#black-skull .product-card:nth-child(3) .product-image img {
  max-width: 115% !important;
  max-height: 115% !important;
}


/* === AJUSTE FINAL PRE-ENTRENO BLACK SKULL === */
#black-skull .product-card:nth-child(3) .product-image img {
  max-width: 125% !important;
  max-height: 125% !important;
}


/* === MICRO AJUSTE EXTRA PRE-ENTRENO BLACK SKULL === */
#black-skull .product-card:nth-child(3) .product-image img {
  max-width: 132% !important;
  max-height: 132% !important;
}


/* === AJUSTE WHEY PROTEIN BLACK SKULL === */
#black-skull .product-card:nth-child(1) .product-image img {
  max-width: 115% !important;
  max-height: 115% !important;
}


/* === AJUSTE EXTRA WHEY PROTEIN BLACK SKULL === */
#black-skull .product-card:nth-child(1) .product-image img {
  max-width: 125% !important;
  max-height: 125% !important;
}


/* ============================================
   CAROUSEL — PREMIUM REDESIGN
   ============================================ */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}

/* Fade edges — cinematic left/right mask */
.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}
.carousel::before {
  left: 0;
  background: linear-gradient(90deg, #000 0%, transparent 100%);
}
.carousel::after {
  right: 0;
  background: linear-gradient(270deg, #000 0%, transparent 100%);
}
.brand-section:nth-child(even) .carousel::before {
  background: linear-gradient(90deg, #050505 0%, transparent 100%);
}
.brand-section:nth-child(even) .carousel::after {
  background: linear-gradient(270deg, #050505 0%, transparent 100%);
}

.track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 16px 8px 20px;
}

.track::-webkit-scrollbar {
  display: none;
}

.product-card {
  min-width: 260px;
}

/* Hide all stray arrows */
.arrow {
  display: none !important;
}

/* Show ONLY inside carousels */
.carousel .arrow {
  display: flex !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  color: #ffffff;
  font-size: 54px;
  text-shadow: 0 0 8px rgba(57,255,20,0.6), 0 0 20px rgba(57,255,20,0.3);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), text-shadow 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
}

.carousel .arrow:hover {
  transform: translateY(-50%) scale(1.2);
  text-shadow: 0 0 14px #39ff14, 0 0 30px #39ff14, 0 0 50px rgba(57,255,20,0.4);
}

.carousel .arrow.left {
  left: -64px;
}

.carousel .arrow.right {
  right: -64px;
}


/* === BOTONES PRODUCTO PREMIUM === */
.product-info .btn {
  padding: 0 !important;
  font-size: 0.82rem !important;
  border-radius: 8px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 46px;
  background: transparent !important;
  border: 1px solid rgba(57,255,20,0.35) !important;
  color: #39ff14 !important;
  box-shadow: none !important;
  margin-top: 12px !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1) !important;
  position: relative;
  overflow: hidden;
}

.product-info .btn::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(45deg, #39ff14, #22d3ee) !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
}

.product-info .btn:hover {
  transform: none !important;
  border-color: #39ff14 !important;
  color: #000 !important;
  box-shadow: 0 0 25px rgba(57,255,20,0.2) !important;
}

.product-info .btn:hover::before {
  opacity: 1 !important;
}

/* Text above the pseudo */
.product-info .btn span,
.product-info .btn {
  position: relative;
  z-index: 1;
}


/* === FIX HERO SVG ROTATION + SCALE === */
.hero::before {
  transform-origin: center center !important;
  animation: floatFix 20s ease-in-out infinite !important;
}

/* nueva animación con escala incluida */
@keyframes floatFix {
  0%, 100% { transform: scale(2.2) rotate(0deg); }
  50% { transform: scale(2.2) rotate(180deg); }
}


/* === AJUSTE FINAL REAL: BOLAS MAS CHICAS + MAS VELOCIDAD === */
.hero::before {
  width: 260% !important;
  height: 260% !important;
  top: -80% !important;
  left: -80% !important;
  transform-origin: center center !important;
  animation: floatFixFast 10s linear infinite !important;
}

/* escala más chica pero contenedor más grande = bolas chicas sin bordes */
@keyframes floatFixFast {
  0% { transform: scale(1.1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(360deg); }
}


/* === MAS VELOCIDAD HERO === */
.hero::before {
  animation: floatFixUltraFast 5s linear infinite !important;
}

@keyframes floatFixUltraFast {
  0% { transform: scale(1.1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(360deg); }
}


/* === AJUSTE TAMAÑO TITULO HERO === */
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem) !important;
}


/* === AJUSTE ESPACIADO TITULO Y SUBTITULO === */
.hero h1 {
  margin-bottom: 0.5rem !important;
}

.hero .subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(57,255,20,0.6);

  margin-top: 0 !important;
}


/* === AJUSTE FUERTE ESPACIADO HERO === */
.hero {
  gap: 10px !important;
}

.hero h1 {
  margin-bottom: 0.2rem !important;
}

.hero .subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(57,255,20,0.6);

  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
}


/* === AJUSTE ULTRA PEGADO TITULO + SUBTITULO === */
.hero {
  gap: 0px !important;
}

.hero h1 {
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

.hero .subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(57,255,20,0.6);

  margin-top: 0 !important;
  margin-bottom: 0.3rem !important;
}


/* === AJUSTE FINAL BALANCEADO TITULO + SUBTITULO === */
.hero {
  gap: 6px !important;
}

.hero h1 {
  margin-bottom: 0.2rem !important;
  line-height: 1.05 !important;
}

.hero .subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(57,255,20,0.6);

  margin-top: 0 !important;
}


/* === SEPARAR BOTON DEL SUBTITULO === */
.hero .btn {
  margin-top: 20px !important;
}


/* === HERO POSITION ADJUST (MOVE UP) === */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  padding-top: 200px !important;
}



/* NAV FIX */
nav a {
  line-height: 50px !important;
}

/* MEGA MENU PRO FINAL */
.cat-wrapper {
  position: relative;
  display: inline-block;
}

.cat-link {
  color: white;
  cursor: pointer;
}

.mega-menu-pro {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 700px;
  max-width: 1100px;
  background: #0b0b0b;
  padding: 36px 50px;
  z-index: 9999;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

.cat-wrapper:hover .mega-menu-pro {
  display: grid;
}

.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-col h4 {
  color: #39ff14;
  margin-bottom: 15px;
  font-size: 18px;
}

.mega-col a {
  color: white;
  margin: 6px 0;
  font-size: 15px;
  text-decoration: none;
}


/* ALIGN NAV ITEMS PERFECTLY */
nav, .nav, .menu, header nav {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
}

nav a, .cat-link {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  padding: 0 15px !important;
}

/* FORCE CATEGORIAS ALIGN */
.cat-wrapper {
  display: flex !important;
  align-items: center !important;
}

/* FIX BACKGROUND FULL BLACK */
.mega-menu-pro {
  background: #000000 !important;
  opacity: 1 !important;
}


/* ===== HEADER COMPACT FIX ===== */
header nav {
  height: auto !important;
  padding: 10px 0 !important;
  display: flex !important;
  align-items: center !important;
}

nav a, .cat-link {
  height: auto !important;
  line-height: normal !important;
  padding: 8px 15px !important;
  display: inline-block !important;
}

.nav-container {
  padding: 0 20px !important;
}

nav, .menu, header nav {
  height: auto !important;
}

/* keep mega menu intact */
.mega-menu-pro {
  margin-top: 0 !important;
}


/* EXTRA COMPACT HEADER */
header nav {
  padding: 5px 0 !important;
}

nav a, .cat-link {
  padding: 4px 12px !important;
  font-size: 13px !important;
}



/* FIX MEGA MENU — background solo cubre columnas */
.mega-menu-pro {
  background: #000 !important;
  width: max-content !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  min-width: 700px;
  max-width: 1100px;
  border-radius: 0 0 12px 12px !important;
}

.mega-menu-pro::before {
  display: none !important;
}

/* === MEGA MENU OBJETIVOS === */
.obj-wrapper {
  position: relative !important;
}
.obj-wrapper .cat-link {
  cursor: pointer;
}
.mega-obj {
  border-top: 2px solid #39ff14;
  padding: 36px 50px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.85), 0 0 30px rgba(57,255,20,0.08);
}
.mega-obj .mega-col h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(57,255,20,0.2);
  margin-bottom: 12px;
}
.mega-obj .mega-col h4 i {
  color: #39ff14;
}
.mega-obj .mega-col a {
  cursor: pointer;
  padding: 5px 0;
  font-size: 13px;
  color: #bbb;
  transition: color 0.2s, padding-left 0.2s;
}
.mega-obj .mega-col a:hover {
  color: #39ff14;
  padding-left: 6px;
}

/* MARCAS CARDS MÁS ANCHAS */
.brand-card, .marca-card, .brand-box {
  width: 320px !important;
  max-width: 320px !important;
}

/* CONTENEDOR MÁS JUNTO */
.brands-container, .marcas-container {
  gap: 40px !important;
  justify-content: center !important;
}


/* FIX superposición + spacing limpio */
.brands-container, .marcas-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 30px !important;
}

.brand-card, .marca-card, .brand-box {
  width: 280px !important;
  max-width: 280px !important;
  box-sizing: border-box;
}


.footer {
  background: #000;
  color: #fff;
  padding: 60px 20px;
  border-top: 1px solid #222;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-logo h2 {
  color: #39ff14;
  font-size: 28px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #39ff14;
}

.footer-social p {
  margin-bottom: 10px;
  font-size: 14px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border: 1px solid #39ff14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #39ff14;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #39ff14;
  color: #000;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  text-align: left;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.footer-links a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 6px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #39ff14;
}


/* hover contacto FIX REAL */
#contactBtn:hover{
  color:#fff !important;
  text-shadow:0 0 10px #fff;
  cursor:pointer;
}

/* modal */
.contact-modal{
 display:none;
 position:fixed;
 top:0;
 left:0;
 width:100%;
 height:100%;
 background:rgba(0,0,0,0.85);
 justify-content:center;
 align-items:center;
 z-index:99999;
 backdrop-filter:blur(4px);
}

@keyframes slideInRight{
  from{transform:translateX(100%)}
  to{transform:translateX(0)}
}

.close-btn{
 position:absolute;
 top:12px;
 right:14px;
 background:#1a1a1a;
 border:1px solid #333;
 color:#fff;
 width:32px;
 height:32px;
 min-width:32px;
 min-height:32px;
 box-sizing:border-box;
 border-radius:50%;
 display:flex;
 align-items:center;
 justify-content:center;
 cursor:pointer;
 font-size:18px;
 transition:background .2s, border-color .2s;
 z-index:1;
}
.close-btn:hover{
 background:#333;
 border-color:#39ff14;
}

.contact-content{
 position:relative;
 background:#000;
 padding:30px;
 border-radius:12px;
 width:380px;
 border:1px solid #39ff14;
 box-shadow:0 0 20px rgba(57,255,20,0.2);
}

.contact-content h2{
 color:#39ff14;
 margin-bottom:20px;
 text-align:center;
}

.contact-content input,
.contact-content textarea{
 width:100%;
 margin-bottom:12px;
 padding:12px;
 background:#111;
 border:1px solid #333;
 color:#fff;
 border-radius:6px;
}

.contact-content button{
 width:100%;
 padding:12px;
 background:#39ff14;
 border:none;
 color:#000;
 font-weight:bold;
 border-radius:6px;
 cursor:pointer;
}

/*
  REMOVED 2026-06-02: regla .close-btn duplicada que estaba sin background ni
  dimensiones, pisaba a la definición canónica de arriba (línea ~1739) y dejaba
  el botón invisible/oval. Causa raíz del bug del botón X del centro de
  notificaciones (varias sesiones de pelea). La regla canónica de arriba ya
  cubre todos los casos.
*/

/* FORCE HEADER CLICKABLE */
header a, header span, header div {
  pointer-events: auto !important;
  position: relative;
  z-index: 1000;
  cursor: pointer;
}

/* ensure nothing blocks it */
header::before, header::after {
  pointer-events: none !important;
}


/* HOVER CONTACTO HEADER MATCH FOOTER */
.contactBtnAll:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  transition: 0.3s ease;
}


/* BIGGER CONTACT MODAL */
.contact-content{
  width: 600px !important;
  max-width: 90% !important;
  padding: 40px !important;
}

.contact-content input,
.contact-content textarea{
  padding: 14px !important;
  font-size: 15px !important;
}

.contact-content h2{
  font-size: 26px !important;
}


/* MAKE MESSAGE BOX BIGGER ONLY */
.contact-content textarea{
  height: 160px !important;
  resize: vertical;
}

/* === GRID MODE (NO CAROUSEL) === */
.brand-section.grid-mode .track{
  display:grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap:25px;
  overflow:visible !important;
}

.brand-section.grid-mode .product-card{
  min-width:unset !important;
  width:100% !important;
}

.brand-section.grid-mode .arrow{
  display:none !important;
}


/* FIX: show back button in product page */
#product-page .btn-volver{
  display:block !important;
}


/* === FIX HOVER CATEGORIAS Y OBJETIVOS === */
.cat-link:hover,
.menu-item:hover {
  color: #39ff14 !important;
  cursor: pointer;
}


/* NAV ARROW ANIMATION */
.nav-arrow{
  display:inline-block !important;
  margin-left:5px !important;
  margin-right:0 !important;
  transition: transform 0.3s ease !important;
  font-size: 10px !important;
  transform: rotate(180deg) !important;
}

.menu-item:hover .nav-arrow,
.cat-wrapper:hover .nav-arrow{
  transform: rotate(0deg) !important;
}


#userMenu {
  position: relative;
  z-index: 10001 !important;
}

#dropdownMenu {
  position: absolute;
  z-index: 10002 !important;
}

/* hover mode */
#userMenu:hover #dropdownMenu {
  display: block !important;
}


/* LOGIN MODAL UI IMPROVEMENT */
#loginModal .contact-content{
  display:flex;
  flex-direction:column;
  gap:8px;
}

#loginModal input{
  margin-bottom:6px !important;
}

#loginModal button{
  margin-top:6px !important;
  padding:14px !important;
  font-size:15px !important;
  border-radius:8px !important;
}

#loginModal button + button{
  margin-top:2px !important;
}


/* USER MENU HOVER EFFECT */
#userMenu:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  transition: 0.3s ease;
}


/* FAVORITOS HOVER EFFECT */
header span:nth-child(2):hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  transition: 0.3s ease;
}


/* PRODUCT PAGE BUTTON FIX */
#product-page .btn{
  width: 260px !important;
  text-align: center;
  display: block;
  margin-left: 0 !important;
}

#product-page .btn + .btn{
  margin-top: 10px !important;
}


/* PRODUCT PAGE BUTTON FIX FINAL */
#product-page .btn{
  width: 260px !important;
  height: 55px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 !important;
}

#product-page .btn + .btn{
  margin-top: 10px !important;
}


/* CHECKBOX ALIGN FIX */
#loginModal label{
  display:flex;
  align-items:center;
  width:100%;
}

#loginModal label input{
  order:2;
  margin-left:auto;
}


/* CHECKBOX FINAL ALIGN FIX */
#loginModal label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  white-space:nowrap;
  font-size:13px;
}

#loginModal label input{
  margin-left:10px;
}


/* CHECKBOX TIGHT ALIGN */
#loginModal label{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  white-space:nowrap;
  gap:6px;
}

#loginModal label input{
  margin-left:0;
}


/* CHECKBOX SUPER TIGHT FIX */
#loginModal label{
  display:inline-flex !important;
  align-items:center;
  gap:4px;
  white-space:nowrap;
  width:auto !important;
}

#loginModal label input{
  margin:0;
}


/* CHECKBOX TRUE INLINE FIX */
#loginModal label{
  display:inline !important;
  white-space:nowrap;
}

#loginModal label input{
  display:inline-block;
  margin-left:5px !important;
  position:static !important;
  order:unset !important;
}


/* FINAL REAL CHECKBOX FIX (override everything) */
#loginModal label{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  width:auto !important;
  justify-content:flex-start !important;
}

#loginModal label input{
  position:static !important;
  margin:0 !important;
}


/* TRUE FINAL FORCE */
#loginModal label{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:2px !important;
  width:fit-content !important;
}

#loginModal label input{
  margin:0 !important;
  margin-left:6px !important;
}


/* FIX SIZE CATEGORIAS IGUAL QUE OTROS */
.cat-link{
  display:flex !important;
  align-items:center !important;
  height:60px !important;
  padding:4px 12px !important;
  font-size:13px !important;
}
