:root {
    --primary: #2E7D32;       
    --primary-dark: #1B5E20;  
    --accent: #81C784;        
    --light: #F1F8E9;         
    --white: #ffffff;
    --text-dark: #333333;     
    --text-light: #666666;    
    --footer-bg: #263238;     
    
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { font-family: 'Open Sans', sans-serif; color: var(--dark-text); background-color: var(--bg-light); line-height: 1.6; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    margin-top: 20px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

    /* --- HEADER --- */
        header {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow-sm);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            height: var(--nav-height);
            transition: var(--transition);
            font-family: 'Montserrat', sans-serif;
        }
        header.sticky { height: 70px; box-shadow: var(--shadow-md); }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            padding: 0 20px;
        }

        .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary-green); font-size: 1.2rem; font-family: 'Montserrat', sans-serif; }
        .logo img { height: 80px; width: auto; }

        /* Navegación Desktop */
        .main-nav { display: flex; align-items: center; gap: 30px; height: 100%; font-family: 'Montserrat', sans-serif; }
        .nav-link { font-weight: 600; font-size: 0.95rem; color: var(--dark-text); position: relative; transition: color 0.3s ease; }
        .nav-link:hover { color: var(--primary-dark); }
        .nav-link i { font-size: 0.8rem; margin-left: 5px; transition: transform 0.3s; }
.btn-nav-contact {
    background-color: #2e7d32;;   
    color: white;
    padding: 10px 26px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-block;
    transition: 
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Hover */
.btn-nav-contact:hover {
    background-color: #2e7d32; /* verde más oscuro */
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* SLIDER */
.hero-slider {
    position: relative;
    height: 85vh; 
    width: 100%;
    overflow: hidden;
    background: #000; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05);
    transition: transform 6s linear;
}

.slide.active .slide-bg {
    transform: scale(1); 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: -1;
}

.slide-content {
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
}

        /* Controles del Slider */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--primary);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

    /* SECCIONES */

.neova-section {
    padding: 80px 20px;
    background: #fff;
}

.neova-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* TEXTO */
.neova-text h2 {
    color: #2e7d32;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.neova-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.highlight {
    color: #2e7d32;
    font-weight: 600;
}


/* IMÁGENES */
.neova-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.image-box {
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}


.image-box img {
    width: 100%;
    max-width: 260px;   /* controlás el tamaño real */
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .neova-container {
        grid-template-columns: 1fr;
    }

    .neova-images {
        flex-direction: row;
    }

    .image-box {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .neova-images {
        flex-direction: column;
    }
}

.neova-benefits {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
}

.benefits-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2e7d32;
}

/* GRID */
.benefits-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CARD */
.benefit-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* ICONO */

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(46,125,50,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}


/* TEXTO */
.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}



/* RESPONSIVE */
@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 30px 25px;
    }
}


.productos { padding: 80px 0; }
.productos h2 { text-align: center; margin-bottom: 50px; color: var(--primary); font-size: 2.2rem; }

.tecnologia {
    background-color: var(--primary); color: var(--white); padding: 80px 0; text-align: center;
}
.tecnologia h2 { font-size: 2.2rem; margin-bottom: 20px; }
.tecnologia p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; opacity: 0.9; }

footer {
    background-color: #111; color: #ccc; padding: 60px 0 20px;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.footer-col p { margin-bottom: 15px; font-size: 0.95rem; }
.social-icons a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); border-radius: 50%; margin-right: 10px; transition: var(--transition); }
.social-icons a:hover { background-color: var(--primary); color: var(--white); }
.footer-col ul li { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: flex-start; }
.footer-col ul li i { margin-right: 10px; margin-top: 5px; color: var(--accent); }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.85rem; }

@media (max-width: 768px) {
    .slide-content h2 { font-size: 2rem; }
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white);
        flex-direction: column; padding: 20px 0; box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        transform: translateY(-200%); transition: transform 0.3s ease-in-out; z-index: 999; gap: 0;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { display: block; padding: 15px 30px; width: 100%; }
    .nav-links a::after { display: none; }
            
    .slider-arrow { width: 35px; height: 35px; font-size: 0.9rem; }
    .prev-arrow { left: 10px; }
    .next-arrow { right: 10px; }
}

.productos {
    padding: 80px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.titulo-seccion {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1b1b1b;
}

.productos-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.producto-card {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.producto-img {
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    border-bottom: 1px solid #f0f0f0; 
}

.producto-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #0a5c2b;
}

.producto-frase {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.producto-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
}

.producto-card ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #333;
}

.producto-card ul li::before {
    content: "✔ ";
    color: #0a8f4a;
    font-weight: bold;
}

.btn-producto {
    display: inline-block;
    padding: 12px 28px;
    background-color: #0a8f4a;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-producto:hover {
    background-color: #086b38;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* --- RESPONSIVE OPTIMIZADO --- */
/* Muestra el botón hamburguesa solo en móvil/tablet */
.menu-toggle { 
    display: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: var(--dark-text);
    transition: var(--transition);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- ANIMACIONES SCROLL --- */
.reveal, .reveal-hero { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active, .reveal-hero.active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark-text); }

/* Tablet y Móvil (max-width: 1024px) */
@media (max-width: 1024px) {
    
    /* Mostrar toggle */
    .menu-toggle { display: block; }
    
    /* Contenedor de Navegación */
    .main-nav {
        position: fixed; 
        top: var(--nav-height); /* Empieza justo debajo del header */
        left: 0; 
        width: 100%;
        height: calc(100vh - var(--nav-height)); /* Ocupa el resto de la altura */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        
        flex-direction: column; 
        align-items: center;
        justify-content: flex-start; /* Alineación arriba para permitir scroll */
        padding: 40px 0;
        gap: 20px;
        
        transform: translateX(100%); /* Oculto a la derecha */
        transition: transform 0.4s ease-in-out;
        box-shadow: none;
        overflow-y: auto; /* IMPORTANTE: Permite scroll si el menú es muy alto */
    }

    /* Clase activa (JS) */
    .main-nav.active { 
        transform: translateX(0); 
    }
    
    /* Enlaces del menú */
    .main-nav > li {
        width: 100%;
        text-align: center;
        opacity: 0; /* Animación de entrada */
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    /* Animación escalonada al abrir */
    .main-nav.active > li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-link { 
        font-size: 1.2rem; 
        display: block;
        padding: 15px;
        width: 100%;
    }

    /* --- DROPDOWN MÓVIL --- */
    .has-dropdown { 
        display: flex; 
        flex-direction: column; 
        align-items: center;
        width: 100%;
    }
    
    /* Reset total de estilos desktop para el dropdown */
    .dropdown {
        position: static; /* Ya no flota, ahora ocupa espacio */
        opacity: 1; 
        visibility: visible; 
        transform: none;
        box-shadow: none; 
        border-top: none; 
        padding: 0; 
        
        display: none; /* Oculto por defecto (display none para no ocupar espacio) */
        background: #f4f4f4; /* Un gris muy suave para diferenciar submenú */
        width: 100%; 
        text-align: center;
    }
    
    /* Clase activa del dropdown (agregada por JS) */
    .dropdown.dropdown-active { 
        display: block; 
        animation: fadeIn 0.3s ease;
    }
    
    .dropdown li a { 
        padding: 15px 0; 
        font-size: 1rem;
        border-bottom: 1px solid #e0e0e0;
        color: var(--gray-text);
    }

    /* Botón de Contacto en móvil */
    .btn-nav {
        margin-top: 20px;
        display: inline-block;
        width: auto;
    }

    /* Ajustes generales de texto móvil */
    .hero-content h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
}

/* Móviles Pequeños (max-width: 768px) */
@media (max-width: 768px) {
    section { padding: 50px 20px; }
    
    /* Stackear columnas */
    .empresa-container, 
    .tech-container, 
    .stats-section { 
        flex-direction: column; 
        gap: 40px; 
    }
    
    /* Footer a una columna */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col { align-items: center; }
    .social-icons, .contact-data p, .footer-logo { justify-content: center; }

    /* Ajustes Hero */
    .hero-content h1 { font-size: 1.8rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
}

/* =========================
    FOOTER RESPONSIVE MOBILE
========================= */
@media (max-width: 768px) {

    footer {
        text-align: center;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .footer-col {
        width: 100%;
        max-width: 350px;
    }

    .footer-col ul {
        padding: 0;
    }

    .footer-col ul li {
        justify-content: center;
    }

    /* Iconos sociales */
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    /* Bloque contacto */
    .footer-contact li {
        display: flex;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    /* Reducir el espaciado general de las secciones */
    section { 
        padding: 50px 20px; 
    }

    /* Ajustar el contenedor "Tecnología" que tiene mucho padding interno */
    .tech-container {
        padding: 30px 20px; /* Originalmente tenía 50px */
        border-radius: 20px;
    }
    
    /* Reducir tamaño de títulos */
    .section-title {
        font-size: 1.8rem; /* Más pequeño para que no ocupe 3 líneas */
    }
    
    .hero-content h1 {
        font-size: 2rem; /* Título principal más controlado */
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }
}