/* Local Fonts - Noto Sans */
@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/noto-sans-v42-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/noto-sans-v42-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/noto-sans-v42-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors from figmaDesign.css */
    --primary-maroon: #611232;
    --secondary-maroon: #691B32;
    --teal-bg: #09495B;
    --white: #FFFFFF;
    --black: #000000;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --overlay-teal: rgba(9, 73, 91, 0.7);

    /* Typography */
    --font-main: 'Noto Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--white);
    background-color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Base Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    position: relative;
    overflow: hidden;
    gap: 0;
}

.btn.chevron::after {
    content: '>';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-size: 2.2rem;
    line-height: 1;
}

.btn.chevron:hover {
    background: var(--white);
    color: var(--teal-bg);
    padding-right: 3.5rem;
    padding-left: 1.5rem;
}

.btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.btn-primary {
    background-color: var(--primary-maroon);
    border-color: var(--primary-maroon);
}

.btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--teal-bg);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
    position: relative;
    /*height: 70vh;
    min-height: 600px;*/
    display: flex;
    align-items: center;
    /* background removed, handled by carousel */
    text-align: center;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: backgroundFade 12s infinite ease-in-out;
}

.carousel-item:nth-child(1) {
    background-image: url('assets/NafinBuilding.jpg');
    animation-delay: 0s;
}

.carousel-item:nth-child(2) {
    background-image: url('assets/BancomextBuilding.png');
    animation-delay: -6s;
    /* Offset by half the duration */
}

@keyframes backgroundFade {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    58% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--overlay-dark) 0%, var(--teal-bg) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 550px;
    justify-content: center;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.logo {
    height: 45px;
}

.logo-divider {
    width: 2px;
    height: 30px;
    background: var(--white);
    opacity: 0.5;
}

.hero-badge {
    background: var(--primary-maroon);
    padding: 0.5rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Divider Section*/
.divider {
    background-color: var(--teal-bg);
}

.divider hr {
    max-width: 1200px;
    margin: 0 auto;
}


/* Services Section */
.bottom-background {
    background: url('assets/map.jpg') no-repeat center center/cover;
    position: relative;
}

.bottom-background::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--teal-bg) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.services-section {
    background-color: transparent;
    padding: 16px 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.service-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.service-icon {
    /* width: 160px; */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100px;
    flex-grow: 0;
    flex-shrink: 0;
}

.service-icon img {
    width: 100%;
    margin-bottom: 40px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

/*.service-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}*/

.service-info p {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    padding: 0.5rem 2.5rem;
    font-size: 0.8rem;
}

/* CTA Footer Section */
.cta-footer {
    padding: var(--spacing-xl) 0;
    background: transparent;
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

.footer-card {
    position: relative;
    z-index: 2;
    background-color: var(--primary-maroon);
    border-radius: 140px 20px 20px 140px;
    display: flex;
    align-items: center;
    padding: 2rem 2rem 2rem 14rem;
    gap: 3rem;
}

.footer-image-container {
    position: absolute;
    left: -8px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--white);
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-content {
    flex: 1;
}

.footer-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-content p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.3;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 280px;
}

.btn-footer {
    font-size: 1.1rem;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-footer:hover {
    background: var(--white);
    color: var(--primary-maroon);
}

/* Responsiveness Extensions */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }


    .service-icon img {
        margin-bottom: 0px;
    }

    .footer-card {
        gap: 1rem;
        padding: 1rem 1rem 1rem 14rem;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}

@media (min-width: 993px) {
    .just-tablet {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .service-icon img {
        width: 70%;
    }

    .service-card {
        gap: 0.5rem;
    }

    .services-grid {
        gap: var(--spacing-lg) var(--spacing-lg);
    }

    .service-info h3 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-sm);
    }

    .just-tablet {
        display: block;
    }

}


@media (min-width: 768px) and (max-width: 1200px) {
    .footer-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .footer-content p {
        font-size: 1rem;
    }
}

.just-mobile {
    display: none;
}





@media (max-width: 767px) {
    .hero {
        height: auto;
        padding: var(--spacing-sm) 0;
    }

    .hero-badge {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }

    .just-tablet {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }


    .logos-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .logo-divider {
        width: 60px;
        height: 2px;
    }

    .logo {
        height: auto;
        width: 93%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .service-card {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .service-icon {
        flex-basis: 0px;
        width: 100px;
        height: auto;
    }

    .service-icon img {
        margin-bottom: 0px;

    }

    .service-info {
        text-align: center;
        padding: 10px;
    }

    .service-info h3 {
        margin-bottom: 0px;
        font-size: 1.2rem;
    }

    .services-grid {
        gap: var(--spacing-lg);
    }

    .footer-card {
        flex-direction: column;
        text-align: center;
        padding-top: var(--spacing-xl);
        margin-top: 40px;
        border-radius: 20px 20px 20px 20px;
        padding: 8rem 1rem 2rem 1rem;
    }

    .footer-image-container {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: 200px;
        margin-top: 0;
    }

    .footer-content {
        width: 100%;
        min-width: unset;
    }

    .footer-actions {
        gap: 1.5rem;
    }

    .footer-content h2 {
        font-size: 1.4rem;
    }

}

@media (max-width: 576px) {
    .just-mobile {
        display: block;
    }
}

@media (max-width: 375px) {
    .service-info p {
        font-size: 15px;
    }
}