/* =========================================================
   HERO / CARRUSEL PRINCIPAL
========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 26, 75, 0.95) 0%,
        rgba(3, 26, 75, 0.8) 48%,
        rgba(3, 26, 75, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    padding-bottom: 80px;
}

.hero-copy {
    max-width: 820px;
}

.hero-eyebrow {
    color: #ffc55a;
}

.hero h1 {
    max-width: 850px;
    color: #fff;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    max-width: 680px;
    margin-top: 22px;
    color: #e5ecff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 30px;
    left: 50%;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.hero-dot.active {
    width: 30px;
    border-radius: 10px;
    background: var(--orange);
}


/* =========================================================
   SOBRE NOSOTROS
========================================================= */

.about-section {
    position: relative;
    overflow: hidden;
}

.about-wrap {
    display: grid;
    gap: 44px;
    align-items: center;
}

.about-visual {
    position: relative;
    min-height: 470px;
}

.about-visual img {
    display: block;
    width: 88%;
    height: 430px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    padding: 22px;
    border-radius: 28px;
    background: var(--orange);
    color: var(--navy);
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-badge strong {
    display: block;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 3rem;
    line-height: 1;
}

.experience-badge span {
    display: block;
    font-weight: 700;
    line-height: 1.45;
}

.about-content h2 {
    margin-top: 12px;
}

.about-content .lead {
    margin-top: 18px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.stat {
    padding: 18px 12px;
    border: 1px solid rgba(6, 39, 108, 0.08);
    border-radius: 16px;
    background: var(--light);
    text-align: center;
}

.stat strong {
    display: block;
    color: var(--navy);
    font-family: "Poppins", sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
}

.stat span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.about-action {
    margin-top: 25px;
}


/* =========================================================
   SECCIÓN DE APOYO
========================================================= */

.support-banner {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.support-banner-background {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero/portada2.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.support-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(1, 21, 51, 0.96) 0%,
        rgba(3, 31, 70, 0.88) 47%,
        rgba(3, 20, 48, 0.72) 100%
    );
}

.support-banner-inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 55px;
    align-items: center;
    padding-top: 95px;
    padding-bottom: 95px;
}

.support-banner-copy {
    max-width: 700px;
}

.support-pretitle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
}

.support-pretitle::after {
    content: "";
    width: 105px;
    height: 3px;
    margin-left: -90px;
    margin-top: 28px;
    border-radius: 10px;
    background: var(--orange);
}

.support-pretitle-icon {
    width: 58px;
    height: 58px;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    border-radius: 14px;
    background: var(--orange);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.support-banner h2 {
    max-width: 730px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.support-banner h2 span {
    display: block;
    color: var(--orange);
}

.support-banner-copy > p {
    max-width: 650px;
    margin-top: 23px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.06rem;
    line-height: 1.75;
}

.support-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 30px;
    padding: 17px 28px;
    border: 2px solid var(--orange);
    background: var(--orange);
    color: var(--navy);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.support-button:hover {
    border-color: #fff;
    background: #fff;
    color: var(--navy);
    transform: translateY(-3px);
}

.support-button span {
    color: var(--navy);
    font-size: 0.7rem;
}

.support-benefits-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
    padding-bottom: 65px;
}

.support-benefits-card {
    position: relative;
    z-index: 2;
    padding: 37px 34px;
    border-radius: 18px;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.28);
}

.support-benefits-card h3 {
    margin-bottom: 25px;
    color: var(--navy);
    font-size: 1.35rem;
}

.support-benefits-list {
    display: grid;
    gap: 23px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-benefits-list li {
    display: grid;
    grid-template-columns: 27px 1fr;
    gap: 12px;
    align-items: flex-start;
}

.benefit-icon {
    display: block;
    margin-top: 2px;
    color: var(--orange);
    font-size: 1.05rem;
    line-height: 1;
}

.support-benefits-list strong {
    display: block;
    color: var(--navy);
    font-family: "Poppins", sans-serif;
    font-size: 0.98rem;
    line-height: 1.45;
}

.support-benefits-list p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.support-decoration {
    position: absolute;
    top: -18px;
    left: -18px;
    z-index: 1;
    width: 105px;
    height: 105px;
    border-radius: 0 0 75px 0;
    background: var(--orange);
}

.support-community-icon {
    position: absolute;
    right: 44%;
    bottom: 0;
    z-index: 3;
    width: 105px;
    height: 70px;
    transform: translateX(50%);
}

.community-person {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.person-one {
    left: 22px;
    background: var(--orange);
}

.person-two {
    right: 20px;
    background: #fff;
}

.community-body {
    position: absolute;
    bottom: 0;
    width: 48px;
    height: 39px;
    border-radius: 25px 25px 8px 8px;
}

.body-one {
    left: 5px;
    background: var(--orange);
}

.body-two {
    right: 4px;
    background: #fff;
}

.body-one i {
    position: absolute;
    top: 9px;
    right: 6px;
    color: #fff;
    font-size: 0.85rem;
    font-style: normal;
}


/* =========================================================
   PROYECTOS DESTACADOS
========================================================= */

.project-card {
    overflow: hidden;
}

.project-card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover img {
    transform: scale(1.055);
}

.project-card-body {
    padding: 24px;
}

.project-card-body h3 {
    margin-top: 14px;
}

.project-card-body p {
    margin-top: 10px;
    margin-bottom: 22px;
}

.project-card .btn {
    padding: 10px 16px;
}


/* =========================================================
   FRANJA DE DONACIÓN
========================================================= */

.donate-band {
    padding: 64px 0;
    background: linear-gradient(
        135deg,
        var(--orange-dark),
        var(--orange)
    );
    color: var(--navy);
}

.donate-band-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.donate-eyebrow {
    color: var(--navy);
}

.donate-band h2 {
    max-width: 760px;
    color: var(--navy);
}


/* =========================================================
   CARRUSEL INFINITO DE ALIADOS
========================================================= */

.allies-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.allies-section .section-heading {
    margin-bottom: 48px;
}

.allies-section .section-heading .lead {
    margin-inline: auto;
}

.allies-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 12px 0 28px;
}

/* Degradado lateral suave */

.allies-slider::before,
.allies-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4;
    width: 80px;
    pointer-events: none;
}

.allies-slider::before {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.allies-slider::after {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.allies-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 28px;
    animation: allies-scroll 30s linear infinite;
    will-change: transform;
}

.allies-group {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.ally-logo {
    width: 240px;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ally-logo img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    object-position: center;
    filter: none;      /* SIN blanco y negro */
    opacity: 1;        /* siempre visible */
    transition: transform .25s ease;
}

.ally-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(6, 39, 108, .08);
    border-color: rgba(245, 166, 35, .45);
}

.ally-logo:hover img {
    transform: scale(1.03);
}

@keyframes allies-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .allies-track {
        animation: none;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .allies-slider::before,
    .allies-slider::after {
        width: 48px;
    }

    .allies-track,
    .allies-group {
        gap: 20px;
    }

    .ally-logo {
        width: 210px;
        height: 120px;
        padding: 18px 20px;
    }

    .ally-logo img {
        height: 78px;
    }
}

/* Móvil */
@media (max-width: 640px) {
    .allies-section .section-heading {
        margin-bottom: 30px;
    }

    .allies-slider {
        padding: 8px 0 18px;
    }

    .allies-slider::before,
    .allies-slider::after {
        width: 24px;
    }

    .allies-track,
    .allies-group {
        gap: 14px;
    }

    .ally-logo {
        width: 170px;
        height: 95px;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .ally-logo img {
        height: 58px;
    }
}


/* =========================================================
   TESTIMONIOS
========================================================= */

.testimonial {
    padding: 34px;
}

.quote {
    color: #475467;
    font-size: 1.1rem;
    line-height: 1.75;
}

.person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.person-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
}

.person span {
    color: var(--muted);
    font-size: 0.9rem;
}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .allies-track {
        animation-play-state: paused;
    }

    .project-card img,
    .ally-logo,
    .ally-logo img {
        transition: none;
    }
}


/* =========================================================
   TABLET Y ESCRITORIO
========================================================= */

@media (min-width: 900px) {
    .about-wrap {
        grid-template-columns: 1fr 1fr;
    }

    .support-banner-inner {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(390px, 0.9fr);
    }

    .support-benefits-wrap {
        margin-left: auto;
        margin-right: 0;
    }

    .donate-band-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 899px) {
    .hero {
        min-height: 760px;
    }

    .hero-content {
        min-height: 760px;
    }

    .about-visual {
        min-height: 410px;
    }

    .about-visual img {
        width: 93%;
        height: 370px;
    }

    .experience-badge {
        width: 155px;
        height: 155px;
        padding: 18px;
    }

    .experience-badge strong {
        font-size: 2.45rem;
    }

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

    .support-banner {
        min-height: auto;
    }

    .support-banner-inner {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .support-benefits-wrap {
        max-width: 620px;
    }

    .allies-slider::before,
    .allies-slider::after {
        width: 70px;
    }

    .allies-track {
        animation-duration: 27s;
    }

    .allies-group {
        gap: 20px;
        padding-right: 20px;
    }

    .ally-logo {
        width: 180px;
        height: 110px;
        padding: 18px;
    }

    .ally-logo img {
        height: 66px;
    }
}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 640px) {
    .hero {
        min-height: 700px;
    }

    .hero-content {
        min-height: 700px;
    }

    .hero-copy {
        padding-top: 50px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .about-visual {
        min-height: 355px;
    }

    .about-visual img {
        width: 100%;
        height: 320px;
        border-radius: 22px;
    }

    .experience-badge {
        right: 14px;
        bottom: -18px;
        width: 135px;
        height: 135px;
        border-radius: 20px;
    }

    .experience-badge strong {
        font-size: 2.1rem;
    }

    .experience-badge span {
        font-size: 0.78rem;
    }

    .support-banner-inner {
        gap: 45px;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .support-pretitle {
        align-items: flex-start;
        font-size: 0.84rem;
    }

    .support-pretitle::after {
        display: none;
    }

    .support-pretitle-icon {
        width: 48px;
        height: 48px;
    }

    .support-banner h2 {
        font-size: clamp(1.9rem, 9vw, 2.55rem);
    }

    .support-button {
        width: 100%;
        justify-content: center;
    }

    .support-benefits-card {
        padding: 30px 22px;
        border-radius: 15px;
    }

    .support-decoration {
        top: -12px;
        left: -10px;
        width: 80px;
        height: 80px;
    }

    .support-community-icon {
        right: 50%;
    }

    .project-card img {
        height: 220px;
    }

    .allies-section .section-heading {
        margin-bottom: 32px;
    }

    .allies-slider {
        padding-top: 8px;
        padding-bottom: 20px;
    }

    .allies-slider::before,
    .allies-slider::after {
        width: 35px;
    }

    .allies-track {
        animation-duration: 24s;
    }

    .allies-group {
        gap: 14px;
        padding-right: 14px;
    }

    .ally-logo {
        width: 150px;
        height: 95px;
        padding: 15px;
        border-radius: 14px;
    }

    .ally-logo img {
        height: 58px;
    }

    .testimonial {
        padding: 27px 23px;
    }
}