/* --- Variables de Color --- */
:root {
    --color-negro: #050505;
    --color-verde-neon: #39FF14;
    --color-blanco: #f0f0f0;
    --color-gris: #888;
}

/* --- Reseteo Básico y Fuente --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-negro);
    color: var(--color-blanco);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ==============================================
   ===== ESTILOS DEL PRELOADER (ACTUALIZADO) =====
   ============================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-negro);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Logo/Bolsa girando (TAMAÑO AJUSTADO) */
#preloader img {
    max-width: 180px;  /* Ancho máximo para la bolsa */
    height: auto;      /* Alto automático para mantener proporción */
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Barra de carga */
.loading-bar-container {
    width: 200px;
    height: 5px;
    background-color: #333;
    border-radius: 5px;
    margin-top: 25px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0;
    background-color: var(--color-verde-neon);
    border-radius: 5px;
    animation: fillBar 1.2s ease-out 0.2s forwards;
}

@keyframes fillBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}
/* ============================================== */


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Estilos de la Navegación --- */
.navbar {
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
    position: fixed;
    width: 100%;
    z-index: 100;
    min-height: 81px; 
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blanco);
    text-decoration: none;
    letter-spacing: 1px;
    z-index: 10; 
}

.logo img {
    height: 40px; 
    width: auto;
    vertical-align: middle; 
}

.navbar .main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar .main-nav li {
    margin-left: 25px;
}

.navbar .main-nav a {
    color: var(--color-gris);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.navbar .main-nav a:hover {
    color: var(--color-verde-neon);
}

/* ===============================================
  BOTÓN "DOWNLOAD CATALOG" (CORREGIDO)
 ===============================================
*/
.navbar .main-nav a.cta-button-nav {
    background-color: transparent;
    border: 2px solid var(--color-verde-neon);
    color: var(--color-verde-neon);
    padding: 8px 16px; 
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 30px; 
    transition: all 0.3s ease;
}

.navbar .main-nav a.cta-button-nav:hover {
    background-color: var(--color-verde-neon); 
    color: var(--color-negro); 
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3); 
}
/* =============================================== */


/* --- Estilos Menú Hamburguesa --- */
.menu-toggle {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-verde-neon);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Estilos de la Sección HERO (CORREGIDO) --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* --- Estilos para el Slider (CORREGIDO) --- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out;
    
    /* Centra el texto */
    display: flex;
    align-items: center;
    padding-top: 81px; /* Para compensar el navbar */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: relative;
    margin-left: 10%;
    text-align: left;
    max-width: 600px;
    transform: translateY(-50px); 
    z-index: 3; /* Texto ARRIBA de la superposición */
}

/* Animación solo para el slide activo */
.hero-slide.active .hero-content {
    animation: fadeInDown 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}


.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: var(--color-verde-neon);
}

/* --- Estilos del Botón de Contacto (CTA) --- */
.cta-button {
    display: inline-block;
    background-color: var(--color-verde-neon);
    color: var(--color-negro);
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Animación solo para el slide activo */
.hero-slide.active .cta-button {
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}


.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px 5px rgba(57, 255, 20, 0.4);
}

/* --- Elementos de Fondo del Hero (CORREGIDO) --- */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    z-index: 1; /* Capa inferior */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        var(--color-negro) 20%, 
        rgba(5, 5, 5, 0.5) 50%, 
        rgba(5, 5, 5, 0) 80%
    );
    z-index: 2; /* Capa intermedia */
}

.hero-bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(57, 255, 20, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 2; /* Capa intermedia */
}

/* --- Estilos de la Sección de Productos --- */
.products-section {
    padding: 100px 0;
    background-color: var(--color-negro);
    border-top: 1px solid rgba(57, 255, 20, 0.1);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--color-verde-neon);
    font-weight: 700;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: #111;
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(57, 255, 20, 0.2);
    border-color: rgba(57, 255, 20, 0.4);
}

.product-gallery .main-image {
    width: 100%;
    height: 300px;
    background-color: #222;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; 
    transition: transform 0.3s ease; 
}

.main-image img:hover {
    transform: scale(1.03);
}

.thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #1a1a1a;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--color-gris);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumb:hover {
    border-color: var(--color-verde-neon);
    opacity: 1;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.5rem;
    color: var(--color-blanco);
    font-weight: 700;
    margin-bottom: 15px; 
    text-align: center; 
}

.product-description {
    font-size: 0.95rem;
    color: var(--color-gris);
    line-height: 1.6;
}

/* --- Estilos del Botón para Subir --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-verde-neon);
    color: var(--color-negro);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none; 
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 99;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.scroll-top-btn:hover {
    background-color: var(--color-blanco);
    color: var(--color-negro);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.scroll-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilos de la Sección de Contacto --- */
.contact-section {
    padding: 100px 0;
    background-color: #111;
    border-top: 1px solid rgba(57, 255, 20, 0.1);
}

.contact-info-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    text-align: center;
    margin-bottom: 60px; 
    gap: 60px;
}

.info-item {
    flex-basis: 30%; 
    min-width: 250px; 
    margin: 10px;
}

.info-item .icon {
    font-size: 2rem;
    color: var(--color-verde-neon);
    margin-bottom: 15px;
    display: block;
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--color-blanco);
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1rem;
    color: var(--color-gris);
}


/* El Formulario */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    gap: 20px;
}

.form-group input {
    flex: 1; 
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--color-blanco);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-verde-neon);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .cta-button {
    align-self: center;
    border: none;
    cursor: pointer;
}

/* --- Animaciones de Entrada --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(-50px); } 
}

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

@keyframes imageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Ajustes para Móviles --- */
@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
    }
}

/* --- MEDIA QUERY PARA TABLET Y MÓVIL --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none; 
        position: absolute;
        top: 81px; 
        left: 0;
        width: 100%;
        background-color: #111; 
        border-bottom: 1px solid rgba(57, 255, 20, 0.1);
    }

    .main-nav.is-active {
        display: block;
    }

    .navbar .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar .main-nav li {
        margin: 0;
        width: 100%;
    }

    /* Estilo corregido para el menú móvil */
    .navbar .main-nav a {
        display: block;
        padding: 18px; /* Reducido */
        text-align: center;
        border-bottom: 1px solid #222;
        font-size: 1.1rem;
    }
    
    .navbar .main-nav li:last-child a {
        border-bottom: none;
    }
    
    /* Estilo corregido para el botón en móvil */
    .navbar .main-nav a.cta-button-nav {
        margin: 10px 20px; /* Reducido */
        padding: 12px; /* Reducido */
        text-align: center;
    }
    
    .navbar .main-nav a.cta-button-nav:hover {
        background-color: var(--color-verde-neon); 
        color: var(--color-negro); 
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-30px); }
        to { opacity: 1; transform: translateY(-50px); }
    }
}


/* --- Estilos para el Lightbox (Foto Grande) --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f0f0f0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-gris);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- ESTILOS DEL FOOTER --- */

.site-footer {
    padding: 40px 0;
    background-color: #111; 
    border-top: 1px solid rgba(57, 255, 20, 0.1); 
    color: var(--color-gris);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 30px; 
}

.footer-logo img {
    height: 35px; 
    opacity: 0.7;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 0.9rem;
}
.footer-contact p strong {
    color: var(--color-blanco);
}

.footer-social a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-gris);
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-social a svg {
    fill: var(--color-gris); 
    margin-right: 10px;
    transition: fill 0.3s ease;
    width: 24px;
    height: 24px;
}

.footer-social a:hover {
    color: var(--color-verde-neon);
}

.footer-social a:hover svg {
    fill: var(--color-verde-neon);
}

.footer-slogan p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-blanco);
    text-align: right;
}

/* --- Ajustes de Footer para Móviles --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; 
        text-align: center;
        gap: 40px;
    }

    .footer-slogan p {
        text-align: center;
    }
}