/* --- Variables & Reset --- */
:root {
    /* Colors derived from branding */
    --primary-color: #0A3D2E;
    /* Dark Forest Green */
    --primary-light: #0E4F3C;
    --accent-color: #A4D65E;
    /* Bright Lime Green */
    --accent-hover: #93C450;
    --secondary-color: #005F55;
    /* Teal */

    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(164, 214, 94, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.divider {
    height: 4px;
    width: 80px;
    background-color: var(--accent-color);
    margin: 0 auto 20px;
}

.text-highlight {
    color: var(--accent-color);
}

/* --- Header --- */
.header {
    background-color: var(--primary-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--accent-color);
}

.nav-list .btn-primary {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 70vh;
    /* Reduced height by 30% */
    min-height: 450px;
    padding: 0;
    margin-top: -80px;
    /* Offset for header */
    padding-top: 80px;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    /* Flex to center content vertically */
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 61, 46, 0.3);
    background: linear-gradient(135deg, rgba(10, 61, 46, 0.45) 0%, rgba(0, 95, 85, 0.25) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    color: var(--white);
    padding-top: 60px;
    /* slight visual offset */
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content .highlight {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 550px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 4;
}

/* --- Team Section --- */
.team {
    background-color: var(--white);
    text-align: left;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: left;
}

.member-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
}

.member-image .image-placeholder {
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio */
    background-color: #e0e0e0;
    /* transition: background-color 0.3s ease; */
}

.member-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.member-image img:hover {
    transform: scale(1.08); /* Pequeño zoom in */
}

.team-member h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.member-role {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.member-social {
    display: flex;
    gap: 15px;
}

.member-social a {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.member-social a:hover {
    color: var(--accent-color);
}

.services {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.services .section-header h2 {
    color: var(--primary-color);
}

.services .section-header p {
    color: var(--text-light);
    opacity: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
}

/* --- Clients Section --- */
.clients {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
}

.clients .section-header h2 {
    color: var(--white);
}

.clients .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.client-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Ensure white if transparent */
    opacity: 0.9;
    transition: all 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* --- Clients Carousel Section --- */
.clients-carousel {
    background-color: #f2f2f2;
    color: var(--text-color);
    text-align: center;
    overflow: hidden;
}

.clients-carousel .section-header h2 {
    color: var(--primary-color);
}

.clients-carousel .section-header p {
    color: var(--text-light);
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Mask edges for fade effect (optional) */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Space between logos */
    width: max-content;
    animation: scroll 30s linear infinite;
}

.carousel-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) opacity(0.6);
    transition: all 0.3s ease;
}

.carousel-logo:hover {
    filter: brightness(0) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half way if duplicated once? Need to calculate */
        /* If track contains 3 sets of items, and we want to scroll 1 set width */
        /* Actually simpler: ensure track is wide enough and scroll until the first set is out */
        /* For seamless, typically:
           Content: [A B C D] [A B C D]
           Scroll from 0 to -width(A B C D)
        */
        transform: translateX(-33.33%);
        /* Using 3 sets, scroll 1 set */
    }
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 30px;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info .divider {
    margin-left: 0;
}

.contact-info>p {
    margin-bottom: 40px;
    color: var(--text-light);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.info-item p {
    color: var(--text-light);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Footer --- */
.footer {
    background-color: #05261c;
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-container,
    .about-container,
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .hero-image,
    .about-image {
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: relative;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--primary-color);
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
    }

    .nav.active .nav-list {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    /* Above header */
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    color: white;
    /* Ensure text/icon stays white */
}