/* --- VARIABLES Y CONFIGURACIÓN BASE --- */
:root {
    --primary-color: #7cb342;
    --primary-hover: #689f38;
    --dark-green: #1b3a1e;
    --light-bg: #f9fbf7;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- SITE HEADER / NAVBAR --- */
.site-header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* El botón Hamburguesa permanece invisible en PC de forma nativa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #1b3a1e;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Menú de navegación en Escritorio */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-green);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--primary-color);
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--dark-green);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.phone-btn:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.site-footer {
    background-color: #112513;
    color: #cbd5e1;
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, #244626 0%, #112513 100%), url('https://abonovivo.com/photo-1500382017468-9049fed747ef.jpg?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: var(--white);
    padding: 80px 0 140px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.hero-feature-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.hero-feature-item p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-green);
}

.hero-images {
    position: relative;
    display: flex;
    justify-content: center;
}

.hands-soil-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.floating-badge {
    position: absolute;
    top: -20px;
    right: -10px;
    background-color: var(--white);
    padding: 15px 25px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    text-align: center;
}

.floating-badge .brand-name { font-size: 1rem; }
.floating-badge .brand-sub { font-size: 0.6rem; }

.hero-curve-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-curve-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

/* --- SOBRE NOSOTROS SECTION --- */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark-green);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.grid-card {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f0f4ee;
}

.card-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.grid-card h4 {
    font-size: 1rem;
    color: var(--dark-green);
    font-weight: 700;
    margin-bottom: 6px;
}

.grid-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Video Card */
.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    height: 50%;
    width: 75%;
    min-height: 95px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, background-color 0.3s;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-color);
    color: var(--white);
}

/* Modales de Video */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.modal-video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover { color: #ff4a4a; }

/* --- RESPONSIVE / MEDIA QUERIES --- */

/* Ajustes para Tablets / Modos Escritorio en móviles (Anchos intermedios de pantalla) */
@media (max-width: 992px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-images { order: -1; margin-bottom: 20px; }
    
    /* Compacta el menú horizontal para que no se rompa */
    .main-nav ul { gap: 15px; }
    .phone-btn { padding: 8px 15px; font-size: 0.85rem; }
}

/* MÓVILES NATURALEZA (Pantalla menor de 768px) */
@media (max-width: 768px) 
{
    .logo-img {
        width: 60px;
        height: 60px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 9999;
    }

    .site-header, .header-container {
        overflow: visible !important;
    }

    /* Transformación estricta de navegación horizontal a menú desplegable */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 1000;
    }

        .main-nav.active {
            max-height: 350px;
        }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        align-items: center;
        gap: 8px;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
        color: #1b3a1e;
        font-weight: 700;
        text-decoration: none;
        font-size: 14px;
    }

    @media (max-width: 576px) {
        .about-grid {
            grid-template-columns: 1fr;
        }

        .hero-actions {
            flex-direction: column;
        }

        .btn {
            width: 100%;
            justify-content: center;
        }

        .phone-btn {
            display: inline-flex;
            padding: 10px;
            gap: 0;
            font-size: 0;
        }

        .phone-btn i {
            font-size: 1rem;
        }
    }

    /* Animaciones del botón hamburguesa */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

