/* Variables y Reseteo */
:root {
    --primary-green: #60b431;
    --primary-green-dark: #4d9225;
    --dark-bg: #050505; 
    --darker-bg: #000000;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #222222;
    --text-gray: #dddddd;
    --form-bg: #0a0a0a;
    --form-border: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-green { color: var(--primary-green); }
.text-left { text-align: left; }

/* LOGO */
.logo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.logo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    color: var(--white);
    margin: 0;
}
.logo-x {
    position: relative;
    display: inline-block;
    color: var(--white);
}
.logo-x::after {
    content: 'X';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-green);
    clip-path: polygon(0 50%, 50% 50%, 50% 100%, 0 100%);
}
.logo-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--text-gray);
    margin-top: 2px;
}

/* Header Fijo */
header {
    background-color: var(--darker-bg);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #111;
    transition: box-shadow 0.3s ease;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Menú de escritorio */
nav ul { display: flex; gap: 30px; }
nav ul li a {
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    transition: color 0.3s ease; position: relative; padding-bottom: 5px;
}
nav ul li a:hover, nav ul li a.active { color: var(--primary-green); }
nav ul li a.active { border-bottom: 2px solid var(--primary-green); }

/* Botón hamburguesa — oculto en escritorio */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Animación X al abrir */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sistema de Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: 5px; font-weight: 700; text-align: center; cursor: pointer;
    border: none; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn:active { transform: scale(0.92); }

.btn-primary { background-color: var(--primary-green); color: #fff; font-size: 18px; padding: 15px 30px; display: inline-flex; font-weight: 900;}
.btn-primary:hover { background-color: var(--primary-green-dark); box-shadow: 0 8px 20px rgba(96, 180, 49, 0.3); }

.btn-outline-green { border: 2px solid var(--primary-green); color: var(--primary-green); background: transparent; padding: 12px 30px; font-size: 16px; font-weight: bold; }
.btn-outline-green:hover { background: var(--primary-green); color: #fff; }

.btn-card { display: block; background-color: var(--primary-green); color: #fff; width: 100%; padding: 12px; font-size: 15px; margin-top: auto; font-weight: bold;}
.btn-card:hover { background-color: var(--primary-green-dark); }

/* Botón flotante WhatsApp */
.float-wsp {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50%;
    text-align: center; font-size: 35px; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.float-wsp:hover { transform: scale(1.1); background-color: #20b858; }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: 1s ease-out; }
.reveal-up { opacity: 0; transform: scale(0.9); transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.active-reveal { opacity: 1 !important; transform: none !important; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(96, 180, 49, 0.5); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(96, 180, 49, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(96, 180, 49, 0); }
}
.pulse-effect { animation: pulse 2.5s infinite; }
.pulse-effect:active { animation: none; transform: scale(0.92); }

/* Hero Section */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1587293852726-70cdb56c2866?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 80px 0; color: var(--white); min-height: 80vh; display: flex; align-items: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); }
.hero-container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.hero-content { max-width: 55%; }
.hero-content h2 { font-size: 50px; line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 18px; font-weight: 500; margin-bottom: 30px; color: #eee;}
.hero-features { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; width: calc(50% - 10px); }
.feature-item i { color: var(--primary-green); font-size: 24px; }
.hero-response-time { margin-top: 15px; font-size: 14px; color: #bbb; display: flex; align-items: center; gap: 8px; }
.hero-image img { max-width: 450px; border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,0.8); transform: rotate(2deg); }

/* Banners */
.alert-banner { background-color: var(--white); padding: 30px 0; border-bottom: 1px solid #eee; }
.alert-container { display: flex; justify-content: space-between; align-items: center; }
.alert-text { display: flex; align-items: center; gap: 20px; }
.alert-icon i { font-size: 40px; color: var(--text-dark); }
.alert-text h3 { font-size: 28px; margin: 0; }
.alert-text p { font-size: 16px; font-weight: 500; color: #555; margin: 0;}

.trust-banner { background-color: var(--primary-green); color: #fff; text-align: center; padding: 25px 0; }
.trust-container { display: flex; align-items: center; justify-content: center; gap: 15px; }
.trust-banner h2 { font-size: 24px; margin: 0; font-weight: 900;}
.trust-banner i { font-size: 30px; }

/* Sobre Nosotros */
.about-section { padding: 80px 0; background-color: var(--white); }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.section-title { font-size: 36px; margin-bottom: 15px; }
.about-subtitle { font-size: 20px; color: #555; margin-bottom: 20px; font-family: 'Roboto', sans-serif; font-weight: 500; text-transform: none; }
.about-text p { margin-bottom: 15px; font-size: 16px; color: #444; }
.stats-grid { display: flex; gap: 30px; margin-top: 30px; }
.stat-box { background: var(--light-bg); padding: 20px; border-left: 5px solid var(--primary-green); border-radius: 5px; flex: 1;}
.stat-number { display: block; font-family: 'Oswald', sans-serif; font-size: 40px; color: var(--primary-green); line-height: 1; font-weight: 700; margin-bottom: 5px;}
.stat-text { font-size: 14px; font-weight: bold; color: #333; line-height: 1.2; display: block;}
.about-images img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

/* Products */
.products { background-color: var(--light-bg); padding: 80px 0; text-align: center; }
.section-subtitle { max-width: 600px; margin: 0 auto 40px; color: #555; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
    background: var(--white); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative; transition: transform 0.3s; display: flex; flex-direction: column;
    padding: 20px; padding-top: 0; border: 1px solid #eaeaea;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.product-card img { width: calc(100% + 40px); margin-left: -20px; height: 220px; object-fit: cover; margin-bottom: 40px; border-radius: 10px 10px 0 0; }
.card-icon {
    position: absolute; top: 195px; left: 50%; transform: translateX(-50%);
    background: var(--dark-bg); color: var(--primary-green); width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; border: 4px solid var(--white);
}
.product-card h3 { font-size: 18px; margin-bottom: 10px; }
.product-card p { font-size: 13px; color: #666; margin-bottom: 25px; flex-grow: 1; }

/* ¿Por qué elegirnos? */
.why-choose-us { padding: 80px 0; background-color: var(--white); text-align: center; }
.features-grid-light { display: flex; justify-content: center; flex-wrap: wrap; gap: 50px; margin: 40px 0 50px 0; }
.feat-item { display: flex; align-items: center; gap: 15px; text-align: left; font-weight: 700; font-size: 15px; }
.feat-item i { font-size: 35px; color: var(--text-dark); }

.benefits-card-dark {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-radius: 15px;
    margin: 0 auto 50px auto;
    max-width: 1100px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.benefit-item-dark { display: flex; align-items: center; gap: 20px; flex: 1; text-align: left; }
.benefit-item-dark i { font-size: 50px; }
.benefit-item-dark h4 { font-size: 20px; margin-bottom: 5px; }
.benefit-item-dark p { font-size: 14px; color: #aaa; margin: 0; }

.gallery-cards { 
    display: flex; 
    justify-content: space-between;
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
    gap: 20px; 
}
.gallery-cards img { 
    width: calc(25% - 15px); 
    height: 220px; 
    object-fit: cover; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-cards img:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Pre-Footer */
.pre-footer { background-color: var(--darker-bg); padding: 50px 0; border-bottom: 1px solid #333; }
.pre-footer-container { display: flex; justify-content: space-between; align-items: center; }
.pre-footer .text h2 { font-size: 32px; color: var(--white); margin: 0; line-height: 1.2; }

/* Contacto Corporativo */
.contact-corporate { background-color: var(--dark-bg); padding: 80px 0; color: var(--white); }
.corporate-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.corporate-info h2 { font-size: 55px; line-height: 1; margin-bottom: 30px; letter-spacing: 1px;}
.corporate-list { margin-bottom: 30px; }
.corporate-list li { display: flex; align-items: center; gap: 15px; font-size: 18px; margin-bottom: 20px; font-weight: 500;}
.corporate-list i { color: var(--primary-green); font-size: 22px; width: 25px; text-align: center;}
.map-wrapper iframe { border-radius: 8px; filter: grayscale(20%) contrast(1.1); }

/* Formulario */
.corporate-form { display: flex; flex-direction: column; gap: 20px; margin-top: 15px;}
.corporate-form input, .corporate-form textarea {
    background-color: var(--form-bg);
    border: 1px solid var(--form-border);
    color: var(--white);
    padding: 18px 20px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 5px;
    width: 100%;
}
.corporate-form input::placeholder, .corporate-form textarea::placeholder { color: #555; }
.corporate-form input:focus, .corporate-form textarea:focus { border-color: var(--primary-green); }

.btn-submit-glow {
    background-color: var(--primary-green); color: #fff; font-family: 'Oswald', sans-serif;
    font-size: 18px; font-weight: 700; letter-spacing: 2px; padding: 20px;
    border: none; border-radius: 5px; cursor: pointer; text-transform: uppercase;
    box-shadow: 0 0 25px rgba(96, 180, 49, 0.25); transition: all 0.3s ease; width: 100%;
}
.btn-submit-glow:hover { box-shadow: 0 0 35px rgba(96, 180, 49, 0.4); background-color: var(--primary-green-dark); }
.btn-submit-glow:active { transform: scale(0.95); }

/* Footer caja animada */
.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-box-anim {
    width: 80px;
    flex-shrink: 0;
}
.box-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer principal */
footer { background-color: var(--darker-bg); color: var(--white); padding: 50px 0 20px; border-top: 1px solid #111;}
.footer-grid { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.footer-desc { max-width: 500px; text-align: right;}
.footer-desc p { font-size: 13px; color: #888;}
.footer-bottom { text-align: center; font-size: 13px; color: #444; border-top: 1px solid #111; padding-top: 20px; }

/* =====================================================
   MODAL DE CONFIRMACIÓN
   ===================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.modal-active {
    display: flex;
    animation: fadeInOverlay 0.3s ease;
}
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-top: 4px solid var(--primary-green);
    border-radius: 12px;
    padding: 50px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    animation: slideUpModal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(96, 180, 49, 0.08);
}
@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
    width: 72px;
    height: 72px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px rgba(96, 180, 49, 0.4);
}
.modal-icon i {
    font-size: 32px;
    color: #fff;
}

.modal-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.modal-box p {
    font-size: 16px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 35px;
}

.modal-close-btn {
    background-color: var(--primary-green);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 14px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.modal-close-btn:hover { background-color: var(--primary-green-dark); }
.modal-close-btn:active { transform: scale(0.95); }

/* =====================================================
   RESPONSIVE — TABLET (≤ 992px)
   ===================================================== */
@media (max-width: 992px) {

    /* Header y menú hamburguesa */
    .hamburger { display: flex; }

    nav#main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--darker-bg);
        border-top: 1px solid #222;
        z-index: 999;
    }
    nav#main-nav.nav-open { display: block; }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    nav ul li a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid #111;
    }
    nav ul li:last-child a { border-bottom: none; }

    /* Scroll padding para el header con menú abierto */
    html { scroll-padding-top: 70px; }

    /* Hero */
    .hero { min-height: auto; padding: 60px 0; }
    .hero-container { flex-direction: column; text-align: center; gap: 0; }
    .hero-content { max-width: 100%; }
    .hero-content h2 { font-size: 36px; }
    .hero-content p { font-size: 15px; }
    .hero-features { justify-content: center; }
    .feature-item { width: calc(50% - 10px); justify-content: flex-start; }
    .hero-image { display: none; }

    /* Alert banner */
    .alert-container { flex-direction: column; text-align: center; gap: 20px; }
    .alert-text { flex-direction: column; text-align: center; }
    .alert-text h3 { font-size: 20px; }

    /* Trust banner */
    .trust-banner h2 { font-size: 18px; }

    /* Nosotros */
    .about-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .section-title.text-left { text-align: center; }
    .stats-grid { justify-content: center; }
    .about-images { display: none; }

    /* Productos */
    .product-grid { grid-template-columns: repeat(2, 1fr); }

    /* ¿Por qué elegirnos? */
    .features-grid-light { gap: 30px; }
    .benefits-card-dark { flex-direction: column; text-align: center; padding: 30px; }
    .benefit-item-dark { flex-direction: column; text-align: center; }

    /* Galería */
    .gallery-cards { flex-wrap: wrap; }
    .gallery-cards img { width: calc(50% - 10px); margin-bottom: 10px;}

    /* Pre-footer */
    .pre-footer-container { flex-direction: column; text-align: center; gap: 30px; }
    .pre-footer .text h2 { font-size: 24px; }

    /* Contacto */
    .corporate-container { grid-template-columns: 1fr; gap: 40px; }
    .corporate-info h2 { font-size: 40px; }
    .corporate-list li { font-size: 15px; }

    /* Footer */
    .footer-grid { flex-direction: column; text-align: center; gap: 20px;}
    .footer-desc { text-align: center; }
}

/* =====================================================
   RESPONSIVE — MÓVIL (≤ 600px)
   ===================================================== */
@media (max-width: 600px) {

    /* Hero */
    .hero { padding: 50px 0; }
    .hero-content h2 { font-size: 28px; }
    .hero-content p { font-size: 14px; }
    .hero-features { gap: 12px; padding-left: 20px; }
    .feature-item { width: 100%; font-size: 13px; }
    .feature-item i { font-size: 20px; }
    .btn-primary { font-size: 15px; padding: 14px 20px; }
    .hero-response-time { padding-left: 20px; }

    /* Alert */
    .alert-text h3 { font-size: 17px; }
    .alert-text p { font-size: 13px; }

    /* Trust */
    .trust-container { flex-direction: column; gap: 8px; }
    .trust-banner h2 { font-size: 15px; }

    /* Nosotros */
    .stats-grid { flex-direction: column; }
    .section-title { font-size: 28px; }
    .about-subtitle { font-size: 16px; }

    /* Productos */
    .product-grid { grid-template-columns: 1fr; }

    /* ¿Por qué elegirnos? */
    .features-grid-light { gap: 20px; justify-content: flex-start; padding: 0 10px; }
    .feat-item { width: 100%; }
    .benefit-item-dark i { font-size: 36px; }
    .benefit-item-dark h4 { font-size: 16px; }
    .gallery-cards img { width: 100%; }

    /* Pre-footer */
    .pre-footer .text h2 { font-size: 20px; }

    /* Contacto */
    .corporate-info h2 { font-size: 32px; }
    .corporate-list li { font-size: 14px; }

    /* Float WSP */
    .float-wsp { width: 50px; height: 50px; font-size: 28px; bottom: 20px; right: 20px; }

    /* Footer */
    .footer-desc p { font-size: 12px; }
}