/* ==========================================================================
   1. VARIABLES GLOBALES (TEMA OSCURO POR DEFECTO)
   ========================================================================== */
:root {
    --orange-primary: #ff6b00; 
    --orange-dark: #e65100;
    --dark-bg: #121212; 
    --dark-secondary: #1e1e1e; 
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --gradient-orange: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
}

/* ==========================================================================
   2. RESET Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg); 
    color: var(--gray-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    color: var(--light-text);
    font-weight: 800;
}

/* ==========================================================================
   3. CLASES UTILITARIAS Y TIPOGRAFÍA
   ========================================================================== */
.text-orange { color: var(--orange-primary); }
.text-center { text-align: center; }
.container-narrow { max-width: 800px; margin: 0 auto; }

.text-gradient {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   4. BOTONES
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i { margin-right: 8px; }

.btn-primary {
    background: var(--gradient-orange);
    color: #ffffff; 
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}

.btn-secondary {
    background-color:rgba(18, 18, 18, 0.95);
    border: 2px solid var(--orange-primary);
    color: var(--orange-primary);
}

.btn-secondary:hover {
    background-color: var(--orange-primary);
    color: #ffffff;
}

/* ==========================================================================
   5. NAVEGACIÓN (HEADER)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(18, 18, 18, 0.95); 
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.navbar.sticky {
    padding: 0.5rem 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.brand-icon {
    font-size: 1.5rem;
    margin-right: 5px;
}

.nav-logo-img {
    max-height: 40px; 
    width: auto;      
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
}
.nav-logo-img:hover {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 2px 8px rgba(255, 107, 0, 0.3));
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--orange-primary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--light-text);
    cursor: pointer;
}

.nav-extras {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.extra-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.extra-btn:hover {
    color: var(--orange-primary);
    transform: translateY(-2px);
}

.extra-btn i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.extra-btn:hover i {
    transform: rotate(180deg) scale(1.2);
    color: var(--orange-primary);
}

/* ==========================================================================
   6. SECCIÓN HERO (INICIO) - SPLIT SCREEN
   ========================================================================== */
.hero-split {
    display: flex; 
    min-height: 90vh; 
    margin-top: 70px; 
    background-color: var(--dark-bg); 
}

.hero-left-text {
    flex: 1; 
    background-color: var(--dark-secondary); 
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding: 4rem 5%;
}

.hero-content-wrapper {
    max-width: 500px; 
}

.hero-left-text h1 {
    font-size: 3rem; 
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--light-text);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.6rem; 
    color: var(--orange-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-left-text .delivery-info {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--gray-text); 
    font-weight: 500;
}

.hero-left-text .delivery-info i {
    color: var(--orange-primary);
    margin-right: 10px;
}

.hero-right-image {
    flex: 2; 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    min-height: 400px; 
}

/* ==========================================================================
   7. ESTRUCTURAS DE SECCIÓN (SPLIT) Y NOSOTROS
   ========================================================================== */
.split-section {
    padding: 6rem 5%;
    background-color: var(--dark-bg);
}

.split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.split-text { flex: 1; }
.split-image-container { flex: 1; display: flex; justify-content: center; width: 100%; }
.reverse-layout { flex-direction: row-reverse; } 

.featured-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}
.rounded-image { border-radius: 20px; }

/* ==========================================================================
   MODIFICADOR PARA SECCIONES DE 1/3 (Imagen) Y 2/3 (Texto) - SEGURIDAD
   ========================================================================== */
.split-tercios .split-text {
    flex: 2; 
    padding-left: 3rem; 
}

.split-tercios .split-image-container {
    flex: 1; 
    justify-content: flex-start; 
}

.split-tercios .featured-image {
    width: 100%;
    height: auto; 
    max-height: 450px; 
    object-fit: contain; 
}

/* ==========================================================================
   SECCIÓN PRODUCTOS (2/3 Naranja Izquierda - 1/3 Gris Derecha FIJO)
   ========================================================================== */
.products-section { 
    background: linear-gradient(90deg, var(--orange-primary) 66.66%, var(--dark-secondary) 66.66%); 
    padding: 6rem 0; 
    position: relative; 
    overflow: hidden; 
}

.products-section .split-container {
    padding: 0 5%; 
    gap: 0; 
    justify-content: flex-start; 
}

.products-section .split-text {
    max-width: 650px; 
    padding-right: 5rem; 
    z-index: 2; 
}

.products-section .split-image-container {
    position: absolute; 
    top: 0;
    right: 0; 
    width: 33.333%; 
    height: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem; 
    z-index: 1;
}

.products-section .featured-image {
    max-height: 550px; 
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); 
}

.products-section h2, .products-section p, .products-section li { color: #ffffff; }
.products-section h2 { font-size: 2.8rem; margin-bottom: 1.5rem; }
.intro-text { font-size: 1.2rem; margin-bottom: 2rem; }
.benefits-list { list-style: none; margin-bottom: 3rem; }
.benefits-list li { margin-bottom: 1rem; font-size: 1.1rem; display: flex; align-items: center; }
.benefits-list li i { font-size: 1.3rem; margin-right: 15px; color: white !important; }

.products-section .btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}
.products-section .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--orange-primary);
}

/* ==========================================================================
   SECCIÓN SEGURIDAD Y NOSOTROS
   ========================================================================== */
.security-section { background-color: var(--dark-secondary); }
.security-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.security-section p { font-size: 1.15rem; margin-bottom: 1.5rem; color: var(--gray-text); }
.security-section strong { color: var(--orange-primary); }

/* NUEVOS GLOBOS DE SEGURIDAD */
.security-badges {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap; 
}

.badge {
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 1.05rem;
    color: var(--light-text);
    font-weight: 500;
    cursor: default;
    
    background: linear-gradient(var(--dark-secondary), var(--dark-secondary)) padding-box,
                var(--gradient-orange) border-box;
    border: 2px solid transparent;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.about { padding: 5rem 5%; background-color: var(--dark-bg); }
.sub-title {
    display: block; color: var(--orange-primary); font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem;
}
.about h2 { font-size: 2.5rem; margin-bottom: 2rem; }
.about-box {
    background-color: var(--dark-secondary); padding: 3rem;
    border-radius: 15px; border-left: 5px solid var(--orange-primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.about-box p { font-size: 1.3rem; margin-bottom: 1rem; }

/* ==========================================================================
   8. CONTACTO, MAPA Y FAQ
   ========================================================================== */
.contact-section { background-color: var(--dark-bg); border-bottom: 1px solid #222; padding: 6rem 5%; }
.contact-header { margin-bottom: 2.5rem; }
.contact-header p { margin-top: 1rem; font-size: 1.15rem; color: var(--gray-text); }

.contact-info-cards { display: flex; justify-content: center; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.info-card {
    background-color: var(--dark-secondary); padding: 1.8rem; border-radius: 12px;
    border-bottom: 3px solid var(--orange-primary); flex: 1; min-width: 250px; 
    max-width: 350px; transition: transform 0.3s ease;
}
.info-card:hover { transform: translateY(-5px); }
.info-card i { font-size: 2.2rem; color: var(--orange-primary); margin-bottom: 1rem; }
.info-card h4 { color: var(--light-text); margin-bottom: 0.5rem; font-size: 1.2rem; }
.info-card p { color: var(--gray-text); font-size: 1rem; }

.form-container { display: flex; justify-content: center; }
.contact-form {
    background-color: var(--dark-secondary); padding: 3rem; border-radius: 15px;
    width: 100%; max-width: 700px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid #333;
}
.form-group { margin-bottom: 1.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 18px; background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #444; border-radius: 8px; color: var(--light-text);
    font-size: 1.05rem; transition: all 0.3s ease; font-family: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #888; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--orange-primary); background-color: rgba(255, 255, 255, 0.08);
}

.map-section { padding: 4rem 5% 2rem; background-color: var(--dark-bg); }
.map-container {
    width: 100%; max-width: 1100px; margin: 0 auto; border-radius: 15px;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 2px solid #333; 
}
.map-container iframe { width: 100%; display: block; filter: invert(90%) hue-rotate(180deg) brightness(80%) contrast(80%); }

#faq { background-color: var(--dark-secondary); }
.faq-item { margin-bottom: 10px; border-bottom: 1px solid #333; }
.faq-question {
    width: 100%; text-align: left; padding: 20px 0; background: none; border: none; 
    color: var(--light-text); font-size: 1.15rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question i { transition: transform 0.3s ease; color: var(--orange-primary); font-size: 1rem; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-bottom: 20px; color: var(--gray-text); font-size: 1.05rem; }

/* ==========================================================================
   9. FOOTER Y REDES SOCIALES (SIEMPRE MODO OSCURO)
   ========================================================================== */
footer { 
    background: #0a0a0a; 
    padding: 5rem 5% 2rem; 
    color: var(--gray-text); 
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --dark-secondary: #1e1e1e;
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1100px; 
    margin: 0 auto 3rem; 
    flex-wrap: wrap; 
    gap: 2rem; 
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo h3 { 
    font-size: 2rem; 
    color: var(--light-text); 
}

.footer-social {
    display: flex;
    align-items: center;
}

.footer-social a {
    color: var(--gray-text);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--orange-primary);
    transform: translateY(-3px);
}

.footer-contact { 
    display: flex; 
    gap: 3rem; 
}

.contact-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    cursor: pointer;
}
.contact-item > a{
    text-decoration: none;
}

.icon-box {
    width: 55px; 
    height: 55px; 
    background: var(--dark-secondary);
    border-radius: 50%; 
    color: var(--orange-primary); 
    font-size: 1.5rem; 
    border: 2px solid var(--orange-primary);
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    padding: 0 !important; 
    line-height: 0 !important; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-box i {
    margin: 0 !important;
    padding: 0 !important;
    display: block; 
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.contact-item:hover .icon-box {
    background-color: var(--orange-primary); 
    color: #ffffff; 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3); 
}

.contact-item:hover .icon-box i {
    transform: scale(1.15); 
}

.contact-item p { 
    font-size: 0.9rem; 
    margin-bottom: 2px; 
    color: var(--gray-text); 
}

.contact-item strong { 
    font-size: 1.1rem; 
    color: var(--light-text); 
}

.copyright { 
    text-align: center; 
    padding-top: 2rem; 
    border-top: 1px solid #222; 
    font-size: 0.9rem; 
    color: var(--gray-text); 
}

/* ==========================================================================
   10. UTILIDADES Y ANIMACIONES (WSP FLOTANTE)
   ========================================================================== */
.float-wsp {
    position: fixed; bottom: 30px; right: 30px; background: #25d366;
    width: 65px; height: 65px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 35px; color: white;
    text-decoration: none; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 100; transition: transform 0.3s ease;
}
.float-wsp:hover { transform: scale(1.1); }

.hidden { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.show { opacity: 1; transform: translateY(0); }

.pulse-effect { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.floating-animate { animation: floating 3s ease-in-out infinite; }
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   11. MODO CLARO (THEME LIGHT)
   ========================================================================== */
body.light-theme {
    --dark-bg: #f4f7f6; 
    --dark-secondary: #ffffff; 
    --light-text: #222222; 
    --gray-text: #555555; 
}

body.light-theme .navbar {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body.light-theme .contact-section { border-bottom: 1px solid #e0e0e0; }
body.light-theme .contact-form { border: 1px solid #e0e0e0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    color: var(--light-text);
}

body.light-theme .contact-form input:focus,
body.light-theme .contact-form textarea:focus {
    background-color: #fff;
    border-color: var(--orange-primary);
}

body.light-theme .map-container iframe {
    filter: none; 
}

body.light-theme .faq-item {
    border-bottom: 1px solid #e0e0e0; 
}

body.light-theme .about-box {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* ==========================================================================
   12. RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 968px) {
    .hero-left-text h1 { font-size: 2.8rem; }
    
    .split-container { flex-direction: column; gap: 3rem; text-align: center; }
    .split-container.reverse-layout { flex-direction: column; }
    .benefits-list li { justify-content: center; }
    .footer-content { flex-direction: column; text-align: center; }
    
    /* Centrado de los globos de seguridad en móvil */
    .security-badges {
        justify-content: center;
    }

    .footer-contact { 
        flex-direction: column; 
        gap: 2rem; 
        align-items: flex-start; 
        width: 100%;
        max-width: 300px; 
        margin: 0 auto;  
    }

    .contact-item {
        text-align: left; 
        width: 100%;
    }

    .contact-item div {
        align-items: flex-start; 
    }
    
    .hero-split {
        flex-direction: column; 
        min-height: auto; 
    }
    .hero-left-text {
        width: 100%; 
        padding: 6rem 5% 4rem; 
        text-align: center; 
    }
    .hero-right-image {
        width: 100%; 
        height: 50vh; 
        min-height: 350px;
    }

    .products-section {
        background: var(--dark-secondary);
        padding: 0; 
    }
    .products-section .split-container {
        gap: 0; 
        padding: 0; 
        justify-content: center;
    }
    .products-section .split-text {
        background-color: var(--orange-primary);
        padding: 5rem 5%;
        max-width: 100%;
        padding-right: 5%;
    }
    
    .products-section .split-image-container {
        position: relative;
        width: 100%;
        height: auto;
        padding: 4rem 5%;
        right: auto;
        top: auto;
    }

    .products-section .featured-image {
        max-height: 350px;
    }

    .split-tercios .split-text { 
        padding-left: 0; 
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: 70px; left: 0; width: 100%;
        background-color: var(--dark-bg); flex-direction: column;
        padding: 2rem 0; transform: translateY(-150%); 
        transition: transform 0.3s ease-in-out;
        border-bottom: 2px solid var(--orange-primary);
    }
    .nav-links.active { transform: translateY(0); }
    .menu-toggle { display: block; }
    
    .hero-left-text h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.4rem; }
    
    .contact-form { padding: 2rem; }
    
    .nav-extras {
        margin-left: 0;
        margin-top: 1rem;
    }
    nav:not(.active) .nav-extras {
        display: none;
    }
    .nav-links.active ~ .nav-extras {
        display: flex;
        justify-content: center;
        width: 100%;
        padding-bottom: 1.5rem;
    }
    
    body.light-theme .nav-links {
         background-color: #ffffff;
    }
}