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

:root {
    --primary-green: #00a651;
    --dark-green: #007a3d;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333;
    --text-gray: #666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-top {
    background: var(--primary-green);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.header-top a:hover {
    opacity: 0.8;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 90px;
    width: auto;
}


.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background: white;
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,166,81,0.3);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    overflow: hidden;
    margin-top: 110px;
    background-image: url('images/header.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,166,81,0.5), rgba(0,122,61,0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 50px;
    margin-left: 100px;
    animation: fadeInUp 1s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Why Choose Section */
.why-choose {
    padding: 100px 40px;
    background: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 70px;
    color: var(--dark-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.3s;
    background: white;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.benefit-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    transition: all 0.3s;
}

.benefit-card:hover .benefit-icon {
    background: var(--primary-green);
    transform: rotate(10deg) scale(1.05);
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Services Section */
.services {
    padding: 100px 40px;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-img {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #00a651, #007a3d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.service-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 15px;
}

.btn-secondary {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    color: var(--dark-green);
    transform: translateX(5px);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 80px 40px;
    text-align: center;
}

.cta-banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-white {
    background: white;
    color: var(--primary-green);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: white;
    padding: 80px 40px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--primary-green);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 18px;
}

.social-icon:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Page Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 40px;
    color: var(--primary-green);
}

.info-item h3 {
    margin: 0 0 5px 0;
    color: var(--dark-gray);
}

.info-item p {
    margin: 0;
    color: var(--text-gray);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mission Vision Styles */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.mission-vision-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.mission-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.mission-vision-card i {
    font-size: 50px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.mission-vision-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.mission-vision-card p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
}



.portafolio-gallery {
padding: 80px 0;
background-color: #f8f9fa;
}

.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
max-width: 1400px;
margin: 0 auto;
}

.gallery-item {
position: relative;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
aspect-ratio: 1;
}

.gallery-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img,
.gallery-item video {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.gallery-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 102, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
color: white;
font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
opacity: 1;
}

.video-item video {
pointer-events: none;
}

/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.9);
}

.modal-content {
position: relative;
margin: auto;
display: flex;
align-items: center;
justify-content: center;
width: 90%;
max-width: 1200px;
height: 90vh;
}

.close-modal {
position: absolute;
top: -50px;
right: 0;
color: #fff;
font-size: 40px;
font-weight: bold;
cursor: pointer;
z-index: 2001;
}

.close-modal:hover {
    color: #ff6600;
}

.close-btn-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 3px solid #333;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    z-index: 2002;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-btn-modal:hover {
    background-color: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: scale(1.1);
}

.video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 102, 0, 0.95);
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 3;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Portfolio */
@media screen and (max-width: 768px) {
    .portafolio-hero h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        height: 85vh;
    }

    .close-modal {
        top: -40px;
        font-size: 30px;
    }

    .close-btn-modal {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .video-indicator {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .portafolio-hero {
        height: 30vh;
    }

    .portafolio-hero h1 {
        font-size: 1.5rem;
    }
}





/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero {
        justify-content: center;
    }

    .hero-content {
        margin-left: 20px;
        margin-right: 20px;
        padding: 30px;
        text-align: center;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-form {
        padding: 20px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}