:root {
    --green-dark: #235C3D;
    --green-light: #6CA976;
    --yellow: #FFD700;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --bg-light: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Archivo', sans-serif; color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.navbar__logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
}

.navbar__menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.navbar__item-dropdown {
    position: relative;
}

.navbar__link-dropdown {
    color: var(--green-light) !important;
}

.navbar__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--green-light);
    padding: 10px 0;
    border-radius: 0;
    min-width: 220px;
    margin-top: 0;
}

.navbar__item-dropdown:hover .navbar__dropdown {
    display: flex;
    flex-direction: column;
}

.navbar__item-dropdown.is-open .navbar__dropdown {
    display: flex;
    flex-direction: column;
}

.navbar__dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--white) !important;
    text-decoration: none;
}

.navbar__dropdown a:hover {
    background: var(--green-dark);
}

.navbar__cta {
    background: var(--green-dark);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.navbar__cta:hover {
    background: var(--yellow);
    color: var(--green-dark);
}

/* HERO */
.hero {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* CTA móvil del inicio: permanece oculto en escritorio. */
.hero__cta-mobile {
    display: none;

}


/* TU ALIADO FINANCIERO */
.section-ally {
    padding: 60px 20px;
    text-align: center;
    background: var(--white);
}

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

.section-ally p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.features span {
    color: var(--green-light);
    font-weight: 600;
}

/* CARRUSEL */
.section-carousel {
    padding: 0;
    background: var(--bg-light);
}

.carousel {
    max-width: 100%;
    width: 100%;
    height: 850px; 
    position: relative;
    overflow: hidden;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;  
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-img--active {
    opacity: 1;
}

/* FINANCIAMIENTO */
.section-financing {
    padding: 60px 20px;
    text-align: center;
    background: var(--white);
}

.section-financing h2 {
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 20px;
}

.section-financing > p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.financing-list {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: middle;
    color: var(--text-light);
}

.financing-list div {
    margin: 15px 0;
    color: var(--green-light);
    font-weight: 600;
}

/* CARDS SECTION */
.section-cards {
    padding: 60px 20px;
    background: var(--white);
}

.cards-title {
    text-align: center;
    color: var(--green-light);
    font-size: 1.8rem;
    margin-bottom: 50px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
}

.card:hover {
    border-color: var(--green-dark);
    box-shadow: 0 8px 24px rgba(35, 92, 61, 0.15);
    transform: translateY(-5px);
}

.card__icon {
    width: 80px;
    height: 80px;
    background-color: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--green-dark);
}

.card__icon svg {
    width: 40px;
    height: 40px;
}

.card__title {
    color: var(--green-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card__text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .cards {
        grid-template-columns: 1fr;
    }
    
    .cards-title {
        font-size: 1.4rem;
    }
}

/* SOLUCIONES (VERDE) */
.section-solutions {
    background: var(--green-dark);
    color: var(--white);
    padding: 60px 20px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.solutions-content h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2rem;
}

.solutions-content > p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.prestamos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prestamo-item {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    overflow: hidden;
}

.prestamo-btn {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prestamo-btn:hover {
    color: var(--yellow);
}

.prestamo-btn:hover .arrow {
    color: var(--yellow);
}

.arrow {
    transition: 0.3s;
}

.prestamo-btn.active {
    color: var(--yellow);
}

.prestamo-btn.active .arrow {
    color: var(--yellow);
    transform: rotate(90deg);
}

.prestamo-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
    background: rgba(0,0,0,0.1);
    color: rgba(255,255,255,0.9);
}

.prestamo-content.active {
    max-height: 200px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.prestamo-content p {
    margin-bottom: 15px;
    color: inherit;
}

.solutions-grid img {
    width: 90%;
    border-radius: 8px;
}

/* BOTÓN AMARILLO-NEGRO */
.btn-yellow-black {
    background: var(--yellow);
    color: var(--green-dark);
    font-weight: 600;
    padding: 10px 20px;
    display: inline-flex;
}

.btn-yellow-black:hover {
    background: var(--white);
    color: var(--green-dark);
}

/* GALERÍA FINAL */
.section-gallery {
    position: relative;
    height: 300px;  /* Un poco más baja */
    overflow: hidden;
}

.section-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);  /* ← MÁS TRANSPARENTE (era 0.3) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-overlay h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);  /* ← SOMBRA DE TEXTO */
}

/* BOTONES */
.btn {
    display: inline-flex;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    align-items: center;
    gap: 8px;
}

.btn-green {
    background: var(--green-dark);
    color: var(--white);
}

.btn-green:hover {
    background: var(--yellow);
    color: var(--green-dark);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--green-dark);
    font-weight: 600;
}

.btn-yellow:hover {
    background: #fff;
    transform: scale(1.05);
}

/* FOOTER */
.footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 50px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--yellow);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
    line-height: 1.35;
}

.footer-list li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
}

.footer-list a {
    display: inline;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-info img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-socials {
    text-align: center;
}

.footer-socials a {
    display: inline-block;
}

.footer-socials img {
    width: 40px;
    margin: 0 10px;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--yellow);
}


/* RESPONSIVE */
@media (max-width: 768px) {
    /* Inicio móvil: CTA visible debajo de la imagen principal. */
    .hero--home {
        height: auto;
        background: var(--bg-light);
        padding-bottom: 24px;
    }

    .hero--home img {
        display: block;
        height: auto;
    }

    .hero--home .hero__cta-mobile {
        display: block;
        width: fit-content;
        margin: 24px auto 0;
        background: var(--green-dark);
        color: var(--white);
        padding: 12px 24px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        white-space: nowrap;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    }

    .hero--home .hero__cta-mobile:hover {
        background: var(--yellow);
        color: var(--green-dark);
        transform: scale(1.03);
    }
    
    .carousel {
    height: auto;
    aspect-ratio: 1.62;
}

.carousel-img {
    object-fit: contain;
    object-position: center;
}

.solutions-grid > .solutions-image {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

    

    .navbar {
        justify-content: flex-start;
        gap: 20px;
        padding: 10px 20px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .navbar::-webkit-scrollbar {
        display: none;
    }

    .navbar__logo {
        height: 45px;
    }

    .navbar__menu {
        flex: 0 0 auto;
        gap: 20px;
        white-space: nowrap;
    }

    .navbar__menu a {
        display: block;
    }

    .navbar__cta {
        flex: 0 0 auto;
        padding: 9px 18px;
        white-space: nowrap;
    }

    .navbar__dropdown {
        position: fixed;
        z-index: 10;
        margin-top: 0;
    }

    .cards, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid { grid-template-columns: 1fr; }
    .gallery-overlay h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .cards, .footer-grid { grid-template-columns: 1fr; }
    .section-ally h2 { font-size: 1.8rem; }
    .features { flex-direction: column; gap: 10px; }
}


