/* Colors */
:root {
    --primary-color: #3a8d65;
    --dark-color: #131414;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --white: #ffffff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

/* Hero Logo & Plane Animation */
.hero-logo {
    max-width: 95%;
    width: 450px; /* Reduced width slightly since it has no white padding now */
    height: auto;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    /* mix-blend-mode removed, using pure PNG transparency */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1)); /* Optional: adds a nice soft shadow to the PNG text */
}

.plane-wrapper {
    position: absolute;
    z-index: 3;
    animation: flyPlane 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    display: flex;
    align-items: center;
    pointer-events: none; /* So it doesn't block clicks */
}

.plane-icon {
    font-size: 4rem;
    color: var(--primary-color);
    transform: rotate(15deg);
    text-shadow: 3px 3px 10px rgba(0,0,0,0.4);
}

.plane-trail {
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
    border-radius: 5px;
    margin-left: -20px;
}

@keyframes flyPlane {
    0% {
        top: 90%;
        left: -15%;
        transform: scale(0.6) rotate(-15deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    30% {
        top: 60%;
        left: 20%;
        transform: scale(1) rotate(-20deg);
    }
    50% {
        top: 30%;
        left: 50%;
        transform: scale(1.3) rotate(-5deg);
    }
    70% {
        top: 15%;
        left: 80%;
        transform: scale(1) rotate(10deg);
        opacity: 1;
    }
    100% {
        top: -10%;
        left: 120%;
        transform: scale(0.6) rotate(20deg);
        opacity: 0;
    }
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    max-height: 50px; /* Reduced from 70px because it's tightly cropped now */
    width: auto;
    /* mix-blend-mode removed */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Para que no se rompa si no hay espacio */
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('Z. OPCIONAL 1.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden; /* Prevent plane animation from causing scrollbars */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75); /* Light overlay to blend */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #2b6d4e;
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 80px 0;
    overflow: hidden; /* Evita que las animaciones AOS (fade-left/right) ensanchen la página en móviles */
}

.bg-light {
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-top: 20px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mission & Vision */
.mision-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 20px;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.service-card p {
    padding: 0 15px;
    color: #555;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}
.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}
.contact-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.contact-socials a {
    color: var(--dark-color);
    font-size: 1.8rem;
    transition: color 0.3s;
}
.contact-socials a:hover {
    color: var(--primary-color);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-form button {
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation: zoom 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    object-fit: contain;
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.close-lightbox:hover, .close-lightbox:focus {
    color: var(--primary-color);
    text-decoration: none;
}
@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Banner Bandera */
.bandera-container {
    width: 100%;
    background-color: var(--white);
    text-align: center;
    padding: 60px 20px;
    overflow: hidden; /* Fix AOS animations overflow */
}
.bandera-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}
.bandera-img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo {
    max-height: 80px;
    width: auto;
    /* Aplicamos un filtro para que el logo (que es negro y verde) resalte sobre el fondo oscuro del footer.
       Usar brillo invertido o una sombra clara, o fondo blanco redondeado. */
    background-color: white;
    padding: 15px;
    border-radius: 10px;
}

.footer-text h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid, .mision-vision-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Navbar Responsivo - Hamburger */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-logo {
        max-height: 40px;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 0;
    }
    
    .nav-links.active {
        max-height: 400px;
        padding: 20px 0;
    }
    
    /* Espacio extra en el hero por si el navbar crece */
    .hero {
        padding-top: 120px;
    }
    
    /* Logo en el inicio responsivo */
    .hero-logo {
        width: 100%;
        max-width: 320px;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Avión más pequeño en móvil */
    .plane-icon {
        font-size: 3rem;
    }
}
