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

body {
    background-color: #0b1324;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* Navigation styles are in navbar.css */

/* Hero Image Section - absolute left:0 top:-141px */
.hero-image-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 45, 92, 0.5); blue overlay*/
    background-color: rgba(0, 0, 0, 0.4);
}

/* Hero Title - absolute left:756px top:283px (centered with translate) */
.hero-title {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    width: 80%;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 3.7vw, 5rem); /* scales between 2rem and 5rem */
    line-height: 1.6;
    letter-spacing: 0.1rem;
    color: #f2f2f2;
    text-align: center;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
    white-space: pre-wrap;
    z-index: 10;
}

/* Container for quote + buttons */
.hero-text-content {
    margin-top: 4rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; /* space between quote and buttons */
}

.hero-quote {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    line-height: 1.3;
    letter-spacing: 0.9px;
    color: white;
}

.hero-quote strong {
    font-weight: 700;
}

/* Container for buttons - we can wrap the two buttons in a parent container if needed */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem; /* space between buttons */
    flex-wrap: wrap; /* allows buttons to move to the next line if not enough space */
}
/* Remove absolute positioning */
.btn-conocenos,
.btn-hablemos {
    position: static; /* default */
}

/* Ensure the buttons still look good stacked */
@media screen and (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* vertical spacing when stacked */
        width: 90%;
    }

    .btn-conocenos,
    .btn-hablemos {
        width: 70%; /* take more horizontal space when stacked */
        max-width: 300px;
        margin: 0 auto;
    }
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid white;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary .btn-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.6px;
    color: white;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem; /*this is the height of the button*/
    border: none;
    border-radius: 30px;
    background: #002d5c;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #003a75;
}

.btn-secondary .btn-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.6px;
    color: #b4bae8;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    position: relative;
}

.btn-icon img {
    width: 30px;
    height: 30px;
}

/* First button icon - white */
.btn-conocenos .btn-icon img {
    filter: brightness(0) invert(1);
}

/* Second button icon - matches text color #b4bae8 using mask */
.btn-hablemos .btn-icon {
    background-color: #b4bae8;
    mask-image: url('assets/arrow_forward.svg');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url('assets/arrow_forward.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.btn-hablemos .btn-icon img {
    display: none;
}

/* Tus Retos Section - absolute left:54px top:1351px */
.seccion-retos {
    width: 100%;
    max-width: 1150px;
    margin: clamp(4rem, 8vw, 6rem) auto 0;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.retos-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: clamp(2.1rem, 4vw, 3rem);
    letter-spacing: 1.35px;
    background: linear-gradient(to right, #a7becf, #0857a0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.retos-containers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.reto-container {
    display: flex;
}

.reto-border {
    position: relative;
    display: flex;
    width: 100%;
    background: linear-gradient(135deg, #A7BECF 0%, #397ED8 100%);
    border-radius: 32px;
    padding: 3px;
}

.reto-content { /*this includes the image and text*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.25rem, 3vw, 2rem);
    border-radius: 28px;
    background: rgba(5, 21, 42, 0.92);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    width: 100%;
    min-height: 100%;
}

.reto-content-2,
.reto-content-3 {
    align-items: center;
}

.reto-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.reto-image-2 {
    aspect-ratio: 3 / 4;
}

.reto-image-3 {
    aspect-ratio: 4 / 3;
}

.reto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reto-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 45, 92, 0.2);
}

.reto-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #f5f8ff;
}

.reto-text-centered {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.reto-text strong {
    font-weight: 700;
}

.reto-text .normal {
    font-weight: 400;
}

/* ===========================
   Responsive adjustments
=========================== */
@media screen and (max-width: 1024px) {
    .retos-containers {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .seccion-retos {
        padding: 0 clamp(1rem, 6vw, 1.75rem);
    }

    .retos-containers {
        grid-template-columns: 1fr;
        gap: clamp(1.75rem, 6vw, 2.5rem);
    }

    .reto-content {
        padding: clamp(1.5rem, 5vw, 2rem);
    }

    .reto-image {
        aspect-ratio: 16 / 10;
    }
}

/* Mission Section - absolute left:0 top:2255px */
.mission-section {
    position: relative;
    width: 100%;
    margin: 10rem auto;
    display: flex;
    justify-content: flex-start;
}

.mission-container {
    width: 90%;
    background-color: #0f2336;
    border-radius: 0 8.1875rem 8.1875rem 0;
    padding: 2rem 2rem;
    box-sizing: border-box;
}

.mission-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.mission-title-vertical {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 5vw, 3.75rem);
    letter-spacing: 1.8px;
    color: #f7f2e4;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.mission-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.8rem);
    line-height: 1.3;
    letter-spacing: 0.84px;
    color: #b5d1ee;
    max-width: 44rem;
}

/* Vision Section - absolute left:686px top:2568px */
.vision-section {
    position: relative;
    width: 100%;
    margin: 4rem auto;
    display: flex;
    justify-content: flex-end;
}

.vision-container {
    width: 90%;
    background-color: #433667;
    border-radius: 8.1875rem 0 0 8.1875rem;
    padding: 2rem 2rem;
    box-sizing: border-box;
}

.vision-content {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.vision-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.3;
    letter-spacing: 0.84px;
    color: #ced2f2;
    max-width: 40rem;
    text-align: right;
}

.vision-title-vertical {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 5vw, 3.75rem);
    letter-spacing: 1.8px;
    color: #f7f2e4;
    writing-mode: vertical-rl;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media screen and (max-width: 1024px) {
    .mission-container,
    .vision-container {
        width: 100%;
        border-radius: 0;
        padding: 2rem;
    }

    .mission-section,
    .vision-section {
        justify-content: center;
    }

    .mission-content,
    .vision-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mission-title-vertical,
    .vision-title-vertical {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 2.5rem;
    }

    .mission-text,
    .vision-text {
        font-size: 1.25rem;
        text-align: left;
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .mission-container,
    .vision-container {
        padding: 1.5rem;
    }

    .mission-title-vertical,
    .vision-title-vertical {
        font-size: 2rem;
    }

    .mission-text,
    .vision-text {
        font-size: 1.125rem;
        line-height: 1.5;
    }
}



/* Valores Section */
.seccion-valores {
    position: relative;
    width: 100%;
    padding: 6rem 2rem 4rem 2rem;
    overflow: hidden;
    background-color: transparent;
}

/* Static repeated background text */
.valores-header {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 0;
    pointer-events: none; /* allow clicks on cards */
}

.valores-title-line {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 10vw, 9rem); /* responsive scaling */
    letter-spacing: 4px;
    line-height: 1;
    color: #0a427d;
    white-space: nowrap;
}

.valores-title-highlight {
    color: #306caa; /* lighter color for the highlighted line */
}

/* Cards layout */
.valores-cards {
    position: relative;
    z-index: 1; /* add z-index to ensure cards are above the background text */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Individual cards */
.valor-card {
    background-color: #a7becf;
    border-radius: 20px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    width: 240px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.valor-card:hover {
    background-color: #EFB801;
    transform: translateY(-5px);
}

.valor-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.valor-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.valor-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: black;
    margin-bottom: 0.5rem;
}

.valor-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #194860;
    line-height: 1.3;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .valor-card {
        width: 45%;
    }
}

@media (max-width: 600px) {
    .valores-title-line {
        font-size: clamp(2rem, 8vw, 5rem); 
    }

    .valor-card {
        width: 100%;
    }
}


/* Pilares Section - absolute left:0 top:3849px */
.seccion-pilares {
    position: relative;
    margin: 4rem auto;
    width: 100%;
}

.pilares-header {
    padding: 0 2rem;
    margin-bottom: 2rem;
    text-align: start;
}

.pilares-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 3vw, 3rem);
    letter-spacing: 1.35px;
    background: linear-gradient(to right, #cad3da, #0857a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 504px);
    gap: 0;
    justify-items: center;
    justify-content: center;
}

.pilar-card {
    position: relative;
    width: 100%;
    max-width: 31.5rem;
    height: 19.375rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.0625rem;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}

.pilar-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pilar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.pilar-text {
    position: relative;
    z-index: 10;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 1.2vw, 1.5rem);
    line-height: 1.3;
    letter-spacing: 0.75px;
    color: white;
    max-width: 90%;
}

.pilar-card:nth-child(5) .pilar-text {
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.6);
}

/* Add responsive spacing for smaller screens */
@media screen and (max-width: 1024px) {
    .pilares-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .pilares-grid {
        grid-template-columns: 1fr; /* vertical stack */
    }

    .pilares-header {
        text-align: center; /* center title */
    }

    .pilar-text {
        font-size: 1.25rem;
    }
}

/* CTA Section - absolute left:0 top:4562px */
.seccion-cta {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.cta-divider {
    width: 100%;
    height: 1rem;
    background-color: #efb801;
}

.cta-background {
    position: relative;
    width: 100%;
    height: clamp(40rem, 50vw, 70rem);
    overflow: hidden;
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.cta-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* center content both vertically and horizontally */
    width: 90%;
    max-width: 1359px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* center title and button */
    gap: 2rem;
    text-align: center;
}

.cta-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(6rem, 5vw, 6.25rem);
    line-height: 1.2;
    letter-spacing: 3px;
    color: white;
    margin: 0;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-cta .btn-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.6px;
    color: white;
}

.btn-cta .btn-icon img {
    filter: brightness(0) invert(1);
}

/* Small screens adjustments */
@media screen and (max-width: 768px) {
    .cta-content {
        width: 95%;
        gap: 1.5rem;
    }

    .cta-title {
        font-size: 2.5rem; /* smaller title */
        letter-spacing: 1.5px;
    }

    .btn-cta .btn-text {
        font-size: 1rem;
    }
}

/*Footer styles are in footer.css*/