html {
    scroll-behavior: smooth; /* Hace que el salto sea un deslizamiento suave */
    scroll-padding-top: 100px; /* Evita que el menú fijo tape el título al llegar */
}

:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-color: #ffffff;
    --electric-blue: #0070f3;
    --accent-green: #76b900;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Oswald', sans-serif;
    font-weight: 350;
    letter-spacing: 1px;
    text-align: left;
    text-transform: none;
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

/* --- LOGO Y GENERALES --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo-img {
    height: 55px;
    width: auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1px;
    text-decoration: none;
    color: inherit;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05); /* Un pequeño efecto de crecimiento al pasar el mouse */
}

.logo span { 
    color: #00bb2d; 
    font-weight: 500;
}

/* --- HEADER GENERAL (SÓLIDO PARA PC) --- */
header {
    padding: 1rem 5%;
    position: fixed;
    width: 100%; /* Cambiado de 90% a 100% para que toque los bordes */
    top: 0;
    left: 0;
    z-index: 1000;
    
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box; /* Crucial: evita que el padding sume ancho y genere scroll horizontal */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    margin: 0;
    padding: 0;
}

nav a { 
    color: white; 
    text-decoration: none; 
    font-size: 0.9rem; 
}

/* --- COMPORTAMIENTO HAMBURGUESA / SUBMENÚS ESCRITORIO --- */
.hamburger-btn {
    display: none; /* Escondido en PC */
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.desktop-arrow { 
    display: inline-block; 
    font-size: 0.7rem; 
    margin-left: 3px; 
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; 
    position: absolute;
    background-color: #141414; 
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1;
    border: 1px solid var(--electric-blue);
    border-radius: 4px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #222;
    color: var(--electric-blue);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('background-hero.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    padding: 0 10%;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.9);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

h1 span { color: var(--electric-blue); }

.btn-main {
    display: inline-block;
    background: var(--electric-blue);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.5s ease;
}

.btn-main:hover {
    background: #0056b3;
    transform: translateY(-5px);
}

.fade-in.btn-main:hover {
    transform: translateY(-5px)!important;
}

/* --- ESTRUCTURAS DE TIENDA Y GRIDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 30px;
    padding: 20px 10% 40px;
    justify-content: start;
}

.card {
    background: #141414;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #222;
    transition: 0.3s;
    position: relative;
    max-width: 350px;
}

.card:hover { 
    border-color: var(--electric-blue); 
    transform: translateY(-5px);
}

.tag {
    color: var(--accent-green);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}

.price { display: block; margin: 15px 0; font-size: 1.2rem; font-weight: bold; }

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin: 15px 0;
    background-color: #000;
    border-bottom: 2px solid var(--electric-blue);
}

.btn-add {
    width: 100%;
    background: transparent;
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-add:hover {
    background: var(--electric-blue);
    color: white;
}

/* --- SECCIÓN ACERCA DE --- */
.about-section {
    padding: 80px 10%;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.8;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--electric-blue);
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-container {
    display: flex;
    align-items: center; 
    gap: 50px; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.about-image {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--electric-blue); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.zigzag-row {
    padding: 20px 20px !important;
}

.about-text {
    flex: 1; 
    text-align: left;
}

/* --- ELEMENTOS DE DISEÑO E INTERFACES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    border: 1px solid var(--electric-blue);
}

.feature-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--electric-blue);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.feature-item p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #bbb;
}

.link-manual {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--electric-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
}

.link-manual:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.link-manual i { font-size: 1rem; }

/* PUERTAS DE ACCESO INTERACTIVO */
.seccion-puertas {
    display: flex;
    height: 500px;
    width: 100%;
    overflow: hidden;
}

.puerta-card {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: flex 0.6s ease;
    background-size: cover;
    background-position: center;
}

.puerta-card:hover {
    flex: 1.5;
}

.puerta-card.productos {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('iluminacion.jpg');
}

.puerta-card.servicios {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('tarjeta.jpg');
}

.puerta-overlay {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.puerta-card:hover .puerta-overlay {
    background: rgba(0, 112, 243, 0.3);
}

.puerta-tag {
    color: var(--electric-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.puerta-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin: 10px 0;
}

.btn-puerta {
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid white;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.puerta-card:hover .btn-puerta {
    background: white;
    color: black;
}

/* --- COMPONENTES DE CATÁLOGO --- */
.catalogo-header {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
                url('iluminacion.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
    padding: 150px 10% 40px;
}

.catalogo-header h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--electric-blue);
    font-size: 2.5rem;
}

.categoria-wrapper {
    position: relative;
    padding: 60px 20px;
    margin: 80px 0;
    border-radius: 15px;
    overflow: hidden; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

#iluminacion.categoria-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('fondo-ilu.jpg');
}

#camara.categoria-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('fondo-cam.jpeg');
}

#cableado.categoria-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('cables.jpg');
}

#soporte.categoria-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('ballast.jpg');
}

.categoria-titulo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--text-color);
    margin: 0 10% 30px;
    border-left: 5px solid var(--electric-blue);
    padding-left: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.categoria-titulo span {
    color: var(--electric-blue);
    margin-right: 10px;
    font-size: 1.1rem;
}

.catalogo-container { padding-bottom: 40px; }

.product-container.fade-in {
    position: relative;
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.info-column {
    background: rgba(20, 20, 20, 0.7);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* --- OTROS COMPONENTES --- */
.tech-note { padding: 50px 10%; background: #111; }
.note-box { border-left: 4px solid var(--electric-blue); padding-left: 20px; }
footer { text-align: center; padding: 20px; font-size: 0.8rem; color: #666; }

@keyframes aparecer {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: aparecer 0.3s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.7s; }

.silhouette {
    filter: brightness(0) blur(3px); 
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.card.proximamente:hover .silhouette {
    filter: brightness(0.05) blur(1px);
    transform: scale(1);
}

.btn-whatsapp {
    display: block !important;
    text-align: center;
    background-color: #25d366;
    color: white !important;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    color: white !important;
}

.back-button-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0px;
}

.btn-back-clean {
    text-decoration: none;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 18px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back-clean:hover {
    background: #252525;
    color: var(--electric-blue);
    border-color: var(--electric-blue);
    transform: translateX(-3px);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
}

/* ==========================================
   MEDIA QUERY: DISPOSITIVOS MÓVILES (≤ 768px)
   ========================================== */
@media (max-width: 768px) {
    /* 1. ESTRUCTURA COMPACTA HEADER MÓVIL */
    header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 70px !important; 
        padding: 0px 20px !important;
        width: 100% !important; 
        left: 0 !important;
        box-sizing: border-box !important;
    }

    header .logo {
        font-size: 1.1rem !important;
        margin-bottom: 0px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    header .logo-img {
        height: 35px !important;
        width: auto !important;
    }

    .hide-mobile {
        display: none !important; /* Oculta 'Engineering' en móvil */
    }

    /* 2. BOTÓN HAMBURGUESA ACTIVO */
    .hamburger-btn {
        display: block !important; /* Se hace visible */
    }

    .desktop-arrow {
        display: none !important; /* Quitamos flechas descendentes */
    }

    /* 3. MENÚ VERTICAL (DESPLIEGA DESDE ARRIBA) */
    /* Menú principal: Despliega hacia abajo desde el header */
.nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: -100vh; 
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    
    /* FONDO TRASLÚCIDO: Negro al 85% de opacidad y efecto de desenfoque */
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important; /* Soporte para Safari en iPhone */
    
    padding: 90px 0 40px 0 !important; 
    transition: top 0.4s cubic-bezier(0.1, 1, 0.1, 1);
    border-bottom: 2px solid var(--electric-blue);
    z-index: 999;
    margin: 0 !important;
    gap: 20px !important;
}

    .nav-links.active {
        top: 0; /* Baja a la vista al activar */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem !important; /* Tamaño legible al tacto */
        display: block;
        padding: 12px 0 !important;
        text-transform: uppercase;
    }

    /* SUBMENÚS MÓVILES: Ahora bajan dinámicamente sin tapar todo */
.dropdown-content {
    display: block !important;
    position: absolute !important; /* Cambiado de fixed a absolute */
    top: 100%; /* Se posiciona justo debajo del botón que lo activa */
    left: 0;
    width: 100% !important;
    height: 0 !important; /* Empieza con altura cero (escondido) */
    overflow: hidden; /* Oculta el texto mientras está cerrado */
    background: rgba(20, 20, 20, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 0 40px !important; /* Quitamos el padding vertical inicial */
    transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
    border: none !important;
    z-index: 1002;
    box-sizing: border-box;
}

/* Cuando el submenú se activa (Se despliega hacia abajo) */
.dropdown-content.open {
    height: auto !important; /* Toma el alto natural de sus opciones */
    min-height: 130px; /* Un alto mínimo para que respire */
    padding: 20px 40px !important; /* Le devolvemos el aire interno al abrir */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

    /* 5. SECCIONES GENERALES MÓVIL (ZIGZAG, RE-ESTRUCTURACIONES VIEJAS) */
    .about-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px 15px !important;
        gap: 10px !important;
    }

    .about-image {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    .about-image img {
        transform: translateX(0) !important; 
        width: 90% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        height: auto !important;
        display: block !important;
    }

    .about-text {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .about-text h2, .about-text p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    word-wrap: break-word; /* Si hay una palabra muy larga, la obliga a saltar de línea */
    }

.section-title {
    font-size: 1.6rem !important; /* Le bajamos un poco el tamaño en móvil para que quepa completa */
    padding: 0 15px !important; /* Aire lateral por seguridad */
    white-space: normal !important; /* Permite que el texto baje en dos renglones si es necesario */
    word-break: keep-all; /* Evita que rompa la palabra a la mitad con un guión tosco */
    text-align: center !important;
}

    .about-text .section-title {
        text-align: center !important;
        margin-bottom: 15px !important;
        font-size: 1.5rem !important;
    }

    .seccion-puertas { 
        flex-direction: column; 
        height: 800px; 
    }

    .hero {
        padding-top: 70px !important;
    }

    .btn-whatsapp {
        padding: 12px;
        font-size: 0.9rem;
    }

    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .spec-row strong {
        text-align: left;
        width: 100%;
    }

    .reverse-mobile {
        flex-direction: column-reverse !important;
    }

    .stats-grid {
        flex-wrap: wrap !important;
        gap: 20px !important;
    }

    .stats-grid span[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
}