﻿/* Grupo Page Specific Styles */

/* Two Column Sections */
.two-column-section {
    padding: 80px 0;
    background: var(--color-beige);
}

.two-column-section.section-tight {
    padding-bottom: 24px;
}

.two-column-section:nth-child(even) {
    background: var(--color-cream);
}

.two-column-section.reverse {
    background: var(--color-carbon);
    color: var(--color-beige);
}

.two-column-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-column-section.reverse .two-column-content {
    direction: rtl;
}

.two-column-section.reverse .column-text,
.two-column-section.reverse .column-image {
    direction: ltr;
}

.column-text h2 {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 30px;
    font-weight: 700;
}

.column-text h2 .subtitle-line {
    display: block;
    font-size: 1.8rem;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.two-column-section.reverse .column-text h2 {
    color: var(--color-beige);
}

.column-text h3 {
    font-size: 1.5rem;
    color: var(--color-green);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.two-column-section.reverse .column-text h3 {
    color: var(--color-gold);
}

.column-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(47, 36, 23, 0.75);
}

.two-column-section.reverse .column-text p {
    color: rgba(253, 247, 235, 0.85);
}

/* Image Curtain Effect */
.column-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-curtain-effect {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 10px;
    cursor: default;
}

.image-curtain-effect::after {
    content: '⇆ Desliza';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.3s ease;
}

.image-curtain-effect:hover::after,
.image-curtain-effect:active::after {
    opacity: 0.3;
}

.image-curtain-effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-curtain-effect video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#historia .historia-video {
    transform: scale(1.3);
    transform-origin: center center;
}

.image-curtain-effect .base-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-curtain-effect .overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 100% 0 0);
}

.image-curtain-effect .curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    transform: translateX(0);
    z-index: 10;
    box-shadow: 0 0 30px rgba(181, 145, 94, 0.9);
    pointer-events: none;
}

/* Disable sweep effect only for specific sections */
#proposito-valores .image-curtain-effect::after,
#proposito-valores .image-curtain-effect .overlay-image,
#proposito-valores .image-curtain-effect .curtain,
#equipo-talento .image-curtain-effect::after,
#equipo-talento .image-curtain-effect .overlay-image,
#equipo-talento .image-curtain-effect .curtain {
    display: none !important;
}

#proposito-valores .image-curtain-effect,
#equipo-talento .image-curtain-effect {
    cursor: default;
}

/* Experience Stats */
.experience-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.stat-box {
    text-align: left;
    padding: 20px;
    background: linear-gradient(135deg, rgba(80, 32, 51, 0.9), rgba(47, 36, 23, 0.9));
    border-radius: 10px;
    color: var(--color-beige);
    box-shadow: 0 15px 40px rgba(47, 36, 23, 0.35);
}

.stat-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.stat-prefix {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(253, 247, 235, 0.8);
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-beige);
}

.stat-label-inline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-beige);
}

.stat-box p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--color-beige) !important;
    font-weight: 600;
}

/* LATAM Presence Section */
.latam-presence-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(47, 36, 23, 0.97), rgba(86, 110, 43, 0.85));
    color: var(--color-beige);
    overflow: hidden;
}

/* Team by country section */
.team-countries-section {
    padding: 56px 0;
    background: #f3eee3;
}

.team-countries-section,
.team-countries-section h2,
.team-countries-section h3,
.team-countries-section p,
.team-countries-section li,
.team-country-tab,
.team-country-thumb,
.team-country-thumb span {
    font-family: 'Montserrat', sans-serif;
}

.team-countries-header {
    max-width: 780px;
    margin: 0 auto 28px;
    text-align: center;
}

.team-countries-header h2 {
    font-size: 2.4rem;
    color: var(--color-carbon);
    margin-bottom: 12px;
}

.team-countries-header p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(47, 36, 23, 0.74);
}

.team-country-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.team-country-tab {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(47, 36, 23, 0.2);
    background: #ffffff;
    color: var(--color-carbon);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.team-country-tab:hover {
    border-color: var(--color-gold);
    transform: translateY(-1px);
}

.team-country-tab.is-active {
    background: var(--color-carbon);
    color: var(--color-beige);
    border-color: var(--color-carbon);
    box-shadow: 0 10px 18px rgba(47, 36, 23, 0.16);
}

.team-country-panel {
    display: none;
}

.team-country-panel.is-active {
    display: block;
}

.team-country-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: start;
    padding: 26px;
    border-radius: 18px;
    border: 1px solid rgba(47, 36, 23, 0.1);
    background: #ffffff;
}

.team-country-copy h3 {
    margin: 0 0 12px;
    font-size: 1.9rem;
    color: var(--color-carbon);
}

.team-country-copy p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(47, 36, 23, 0.75);
}

.team-country-highlights {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.team-country-highlights li {
    position: relative;
    padding-left: 16px;
    color: rgba(47, 36, 23, 0.8);
    line-height: 1.55;
}

.team-country-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-gold);
}

.team-country-media {
    width: 100%;
    max-width: 820px;
    justify-self: end;
}

.team-country-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: clamp(220px, 30vw, 360px);
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(47, 36, 23, 0.16);
}

.team-country-media img.team-image--chile {
    object-position: center 24%;
}

.team-country-thumbs {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.team-country-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(47, 36, 23, 0.14);
    background: #ffffff;
    padding: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.team-country-thumb:hover {
    border-color: var(--color-gold);
    transform: translateY(-1px);
}

.team-country-thumb.is-active {
    border-color: var(--color-carbon);
    box-shadow: 0 8px 18px rgba(47, 36, 23, 0.12);
}

.team-country-thumb img {
    width: 84px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.team-country-thumb span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-carbon);
}
.latam-presence-section h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--color-beige);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(253, 247, 235, 0.85);
    margin-bottom: 60px;
}

/* Static Countries Grid */
.countries-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.country-flag-item {
    text-align: center;
    padding: 20px;
    background: transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.country-flag-item:link,
.country-flag-item:visited,
.country-flag-item:hover,
.country-flag-item:active {
    text-decoration: none !important;
    color: inherit;
}

.country-flag-item:hover {
    border-color: var(--color-gold);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(181, 145, 94, 0.4);
}

.country-flag-item:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

.country-flag-large {
    margin-bottom: 25px;
}

.country-flag-large img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.country-flag-item h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: 0;
    text-decoration: none !important;
}

.latam-carousel .swiper-button-prev,
.latam-carousel .swiper-button-next {
    color: var(--color-gold) !important;
}

.latam-carousel .swiper-pagination-bullet {
    background: rgba(253, 247, 235, 0.45) !important;
}

.latam-carousel .swiper-pagination-bullet-active {
    background: var(--color-gold) !important;
}

/* Clients Showcase Section */
.clients-showcase-section {
    padding: 80px 0;
    background: var(--color-cream);
}

.clients-showcase-section h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--color-carbon);
    margin-bottom: 20px;
}

.clients-showcase-section .section-subtitle {
    color: rgba(47, 36, 23, 0.7);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.client-logo-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.client-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.client-logo-box img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo-box:hover img {
    filter: grayscale(0%);
}


/* CTA Asesoría Section */
.cta-asesoria-section {
    padding: 100px 0;
    background: linear-gradient(315deg, rgba(86, 110, 43, 0.65), rgba(47, 36, 23, 0.95));
    text-align: center;
    color: var(--color-beige);
}

.cta-asesoria-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-asesoria-section p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: rgba(253, 247, 235, 0.85);
}

.whatsapp-countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.whatsapp-country-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--color-gold);
    color: var(--color-beige);
    padding: 20px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.whatsapp-country-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    background: rgba(181, 145, 94, 0.95);
    color: var(--color-beige);
}

.whatsapp-country-btn img {
    width: 30px;
    height: auto;
    border-radius: 3px;
}

.whatsapp-country-btn i {
    font-size: 1.5rem;
    color: var(--color-beige);
}

.whatsapp-country-btn:hover i {
    color: var(--color-beige);
}

.whatsapp-country {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.whatsapp-country-btn--dropdown {
    width: 100%;
    justify-content: space-between;
}

.whatsapp-country-btn--dropdown span small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
}

.whatsapp-country-btn__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-beige);
    border-bottom: 2px solid var(--color-beige);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.whatsapp-country-btn[aria-expanded="true"] .whatsapp-country-btn__chevron {
    transform: rotate(-135deg);
}

.whatsapp-country-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #f6f1e7;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 20px 40px rgba(47, 36, 23, 0.18);
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}

.whatsapp-country-dropdown.is-visible {
    display: flex;
}

.whatsapp-dropdown-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(47, 36, 23, 0.06);
    color: var(--color-carbon);
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.whatsapp-dropdown-option strong {
    display: block;
    margin-bottom: 4px;
}

.whatsapp-dropdown-option small {
    display: block;
    font-size: 0.85rem;
    color: rgba(47, 36, 23, 0.7);
    font-weight: 500;
}

.whatsapp-dropdown-option:hover {
    background: rgba(47, 36, 23, 0.12);
    transform: translateX(2px);
}

.whatsapp-dropdown-option i {
    color: var(--color-gold);
    font-size: 1.25rem;
}

/* Force Montserrat on Colombia/Peru advisory controls */
.cta-asesoria-section .whatsapp-country--colombia .whatsapp-country-btn,
.cta-asesoria-section .whatsapp-country--peru .whatsapp-country-btn,
.cta-asesoria-section .whatsapp-country--colombia .whatsapp-country-btn span,
.cta-asesoria-section .whatsapp-country--peru .whatsapp-country-btn span,
.cta-asesoria-section .whatsapp-country--colombia .whatsapp-country-btn small,
.cta-asesoria-section .whatsapp-country--peru .whatsapp-country-btn small,
.cta-asesoria-section .whatsapp-country--colombia .whatsapp-dropdown-option,
.cta-asesoria-section .whatsapp-country--peru .whatsapp-dropdown-option,
.cta-asesoria-section .whatsapp-country--colombia .whatsapp-dropdown-option strong,
.cta-asesoria-section .whatsapp-country--peru .whatsapp-dropdown-option strong,
.cta-asesoria-section .whatsapp-country--colombia .whatsapp-dropdown-option small,
.cta-asesoria-section .whatsapp-country--peru .whatsapp-dropdown-option small {
    font-family: 'Montserrat', sans-serif !important;
}

/* Responsive */
@media (max-width: 768px) {
    .countries-static-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-simple-content h1 {
        font-size: 2.5rem;
    }

    .hero-simple-content p {
        font-size: 1.2rem;
    }

    .two-column-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-column-section.reverse .two-column-content {
        direction: ltr;
    }

    .column-text h2 {
        font-size: 2rem;
    }

    .image-curtain-effect {
        height: 400px;
    }

    .team-countries-section {
        padding: 48px 0;
    }

    .team-countries-header h2 {
        font-size: 2rem;
    }

    .team-country-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .team-country-media {
        max-width: 100%;
        justify-self: stretch;
    }

    .team-country-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .team-country-tab {
        padding: 10px 16px;
    }

    .team-country-thumbs {
        grid-template-columns: 1fr;
    }

    .experience-stats {
        grid-template-columns: 1fr;
    }

    .whatsapp-countries {
        flex-direction: column;
        align-items: stretch;
    }

    .whatsapp-country-btn {
        justify-content: center;
    }

    .whatsapp-country-btn--dropdown {
        justify-content: space-between;
    }

    .whatsapp-country-dropdown {
        position: static;
        width: 100%;
        margin-top: 12px;
        box-shadow: 0 12px 22px rgba(47, 36, 23, 0.18);
    }

    .cta-asesoria-section h2 {
        font-size: 2rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .latam-carousel {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-simple {
        padding: 60px 0;
    }

    .hero-simple-content h1 {
        font-size: 2rem;
    }

    .column-text h2 {
        font-size: 1.8rem;
    }

    .image-curtain-effect {
        height: 300px;
    }

    .team-countries-header h2 {
        font-size: 1.75rem;
    }

    .team-country-tab {
        width: 100%;
    }

    .team-country-thumb img {
        width: 72px;
        height: 46px;
    }

    .country-flag-large img {
        width: 100px;
    }

    .country-flag-item h3 {
        font-size: 1.5rem;
    }
}

/* Ajuste de espaciado en carrusel de clientes (compacto, sin tocar logos) */
/* Grupo: compact clients slider without touching other landings */
.page-grupo .two-column-section.before-clients {
    padding: 60px 0 32px !important;
    margin-bottom: 0 !important;
}

.clients-section.clients-section-compact {
    padding: 30px 0 18px !important;
    background: var(--color-cream);
    border-top: 1px solid rgba(47, 36, 23, 0.1);
    margin: 0;
}

.clients-section.clients-section-compact h2 {
    color: var(--color-gold);
    margin-bottom: 14px;
}

.clients-slider.clients-slider-compact {
    padding-bottom: 16px;
    position: relative;
    height: auto !important;
}

.clients-slider.clients-slider-compact .swiper-wrapper {
    align-items: center;
    height: auto !important;
}

.clients-slider.clients-slider-compact .swiper-slide {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
}

.clients-slider.clients-slider-compact img {
    max-height: 85px;
    max-width: 180px;
    display: block;
    margin: 0 auto;
}

.clients-pagination.clients-pagination-compact {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
}

.clients-button-compact {
    top: 48%;
}

.cta-asesoria-section.cta-after-clients {
    padding-top: 40px;
}

/* Si se usa la cuadrícula de clientes en esta página, compactar también */
.clients-showcase-section { padding: 36px 0 !important; }
.clients-showcase-section h2 { margin-bottom: 24px !important; }
.clients-grid { gap: 24px !important; margin-top: 24px !important; }
.client-logo-box { padding: 24px !important; }
/* Grupo landing: disable curtain/slide effect and keep only the main image */
.page-grupo .image-curtain-effect::after,
.page-grupo .image-curtain-effect .overlay-image,
.page-grupo .image-curtain-effect .curtain {
    display: none !important;
}
.page-grupo .image-curtain-effect {
    cursor: default;
}

