/* ========================================
   CONFIGURACIÓN DE TAILWIND (variables)
   ======================================== */
:root {
    --card-glass: rgba(0, 0, 0, 0.7);
}

/* ========================================
   ESTILOS GENERALES
   ======================================== */
body {
    font-family: 'Space Grotesk', sans-serif;
    min-height: max(884px, 100dvh);
}

/* ========================================
   GLASSMORPHISM CARDS
   ======================================== */
.glass-card {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 242, 89, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(13, 242, 89, 0.4);
    box-shadow: 0 0 30px rgba(13, 242, 89, 0.1);
}

/* ========================================
   FONDO CIRCUITO
   ======================================== */
.circuit-bg {
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(17, 71, 35, 0.05) 1px, transparent 0),
        linear-gradient(to bottom, #0a0f0b, #102216);
    background-size: 40px 40px, 100% 100%;
}

/* ========================================
   MODALES
   ======================================== */
.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-container {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-container.active {
    display: flex !important;
    opacity: 1;
}

.modal-container .glass-card {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal-container.active .glass-card {
    transform: scale(1);
    opacity: 1;
}

/* ========================================
   CRÍTICO: Pointer events para modales
   ======================================== */
.modal-container {
    pointer-events: none;
}

.modal-container.active {
    pointer-events: auto;
}

.modal-container .modal-overlay {
    pointer-events: auto;
}

.modal-container .glass-card {
    pointer-events: auto;
    position: relative;
    z-index: 101;
}

.modal-container .glass-card * {
    pointer-events: auto;
}

#whatsappBtn {
    pointer-events: auto !important;
    position: relative;
    z-index: 110;
}

/* ========================================
   EFECTOS NEÓN
   ======================================== */
.neon-border {
    box-shadow: 0 0 15px rgba(13, 242, 89, 0.3), inset 0 0 10px rgba(13, 242, 89, 0.1);
}

/* ========================================
   BOTÓN WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
    box-shadow: 0 0 20px rgba(13, 242, 89, 0.5);
}

/* ========================================
   BOTÓN WHATSAPP DEL MODAL
   ======================================== */
#whatsappBtn {
    position: relative;
    overflow: hidden;
}

#whatsappBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* ✅ CORREGIDO: "transrent" → "transparent" */
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s ease;
}

#whatsappBtn:hover::before {
    left: 100%;
}

#whatsappBtn:hover {
    box-shadow: 0 0 25px rgba(13, 242, 89, 0.5);
}

/* ========================================
   UTILIDADES ADICIONALES
   ======================================== */
.bg-cover {
    transition: filter 0.5s ease;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13, 242, 89, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 10px rgba(13, 242, 89, 0); }
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(13, 242, 89, 0.05);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(13, 242, 89, 0.3);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 242, 89, 0.5);
}

/* ========================================
   PREVENIR SCROLL CUANDO EL MODAL ESTÁ ABIERTO
   ======================================== */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ========================================
   ANIMACIONES DE CONTENIDO DEL MODAL
   ======================================== */
.modal-container.active .modal-title,
.modal-container.active .modal-description,
.modal-container.active .modal-chipset,
.modal-container.active .modal-spectrum,
.modal-container.active .modal-thermal,
.modal-container.active .modal-cert,
.modal-container.active .modal-ppf {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.modal-container.active .modal-title { animation-delay: 0.1s; }
.modal-container.active .modal-description { animation-delay: 0.15s; }
.modal-container.active .modal-chipset,
.modal-container.active .modal-spectrum,
.modal-container.active .modal-thermal,
.modal-container.active .modal-cert { animation-delay: 0.2s; }
.modal-container.active .modal-ppf { animation-delay: 0.25s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-ppf-bar {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-image {
    transition: background-image 0.3s ease;
}

/* ========================================
   NAV - LETRERO NEÓN INDUSTRIA ARGENTINA
   ======================================== */

/* Contenedor del banner */
.neon-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: neon-pulse 2s ease-in-out infinite;
}

/* Texto neón */
.neon-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #0df259,
        0 0 40px #0df259,
        0 0 80px #0df259;
    animation: text-flicker 3s infinite alternate;
}

/* Estrellas */
.star {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.neon-banner:hover .star {
    transform: scale(1.2) rotate(5deg);
}

/* Estrella celeste (bandera argentina) */
.star-celeste {
    color: #74ACDF;
    text-shadow: 
        0 0 5px #74ACDF,
        0 0 10px #74ACDF,
        0 0 20px rgba(116, 172, 223, 0.5);
    animation: star-twinkle 1.5s ease-in-out infinite;
}

/* Estrella blanca */
.star-blanca {
    color: #FFFFFF;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px rgba(255, 255, 255, 0.8);
    animation: star-twinkle 1.5s ease-in-out infinite 0.5s;
}

/* ========================================
   ANIMACIONES NEÓN
   ======================================== */

/* Pulsado suave del banner */
@keyframes neon-pulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(13, 242, 89, 0.2); 
    }
    50% { 
        box-shadow: 0 0 25px rgba(13, 242, 89, 0.4); 
    }
}

/* Flicker sutil del texto */
@keyframes text-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px #0df259,
            0 0 40px #0df259,
            0 0 80px #0df259;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Titileo de estrellas */
@keyframes star-twinkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(0.9);
    }
}

/* ========================================
   RESPONSIVE: Mobile
   ======================================== */
@media (max-width: 768px) {
    .neon-banner {
        display: none; /* Ocultar en mobile, se usa nav inferior */
    }
}


/* ========================================
   LOGO: Efectos hover
   ======================================== */
nav img[src*="logo"] {
    transition: filter 0.3s ease, transform 0.3s ease;
}

nav img[src*="logo"]:hover {
    filter: drop-shadow(0 0 12px rgba(13, 242, 89, 0.6));
    transform: scale(1.02);
}

footer ul li svg {
    transition: transform 0.2s ease, filter 0.2s ease;
}

footer ul li:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(13, 242, 89, 0.5));
}

/* Logo del footer con efecto hover */
footer img[src*="logo"] {
    transition: filter 0.3s ease, transform 0.3s ease;
}

footer img[src*="logo"]:hover {
    filter: drop-shadow(0 0 15px rgba(13, 242, 89, 0.4));
    transform: scale(1.03);
}

.envio {
    border-radius: 20px;
    color: #fff;
    background-color: #102216;
    margin-left: 100px;
}
/* ========================================
   FILTROS POR MARCA
   ======================================== */
.filter-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn.active {
    background: #0df259 !important;
    color: #0a0f0b !important;
    border-color: #0df259 !important;
    box-shadow: 0 0 15px rgba(13, 242, 89, 0.5);
}

.filter-btn:hover:not(.active) {
    transform: scale(1.05);
}

/* Reemplazar la regla conflictiva */
.product-card.filtered {
    display: none;  /* ✅ Sin !important, dejamos que JS controle el display */
    visibility: hidden;  /* ✅ Extra: asegura que no sea interactuable */
    pointer-events: none;
}

/* Asegurar que las tarjetas visibles tengan display flex/block según su layout */
.product-card:not(.filtered) {
    display: flex;  /* Para las que tienen layout md:flex-row */
    visibility: visible;
    pointer-events: auto;
}

/* Override para mobile donde el layout es column */
@media (max-width: 767px) {
    .product-card:not(.filtered) {
        display: flex;  /* Sigue siendo flex, pero en columna por las clases de Tailwind */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   BOTÓN OCA ESTILIZADO
   ======================================== */
.oca-btn {
    position: relative;
    overflow: hidden;
    border: 2px solid;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.4), inset 0 0 10px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

.oca-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 ease;
}

.oca-btn:hover::before {
    left: 100%;
}

.oca-btn:hover {
    box-shadow: 0 0 25px rgba(0, 102, 204, 0.7), inset 0 0 15px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
}

.oca-btn:active {
    transform: translateY(0);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .filter-btn {
        width: 100%;
        margin: 2px 0;
    }
    
    .oca-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   REORDENAMIENTO GROWTECH - Solo al filtrar
   ======================================== */
.product-card.growtech-reorder {
    transition: order 0.3s ease, opacity 0.3s ease;
}

/* Animación suave al reordenar */
@keyframes reorderFade {
    0% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.product-card.reorder-animate {
    animation: reorderFade 0.3s ease forwards;
}

/* ========================================
   SCROLL SUAVE PARA ANCLAS
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* Offset para el nav sticky (para que no tape el título) */
#inicio {
    scroll-margin-top: 100px;
}

/* Badge de filtro activo */
#filterBadge {
    animation: fadeIn 0.3s ease forwards;
}

#clearFilter:hover {
    color: #ef4444 !important;
}

/* Cards de marcas - área completa clickeable */
.brand-card {
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(13, 242, 89, 0.15);
}

.brand-card:active {
    transform: translateY(-2px);
}

/* Asegurar que el texto dentro del <a> no tenga subrayado */
.brand-card * {
    text-decoration: none !important;
}
/* ========================================
   MENÚ MOBILE: Alinear enlaces a la derecha
   ======================================== */
@media (max-width: 768px) {
    /* Contenedor del menú mobile */
    #mobileMenu {
        text-align: right;
    }
    
    /* Enlaces del menú mobile */
    #mobileMenu .nav-link {
        justify-content: flex-end !important;
        text-align: right;
        padding-right: 1.5rem;
        display: flex !important;
        align-items: center;
    }
    
    /* Íconos dentro de los enlaces */
    #mobileMenu .nav-link .material-symbols-outlined {
        order: 2; /* Ícono a la derecha del texto */
        margin-left: 0.75rem;
        margin-right: 0;
    }
    
    /* Estado activo en mobile */
    #mobileMenu .nav-link.active {
        background: rgba(13, 242, 89, 0.15) !important;
        border-right: 3px solid #0df259;
        padding-right: 1.25rem;
    }
}