﻿.banner-home {
    background-image: url('/images/banner/bn_inclusion_enfoque-diferencial.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
}

    .banner-home::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: rgba(0, 61, 165, 0.50);
        pointer-events: none;
        z-index: 0;
    }

.banner-home__content {
    position: relative;
    z-index: 1;
}

/* ============================== Secciones 2 y 3 - Tarjeta informativa ============================== */
.index-info-card {
    background-color: var(--govcolor-white);
    border: 0.125rem solid var(--govcolor-tropical-blue);
    border-top: 0.25rem solid var(--govcolor-cobalt);
    border-bottom: 0.125rem solid var(--govcolor-tropical-blue);
    border-radius: 0.625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 0.125rem 0.5rem rgba(9, 67, 181, 0.08);
}

.index-info-card__img-wrapper {
    width: 100%;
    height: 7rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--govcolor-white);
    padding: 0.5rem;
    flex-shrink: 0;
}

.index-info-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.index-info-card__body {
    padding: 1rem 1.125rem 1.25rem 1.125rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: var(--govcolor-solitude);
}

.index-info-card__title {
    font-family: 'Nunito_Sans-Bold';
    font-size: 15px;
    color: var(--govcolor-cobalt);
    text-align: center;
    margin: 0 0 0.625rem 0;
    line-height: 1.4;
}

.index-info-card__text {
    font-family: 'Verdana-Regular';
    font-size: 13px;
    color: var(--govcolor-matterhorn);
    text-align: center;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* ============================== Sección 4 - Centro de ayuda ============================== */
.index-ayuda-card {
    background-color: var(--govcolor-white);
    border: 0.125rem solid var(--govcolor-tropical-blue);
    border-top: 0.25rem solid var(--govcolor-cobalt);
    border-bottom: 0.125rem solid var(--govcolor-tropical-blue);
    border-radius: 0.625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 0.125rem 0.5rem rgba(9, 67, 181, 0.08);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.index-ayuda-card--link {
    text-decoration: none;
    cursor: pointer;
}

    .index-ayuda-card--link:hover,
    .index-ayuda-card--link:focus-visible {
        border-top-color: var(--govcolor-havelock-lue);
        border-color: var(--govcolor-cobalt);
        box-shadow: 0 0.25rem 0.75rem rgba(9, 67, 181, 0.18);
        text-decoration: none;
    }

        .index-ayuda-card--link:hover .index-ayuda-card__title,
        .index-ayuda-card--link:focus-visible .index-ayuda-card__title {
            color: var(--govcolor-havelock-lue);
        }

    .index-ayuda-card--link:focus-visible {
        outline: max(0.125rem, 0.125rem) solid var(--govcolor-black);
        outline-offset: max(0.125rem, 0.125rem);
    }

.index-ayuda-card__img-wrapper {
    width: 100%;
    height: 4.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--govcolor-white);
    padding: 0.5rem;
}

.index-ayuda-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.index-ayuda-card__body {
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: var(--govcolor-solitude);
}

.index-ayuda-card__title {
    font-family: 'Nunito_Sans-Bold';
    font-size: 15px;
    color: var(--govcolor-cobalt);
    text-align: center;
    margin: 0;
    line-height: 1.4;
    transition: color 200ms ease;
}

/* ============================== Responsive ============================== */
@media (min-width: 576px) and (max-width: 991px) {
    .index-ayuda-card__img-wrapper {
        height: 4rem;
    }

    .index-info-card__img-wrapper {
        height: 6rem;
    }

    .index-info-card__title {
        font-size: 14px;
    }

    .index-info-card__text {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .index-ayuda-card__img-wrapper {
        height: 3.5rem;
    }

    .index-ayuda-card__title {
        font-size: 14px;
    }

    .index-info-card__img-wrapper {
        height: 8rem;
    }

    .index-info-card__body {
        padding: 0.875rem 1rem 1rem 1rem;
    }

    .index-info-card__title {
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

    .index-info-card__text {
        font-size: 13px;
    }
}

/* ============================== Carrusel seccion1 ============================== */
.carousel-img-registro {
    max-width: 9.375rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* ── Banner: transición suavizada al fondo claro ── */
.banner-home__section {
    position: relative;
}

.banner-home__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7rem;
    background: linear-gradient( to bottom, transparent 0%, rgba(248, 249, 250, 0.55) 55%, rgba(248, 249, 250, 0.92) 80%, #f8f9fa 100% );
    pointer-events: none;
    z-index: 1;
}

/* ── Sección cards superpuestas ── */
.index-nav-section {
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 2.5rem;
    margin-top: -3.5rem;
}

/* ── Navigation cards (20% más grandes) ── */
.index-nav-card {
    border: 0.063rem solid var(--govcolor-tropical-blue);
    transition: box-shadow 200ms, border-color 200ms;
    min-height: 6.6rem;
    overflow: hidden;
}

    .index-nav-card:hover,
    .index-nav-card:focus-visible {
        border-color: var(--govcolor-cobalt);
        box-shadow: 0 0.375rem 1rem rgba(9, 67, 181, 0.18) !important;
        text-decoration: none;
    }

/* ── Zona superior: título (tono cobalt) ── */
.index-nav-card__header {
    background-color: var(--govcolor-cobalt);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.index-nav-card:hover .index-nav-card__header,
.index-nav-card:focus-visible .index-nav-card__header {
    background-color: var(--govcolor-havelock-lue);
    transition: background-color 200ms ease;
}

/* ── Zona inferior: imagen + texto (tono solitude) ── */
.index-nav-card__content {
    background-color: var(--govcolor-solitude);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-grow: 1;
}

.index-nav-card__img-wrapper {
    width: 5.4rem;
    height: 5.4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--govcolor-white);
    box-shadow: 0 0.125rem 0.375rem rgba(9, 67, 181, 0.12);
}

.index-nav-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.index-nav-card__title {
    font-family: 'Nunito_Sans-Bold';
    font-size: 19px;
    color: var(--govcolor-white);
    margin-bottom: 0;
    line-height: 1.3;
}

.index-nav-card__desc {
    font-family: 'Verdana-Regular';
    font-size: 15px;
    color: var(--govcolor-matterhorn);
    line-height: 1.4;
    margin: 0;
}

.index-nav-card .govco-svg.govco-angle-right {
    min-width: 1.2rem !important;
    min-height: 1.2rem !important;
    background-size: 1.2rem 1.2rem !important;
    filter: var(--govcolor-svg-white) !important;
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .index-nav-section {
        margin-top: -2rem;
    }

    .index-nav-card__img-wrapper {
        width: 4.2rem;
        height: 4.2rem;
    }

    .index-nav-card__title {
        font-size: 16px;
    }

    .index-nav-card__desc {
        font-size: 13px;
    }

    .index-action-btn {
        min-width: 100%;
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .index-nav-card__img-wrapper {
        width: 4.8rem;
        height: 4.8rem;
    }
}

/* ── Botones de acción ── */
.index-action-btn {
    min-width: 26rem;
    width: 26rem;
    justify-content: center;
}

@media (max-width: 767px) {
    .index-action-btn {
        min-width: 13rem;
        width: 13rem;
    }
}

@media (max-width: 575px) {
    .index-nav-section {
        margin-top: -2rem;
    }

    .index-nav-card__img-wrapper {
        width: 4.2rem;
        height: 4.2rem;
    }

    .index-nav-card__title {
        font-size: 16px;
    }

    .index-nav-card__desc {
        font-size: 13px;
    }

    .index-action-btn {
        min-width: 100%;
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .index-nav-card__img-wrapper {
        width: 4.8rem;
        height: 4.8rem;
    }
}

@media (min-width: 576px) {
    .w-sm-auto {
        width: auto !important;
    }
}

/* ── Carousel steps ── */
.carousel-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--govcolor-cobalt-light, #e8f0fb);
    border: 2px solid var(--govcolor-cobalt, #003da5);
}

.carousel-step-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.carousel-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background-color: var(--govcolor-cobalt, #003da5);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.carousel-step-desc {
    font-size: 0.97rem;
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--govcolor-cobalt, #003da5);
    background-color: rgba(0, 61, 165, 0.04);
    border-radius: 0 0.375rem 0.375rem 0;
    text-align: left;
}

/* ── Banner icons ── */
.banner-home__icon--lg {
    min-width: 2.2rem;
    min-height: 2.2rem;
    background-size: 2.2rem 2.2rem;
    filter: var(--govcolor-svg-white);
}

.banner-home__icon--md {
    min-width: 1.5rem;
    min-height: 1.5rem;
    background-size: 1.5rem 1.5rem;
    filter: var(--govcolor-svg-white);
    flex-shrink: 0;
}

.banner-home__title {
    color: var(--govcolor-white);
}

.banner-home__subtitle {
    color: var(--govcolor-white);
}