/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --screenwidth: 100%;
    --padding: clamp(1.25rem, 5vw, 5rem);
    --subtitulos: clamp(3rem, 6vw, 5rem);
    --subtitulos-2: clamp(1.75rem, 3.5vw, 3.5rem);
    --titulo-social: clamp(3rem, 13vw, 13.125rem);
    --parrafo-banner: clamp(1rem, 1.75vw, 1.75rem);
    --titulos-parrafos-gris: clamp(0.9375rem, 1.5625vw, 1.5625rem);
    --titulo-degrade: clamp(2rem, 4.25vw, 4.25rem);
    --blanco: #ffffff;
    --colors-neutral-1000: #02020b;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    color: #000;
    overflow-x: hidden;
}


html, body {
    scroll-behavior: smooth;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

a {
    text-decoration: none;
}

/* Landing shell: flush white hero to viewport top (overrides statics.css) */
.desktop-landing {
    padding-top: 0;
}

.desktop-landing::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: clamp(5.5rem, 12vh, 8.5rem);
    background-color: #fff;
    z-index: 0;
    pointer-events: none;
}

.desktop-landing > .navbar {
    margin: 10px 15px 10px;
}

.desktop-landing > .content {
    position: relative;
    z-index: 1;
}

/* Anchor offset: prevent the sticky/floating navbar from covering
   sections when the user jumps via the navbar links.
   Navbar = min-height 5.3125rem (~85px) + top: 10px + outer margin 10px top/bottom ≈ 105px.
   Defined via custom property so it stays in sync if the navbar height changes. */
:root {
    --navbar-offset: 6.75rem; /* desktop: ~85px + breathing room */
}

/* All anchor-target sections on the landing page */
#impact-section,
#how-section,
#programs-section,
#success-section,
#partners-section,
#faq-section {
    scroll-margin-top: var(--navbar-offset);
}

.btn-primary.btn-success-stories {
    background: var(--white-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    padding: 0 var(--padding) clamp(1rem, 2.5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin-bottom: 70px;
}

img.hero-section-curve{
    position: absolute;
    bottom: 0;
    right: 0;
    overflow: hidden;
    height: 120%;
    object-fit: contain;
}

.hero-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 10px;
}

.hero-copy-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.75rem, 1.25vw, 1.25rem);
    flex: 1 1 clamp(15rem, 18.75rem, 22rem);
    min-width: min(100%, 35rem);
    max-width: 100%;
}

.hero-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 10vh, 12vh);
    line-height: normal;
    color: #000;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 58.75rem;
    width: 100%;
    align-self: stretch;
    padding-top: clamp(2rem, 6.25vw, 3.25rem);
    margin-bottom: clamp(-2rem, -8.125vw, -8.125rem);
}

.hero-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #000;
    width: 100%;
    max-width: 75%;
}

.hero-description-background {
    background-color: var(--white-color);
    border-radius: 1.5625rem;
    padding: 0.8rem;
    backdrop-filter: blur(8px);
    margin-top: 15px;
}

.hero-copy-container .btn-primary {
    align-self: flex-start;
    min-width: 11vw;
    max-width: 300px;
    justify-content: center;
    min-height: 40px;
    font-size: x-large;
    box-shadow: 0px 5.71429px 8.42857px rgba(0, 0, 0, 0.25);
}

.hero-image-container {
    flex: 1 1 clamp(20rem, 40vw, 40rem);
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: min(100%, 20rem);
    max-width: 40rem;
}

.hero-image {
    width: 100%;
    max-width: clamp(20rem, 40vw, 40rem);
    overflow: hidden;
    position: relative;
    flex-shrink: 1;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Scroll Down Button with Subtraction Effect */
.scroll-down-btn {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 4px #f4f4f4;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.scroll-down-btn:hover {
    transform: translateX(-50%) translateY(3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 0 4px #f4f4f4;
    border: 2px solid var(--terceary-color);
}

.scroll-down-btn:active {
    transform: translateX(-50%) translateY(5px);
}

.scroll-down-arrow {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.scroll-down-btn:hover .scroll-down-arrow {
    color: var(--terceary-color);
}

/* Bounce animation for the arrow */
@keyframes bounce-down {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(0deg) translateY(3px);
    }
}

.scroll-down-btn:hover .scroll-down-arrow {
    animation: bounce-down 1s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: column;
    }

    .hero-image-container {
        width: 100%;
        max-width: 34.4375rem;
        flex: 1 1 auto;
    }

    .hero-copy-container {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        margin-bottom: clamp(-1rem, -4vw, -2rem);
    }

    .scroll-down-btn {
        width: 50px;
        height: 50px;
        bottom: -25px;
    }

    .scroll-down-arrow {
        width: 24px;
        height: 24px;
    }
}

/* How + Cards: shared wrapper (row on wide viewports) */
.how-cards-wrapper {
    width: 100%;
    max-width: min(100%, 92rem);
    margin-top: 70px;
    margin-inline: auto;
    padding: 0 var(--padding);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.how-cards-wrapper .how-section {
    flex: 1 1 clamp(14rem, 32%, 26rem);
    min-width: min(100%, 14rem);
    max-width: 100%;
    padding: 0;
    gap: clamp(1rem, 2vw, 2rem);
}

.how-cards-wrapper .how-section .section-header {
    padding: 0;
    align-items: flex-start;
    text-align: left;
}

.how-cards-wrapper .how-section .section-title,
.how-cards-wrapper .how-section .section-description {
    text-align: left;
}

.how-cards-wrapper .cards-section {
    flex: 1 1 clamp(22rem, 58%, 64rem);
    min-width: min(100%, 22rem);
    max-width: 100%;
    padding: 0;
    align-items: stretch;
}

.how-cards-wrapper .cards-container {
    padding-top: 0;
    justify-content: flex-start;
}

/* How Section */
.how-section {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 8.9375vw, 8.9375rem);
    padding: 0 var(--padding) 0;
    width: 100%;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.25vw, 2.25rem);
    align-items: center;
    text-align: center;
    padding: 0 var(--padding);
}

.section-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: var(--subtitulos);
    line-height: 1.2;
    color: #000;
    text-align: center;
    width: 100%;
}

.section-title.success-title {
    color: var(--white-color);
}

.section-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.4;
    color: #000;
    text-align: center;
}

.section-description.section-focus{
    font-weight: 600;
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    color: var(--blanco);
}

/* Cards Section */
.cards-section {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    align-items: center;
    justify-content: center;
    padding: 0 var(--padding);
    width: 100%;
}

.cards-container {
    display: flex;
    gap: 30px;
    padding: clamp(1.5rem, 2.6875vw, 2.6875rem) 0 0;
    justify-content: center;
}

.card {
    width: clamp(20rem, 28.5vw, 28.5rem);
    min-width: 20rem;
    border-radius: 1.5625rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: scale(1.025);
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.card-blue {
    background: linear-gradient(to left, #6536e3, #0e3be8);
}

.card-pink {
    background: linear-gradient(to left, #0e3be8 20%, #6536e3 80%);
}

.card-hi {
    background-image: url(../img/bg-card-hi.png), linear-gradient(to left, #0e3be8 20%, #6536e3 80%);
    background-size: 100%, auto;
    background-repeat: no-repeat, repeat;
    background-position: bottom center, center;
}

.card-m {
    background-image: url(../img/bg-card-m.png), linear-gradient(to left, #6536e3 20%, #0e3be8 80%);
    background-size: 100%, auto;
    background-repeat: no-repeat, repeat;
    background-position: bottom center, center;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.card-text {
    width: clamp(18rem, 23.125vw, 23.125rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.card-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 2.6875vw, 2.6875rem);
    line-height: 1.3;
    color: white;
    text-align: center;
    width: 100%;
    margin-top: 0.75rem;
}

.card-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.2;
    color: var(--blanco);
    text-align: center;
    width: 100%;
    margin-top: 0.625rem;
}

.card:hover .btn-secondary {
    transform: scale(1.15);
}

.btn-secondary {
    border: 0.0716rem solid white;
    background-color: hsla(227.6, 88.6%, 48.2%, .7);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.5725rem 1.625rem;
    border-radius: 1.43125rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.093vw, 1.093rem);
    line-height: 1.2244rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5725rem;
    margin-top: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: hsla(256, 76%, 55%, .7);
}

.btn-secondary .btn-icon {
    transform: rotate(0deg);
    transition: all 0.3s;
}

.btn-secondary:hover .btn-icon {
    transform: rotate(360deg);
}

.card-curve {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    background-image: url(../img/curve4.svg);
    background-size: 115%;
    background-position: -10px 10px;
    background-repeat: no-repeat;
}

.card-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.card-image img {
    max-width: 250px;
    width: 70%;
    transition: all 0.3s;
}

.card:hover .card-image img {
    transform: scale(1.1) rotate(5deg);
    transform-origin: center, center bottom;
}

.card-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 3.8125rem;
    width: 100%;
}

.card-text-wrapper .card-text {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
    padding: 0 2.6875rem;
    margin-bottom: -3.8125rem;
}

.card-images-group {
    position: absolute;
    left: 50%;
    top: 18.058rem;
    transform: translateX(-50%);
}

/* Impact Section */
.impact-section {
    padding: 0 20px;
    width: 100%;
}

.impact-container {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    align-items: center;
    color: var(--terceary-color);
}

.impact-header {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3.4375vw, 3.4375rem);
    align-items: center;
    padding: 0 var(--padding);
    width: 100%;
}

.impact-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.125rem, 0.125vw, 0.125rem);
    align-items: flex-start;
    justify-content: center;
    padding: 0 var(--padding);
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.875vw, 1rem);
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: clamp(12rem, 17.5vw, 17.5rem);
}

.stat-number {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.14;
}

.stat-label {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.2;
}

/* Programs Section */
.programs-section {
    display: flex;
    flex-direction: column;
    min-height: clamp(30rem, 48.625vw, 48.625rem);
    margin-top: 70px;
    width: 100%;
}

.programs-header {
    text-align: center;
}

.programs-subtitle {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 500;
    font-size: var(--subtitulos-2);
    line-height: 1.07;
    color: var(--colors-neutral-1000);
}

.programs-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 2.6875vw, 2.6875rem) var(--padding);
    width: 100%;
}

.program-card {
    width: clamp(20rem, 26vw, 26rem);
    min-width: 20rem;
    height: clamp(25rem, 32vw, 32rem);
    border-radius: 1.5625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    position: relative;
    background: hsla(0,0%,100%, .8);
    backdrop-filter: blur(6px);
    border: 1px solid white;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.program-card:hover {
    transform: scale(1.025);
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.program-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.program-text {
    width: clamp(18rem, 23.125vw, 23.125rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 4;
    gap: clamp(1rem, 1.25vw, 1.25rem);
    padding: clamp(1rem, 1.5vw, 1.5rem) clamp(1rem, 1vw, 1rem);
}

.program-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 2.6875vw, 2.6875rem);
    line-height: 1.33;
    color: #000;
    text-align: center;
    width: 100%;
}

.program-curve-1 {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom center;
    background-image: url(../img/program-curve-1.png);
}

.program-curve-2 {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom center;
    background-image: url(../img/program-curve-2.png);
}

.program-curve-3 {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom center;
    background-image: url(../img/program-curve-3.png);
}

.program-card:hover .btn-primary {
    transform: scale(1.1);
}

.program-image {
    position: absolute;
    z-index: 3;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s;
}

.program-card:hover .program-image img {
    transform: scale(1.1) rotate(5deg);
    transform-origin: center, center bottom;
}


.program-image-1 {
    width: 100%;
    height: 80%;
}

.program-image-2 {
    width: 100%;
    height: 80%;
}

.program-image-3 {
    width: 100%;
    max-width: 100%;
    bottom: -29%;
}

/* Success Stories Section */
.success-section {
    padding: 0px 20px;
    margin-top: 70px;
    width: 100%;
}

.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-90deg, hsla(203, 100%, 45.1%, 0.8), hsla(183.1, 100%, 46.1%, 0.8));
    border: 1px solid var(--secondary-color);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px 20px 40px;
}

.success-header {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 0.5vw, 1.375rem);
    width: 100%;
    padding: 0 var(--padding);
}

.success-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    min-width: clamp(18rem, 25vw, 25rem);
    padding: clamp(1.5rem, 2.6875vw, 2.6875rem) var(--padding);
    width: 100%;
    
}

.success-card {
    background-color: white;
    width: clamp(16rem, 25vw, 26rem);
    border-radius: 2.1875rem;
    position: relative;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.success-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.success-card-1 {
    background-image: url(../img/success-card-1.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
}

.success-card-2 {
    background-image: url(../img/success-card-2.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
}

.success-card-3 {
    background-image: url(../img/success-card-3.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
}

.success-card-content {
    width: clamp(16rem, 19.625vw, 19.625rem);
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 0.25vw, 1.25rem);
    align-items: center;
}

.success-avatar {
    width: clamp(5rem, 8.3125vw, 8.3125rem);
    height: clamp(5rem, 8.3125vw, 8.3125rem);
    border-radius: 50%;
    object-fit: cover;
}

.success-name {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 600;
    font-size: clamp(1.125rem, 1.625vw, 1.625rem);
    line-height: 1.5;
    color: var(--colors-neutral-1000);
    text-align: center;
}

.success-award {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9375rem, 0.375vw, 1.375rem);
    line-height: 1.55;
    color: white;
    text-align: center;
    border-radius: clamp(0.9375rem, 1.25vw, 1.25rem);
    width: auto;
    max-width: 100%;
    padding: 2px 10px;
    background: linear-gradient(45deg, var(--terceary-color), var(--secondary-color));
    white-space: nowrap;
}

.success-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.7;
    color: var(--colors-neutral-1000);
    text-align: center;
    max-width: 100%;
}

.btn-center {
    margin: clamp(0.75rem, 1.25vw, 1.25rem) auto;
}

/* Partners Section */
.partners-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
    width: 100%;
    margin-top: 70px;
}

.partners-header {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.375vw, 1.375rem);
    align-items: center;
    padding: 0 var(--padding);
    text-align: center;
    width: 100%;
}

.partners-carousel {
    width: 100%;
    height: clamp(5rem, 7.1875vw, 7.1875rem);
    overflow: hidden;
    position: relative;
    margin-top: 45px;
}

.carousel-track {
    display: flex;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    animation: scroll 30s linear infinite;
}

.carousel-track img {
    height: auto;
    max-height: clamp(4rem, 7.125vw, 5.125rem);
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-cta {
    background: var(--white-color);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 35px;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.partners-cta-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.4;
    color: #000;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4.1875vw, 4.1875rem);
    padding: 0 20px;
    margin-top: 70px;
    width: 100%;
    align-items: center;
    background-image: url(../img/bg-body-curve.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    position: relative;
    overflow: visible;
}

.faq-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    padding: 0 3rem;
    max-width: 100rem;
    width: 100%;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    position: relative;
    overflow: visible;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: clamp(30rem, 44.25vw, 44.25rem);
}

.faq-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0.625rem;
    max-width: clamp(25rem, 39.5vw, 39.5rem);
}

.faq-filter h3 {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1.14;
}

.faq-filter-btn {
    background-color: #0090e7;
    color: white;
    padding: 0.625rem 1.625rem;
    border-radius: 1.5625rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(0.875rem, 1.093vw, 1.093rem);
    line-height: 1.5rem;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-filter-btn:hover {
    background-color: #007acc;
}

.faq-list {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    padding: 0.0625rem 0.625rem;
}

.faq-item {
    background: white;
    border: 0.125rem solid #538de4;
    border-radius: 1.43125rem;
    min-height: clamp(3rem, 3.6875vw, 3.6875rem);
    flex: 1;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.625rem 1rem 0.625rem 1.125rem;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.faq-item.active {
    border-color: #0090e7;
    box-shadow: 0 4px 12px rgba(0, 144, 231, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.faq-question h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.375vw, 1.375rem);
    line-height: 1.14;
    color: #000;
    flex: 1;
}

.faq-toggle {
    background-color: #6737E4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle:hover {
    background-color: #5a29d5;
    transform: scale(1.05);
}

.faq-toggle:focus {
    outline: 2px solid #5a29d5;
    outline-offset: 2px;
}

.faq-item:hover .faq-toggle {
    transform: scale(1.2);
}

.faq-toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle svg {
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle {
    background-color: #0090e7;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0.75rem 0 0.25rem 0;
}

.faq-answer p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.6;
    color: #000;
    margin: 0;
}

.faq-answer-section {
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-answer-section:last-child {
    margin-bottom: 0;
}

.faq-answer-section:hover {
    border-left-color: #0090e7;
}

.faq-section-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 700;
    font-size: clamp(1.0625rem, 1.375vw, 1.375rem);
    line-height: 1.4;
    color: #6737E4;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-section-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9375rem, 1.125vw, 1.125rem);
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding-left: 1.75rem;
}

.faq-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(20rem, 26.1875vw, 26.1875rem);
    max-width: clamp(20rem, 30vw, 44.25rem);
    width: 100%;
    position: relative;
    padding: 0;
    margin-top: -40px;
    overflow: visible;
}

.faq-image-container {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    overflow: visible;
}

@keyframes floating-scale {
    0%, 100% {
        transform: translateY(0px) scale(.6);
    }
    50% {
        transform: translateY(-20px) scale(1);
    }
}

.faq-icon {
    position: absolute;
    top: 2%;
    left: -5%;
    width: 40%;
    transform-origin: center bottom;
    animation: floating-scale 3s ease-in-out infinite;
    z-index: 2;
}

.faq-person {
    max-width: clamp(320px, 28vw, 420px);
    height: auto;
    display: block;
}

/* Large screens: boy spans full section and overlaps into footer */
@media (min-width: 1025px) {
    .faq-image {
        position: relative;
        margin-bottom: -120px;
        z-index: 5;
        align-self: flex-start;
    }

    .faq-person {
        max-width: clamp(250px, 25vw, 450px);
    }

    .faq-icon {
        top: 0%;
        left: -8%;
        width: 44%;
    }
}

/* Extra large screens */
@media (min-width: 1440px) {
    .faq-image {
        margin-bottom: -150px;
    }

    .faq-person {
        max-width: clamp(200px, 25vw, 350px);
    }
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .content,
    .how-cards-wrapper,
    .programs-section,
    .success-section,
    .partners-section,
    .faq-section {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    :root {
        --padding: clamp(1.25rem, 3vw, 3rem);
        --navbar-offset: 6.25rem;
    }

    .navbar-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-links {
        gap: clamp(0.5rem, 1vw, 1rem);
        flex-wrap: wrap;
        justify-content: center;
    }

    .how-cards-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .how-cards-wrapper .how-section .section-header {
        align-items: center;
        text-align: center;
    }

    .how-cards-wrapper .how-section .section-title,
    .how-cards-wrapper .how-section .section-description {
        text-align: center;
    }

    .how-cards-wrapper .cards-section {
        align-items: center;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 28.5rem;
    }

    .impact-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-item {
        min-width: clamp(8rem, 45%, 45%);
    }

    .program-card {
        width: 100%;
        max-width: 28.5rem;
        min-width: clamp(18rem, 45%, 45%);
    }

    .program-image-1 {
        width: clamp(24rem, 10vw, 22rem);
        height: clamp(20rem, 10vw, 10rem);
    }

    .program-image-2 {
        width: clamp(24rem, 12vw, 12rem);
        height: clamp(18rem, 12vw, 12rem);
    }

    .program-image-3 {
        width: clamp(24rem, 15vw, 15rem);
        height: clamp(18rem, 15vw, 15rem);
    }

    .success-cards {
        gap: 1.5rem;
    }

    .success-card {
        min-width: clamp(16rem, 30%, 45%);
    }

    .faq-container {
        flex-direction: column;
        align-items: center;
    }

    .faq-content,
    .faq-image {
        max-width: 100%;
        width: 100%;
    }

    .faq-image {
        min-height: auto;
        margin-top: 2rem;
        margin-bottom: 0;
        order: 2;
    }

    .faq-person {
        max-width: 280px;
    }
}

@media (min-width: 820px) and (max-width: 1024px) {
    .cards-container {
        flex-direction: row;
        justify-content: center;
    }

    .card {
        width: clamp(22rem, 45%, 45%);
        max-width: 45%;
    }

    .programs-cards {
        flex-direction: row;
        justify-content: center;
    }

    .program-card {
        width: clamp(22rem, 45%, 45%);
        max-width: 45%;
        min-width: 18rem;
    }

    .program-image-1 {
        width: 100%;
        height: 75%;
    }

    .program-image-2 {
        width: 100%;
        height: 80%;
    }

    .program-image-3 {
        width: 100%;
        height: 80%;
    }

    .success-cards {
        flex-direction: row;
        justify-content: center;
    }

    .success-card {
        width: clamp(16rem, 30%, 30%);
    }

    .stat-item {
        min-width: clamp(10rem, 22%, 22%);
    }
}

@media (max-width: 768px) {
    :root {
        --padding: clamp(1rem, 2.5vw, 2.5rem);
        --subtitulos: clamp(2.5rem, 4vw, 3rem);
        --subtitulos-2: clamp(1.5rem, 2.5vw, 2.5rem);
        --navbar-offset: 5rem;
    }

    .navbar {
        min-height: 4rem;
    }

    .logo {
        width: clamp(8rem, 12vw, 12rem);
        height: clamp(2.5rem, 3vw, 3rem);
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        font-size: 2vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 24vw, 20vw);
        padding-top: clamp(1.5rem, 4vw, 4rem);
    }

    .hero-copy-container {
        min-width: 100%;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 100%;
    }

    .programs-cards {
        flex-direction: column;
    }

    .program-card {
        width: 70%;
        max-width: 100%;
        min-width: 50%;
    }

    .program-image-1 {
        width: clamp(23rem, 20vw, 12rem);
        height: clamp(20rem, 20vw, 12rem);
    }

    .program-image-2 {
        width: clamp(23rem, 25vw, 15rem);
        height: clamp(18rem, 25vw, 15rem);
    }

    .program-image-3 {
        width: clamp(23rem, 30vw, 18rem);
        height: clamp(18rem, 30vw, 18rem);
    }

    .success-cards {
        flex-direction: column;
    }

    .success-card {
        width: 50%;
        max-width: 100%;
        min-width: 50%;
    }

    .faq-content {
        min-height: auto;
    }

    .faq-image {
        min-height: auto;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .faq-person {
        max-width: 260px;
    }

    .faq-icon {
        top: -2%;
        left: -6%;
        width: 42%;
    }
}

@media (max-width: 480px) {
    :root {
        --padding: 1rem;
        --subtitulos: 2.2rem;
        --subtitulos-2: 1.5rem;
        --navbar-offset: 4.5rem;
    }

    .navbar {
        min-height: 3.5rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .logo {
        width: 8rem;
        height: 2.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-section {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 2rem;
    }

    .scroll-down-btn {
        width: 44px;
        height: 44px;
        bottom: -22px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15), 0 0 0 3px #f4f4f4;
    }

    .scroll-down-arrow {
        width: 22px;
        height: 22px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .card {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .card-title {
        font-size: 1.75rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .program-card {
        width: 80%;
        max-width: 100%;
        min-width: 80%;
    }

    .program-image-1 {
        width: clamp(20rem, 25vw, 25rem);
        height: clamp(18rem, 25vw, 25rem);
    }

    .program-image-2 {
        width: clamp(20rem, 30vw, 25rem);
        height: clamp(18rem, 30vw, 25rem);
    }

    .program-image-3 {
        width: clamp(20rem, 35vw, 25rem);
        height: clamp(18rem, 35vw, 25rem);
    }

    .success-card {
        max-width: 100%;
        width: 100%;
    }

    .faq-filter {
        max-width: 100%;
    }

    .faq-container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .faq-content {
        max-width: 100%;
        min-height: auto;
    }

    .faq-image {
        min-height: auto;
        min-width: auto;
        max-width: 100%;
        margin: 1.5rem auto 0;
        order: 2;
    }

    .faq-person {
        max-width: 240px;
        margin: 0 auto;
        display: block;
    }

    .faq-icon {
        top: -1%;
        left: 20%;
        width: 40%;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .faq-answer p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .faq-container {
        flex-direction: column;
        padding: 0 2rem;
    }

    .faq-content {
        max-width: 100%;
    }

    .faq-image {
        max-width: 25rem;
        margin: 2rem auto 0;
        order: 2;
    }

    .faq-person {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    .faq-icon {
        top: -2%;
        left: -4%;
        width: 42%;
    }

    .faq-item {
        padding: 0.875rem 1.25rem;
    }

    .faq-question h3 {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    }

    .faq-answer p {
        font-size: clamp(0.9375rem, 2vw, 1rem);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .faq-container {
        padding: 0 2.5rem;
        align-items: flex-start;
    }

    .faq-content {
        max-width: 55%;
    }

    .faq-image {
        max-width: 40%;
        margin-top: -20px;
        margin-bottom: -80px;
        align-self: flex-start;
    }

    .faq-person {
        max-width: 320px;
    }

    .faq-icon {
        top: 0%;
        left: -6%;
        width: 44%;
    }
}
