/* =========================================================
   ACREDUCA - SERVICES PAGE
   ========================================================= */

:root {
    --acreduca-blue: #181e6d;
    --acreduca-blue-dark: #11165d;
    --acreduca-green: #62b832;
    --acreduca-green-dark: #2f7d18;
    --acreduca-orange: #ff7a00;

    --acreduca-text: #111329;
    --acreduca-muted: #5b6175;
    --acreduca-soft: #f7f8fc;
    --acreduca-soft-2: #eef1f7;

    --acreduca-border: rgba(24, 30, 109, 0.10);
    --acreduca-border-strong: rgba(24, 30, 109, 0.16);

    --acreduca-shadow-sm: 0 12px 34px rgba(16, 24, 40, 0.055);
    --acreduca-shadow-md: 0 18px 50px rgba(16, 24, 40, 0.08);
    --acreduca-shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.14);

    --acreduca-radius-md: 1.25rem;
    --acreduca-radius-lg: 1.6rem;
    --acreduca-radius-xl: 2rem;
}

/* =========================================================
   COMPENSACIÓN POR HEADER FIJO
   ========================================================= */

/*
   Como el header/nav está fijo, el main necesita empezar debajo.
   Si el header cambia de altura, ajusta estos valores.
*/
body > main {
    padding-top: 118px;
}

@media (max-width: 991.98px) {
    body > main {
        padding-top: 108px;
    }
}

@media (max-width: 575.98px) {
    body > main {
        padding-top: 106px;
    }
}

/* =========================================================
   SECCIÓN PRINCIPAL: RESUMEN DE SERVICIOS
   ========================================================= */

.services-summary-section {
    background-color: var(--bs-body-bg);
}

.services-summary-container {
    padding-top: 3rem;
    padding-bottom: 4.5rem;
}

.services-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background-color: rgba(24, 30, 109, 0.08);
    color: var(--acreduca-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.services-main-title {
    max-width: 1120px;
    margin: 0 auto 1.2rem;
    font-size: clamp(2.15rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--acreduca-blue);
}

.services-main-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--acreduca-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =========================================================
   CARDS SUPERIORES
   ========================================================= */

.services-summary-section .service-card {
    padding-top: 0 !important;
    text-align: center;
    overflow: hidden;
}

.services-summary-section .service-card-with-image {
    padding: 0 !important;
    border: 1px solid var(--acreduca-border);
    border-radius: var(--acreduca-radius-lg);
    background-color: #ffffff;
}

.services-summary-section .service-link-card {
    position: relative;
    min-height: 430px;
    color: inherit;
    cursor: pointer;
    box-shadow: var(--acreduca-shadow-sm);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.services-summary-section .service-link-card:hover {
    transform: translateY(-6px);
    border-color: var(--acreduca-border-strong);
    box-shadow: var(--acreduca-shadow-lg);
}

.services-summary-section .service-image-wrap {
    width: 100%;
    height: 235px;
    overflow: hidden;
    background-color: #f5f6fa;
}

.services-summary-section .service-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.services-summary-section .service-link-card:hover .service-image {
    transform: scale(1.045);
}

.services-summary-section .service-link-content {
    padding: 2rem 2rem 2.2rem;
    text-align: center;
}

.services-summary-section .service-title {
    margin: 0 0 0.85rem;
    color: var(--acreduca-blue);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.service-card-description {
    max-width: 310px;
    margin: 0 auto 1.25rem;
    color: var(--acreduca-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.service-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--acreduca-blue);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    transition: color 0.2s ease;
}

.service-more-link .bi {
    color: var(--acreduca-orange);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.services-summary-section .service-link-card:hover .service-more-link {
    color: var(--acreduca-green-dark);
}

.services-summary-section .service-link-card:hover .service-more-link .bi {
    transform: translateX(4px);
}

/* =========================================================
   SECCIÓN INFORMATIVA
   FACTORES / BENEFICIOS / REDES
   ========================================================= */

.services-info-section {
    background-color: #ffffff;
}

.services-info-section .container {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.services-info-row {
    position: relative;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem !important;
    padding: 3rem;
    border: 1px solid var(--acreduca-border);
    border-radius: var(--acreduca-radius-xl);
    background-color: #ffffff;
    box-shadow: var(--acreduca-shadow-md);
}

.services-info-row:last-child {
    margin-bottom: 0 !important;
}

.services-info-row-redes {
    margin-top: 0 !important;
}

.services-info-row h1 {
    max-width: 850px;
    margin-bottom: 1.5rem !important;
    color: var(--acreduca-blue) !important;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem) !important;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.services-info-row .bg-mask {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.services-info-row .mask-image {
    width: 100%;
    min-height: 390px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
}

.services-info-row .list-unstyled {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0;
}

.services-info-row li {
    display: flex;
    align-items: flex-start !important;
    margin-bottom: 0 !important;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(24, 30, 109, 0.08);
    border-radius: 1rem;
    background-color: #f8f9fc;
    color: var(--acreduca-text) !important;
    line-height: 1.55;
}

.services-info-row li .bi {
    flex: 0 0 auto;
    margin-top: 0.05rem;
    color: var(--acreduca-green) !important;
    opacity: 1 !important;
    font-size: 1.2rem !important;
}

.services-info-row li span {
    color: var(--acreduca-text) !important;
    opacity: 1 !important;
    font-size: 0.98rem;
}

/* =========================================================
   CURSOS Y EVENTOS
   MISMO ESTILO VISUAL DEL INDEX
   ========================================================= */

.services-learning-section {
    background-color: #ffffff;
}

.services-learning-section .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.services-learning-section .section-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background-color: rgba(24, 30, 109, 0.08);
    color: var(--acreduca-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.services-learning-section .section-title {
    max-width: 760px;
    margin: 0 auto 1rem;
    color: var(--acreduca-blue);
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.services-learning-section .section-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--acreduca-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-learning-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(24, 30, 109, 0.08);
    border-radius: var(--acreduca-radius-lg);
    background-color: #ffffff;
    box-shadow: 0 14px 38px rgba(16, 24, 40, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.home-learning-card:hover {
    transform: translateY(-6px);
    border-color: rgba(24, 30, 109, 0.16);
    box-shadow: var(--acreduca-shadow-lg);
}

.home-learning-image-wrap {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.home-learning-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.home-learning-card:hover .home-learning-image {
    transform: scale(1.045);
}

.home-learning-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(24, 30, 109, 0.42);
    pointer-events: none;
}

.home-learning-icon {
    position: absolute;
    left: 1.6rem;
    bottom: 1.6rem;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background-color: #ffffff;
    color: var(--acreduca-blue);
    font-size: 1.65rem;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.home-learning-body {
    padding: 2rem;
}

.home-learning-label {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: var(--acreduca-green-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-learning-body h3 {
    margin-bottom: 0.9rem;
    color: var(--acreduca-blue);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-learning-body p {
    margin-bottom: 1.5rem;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
}

.home-learning-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--acreduca-blue);
    font-weight: 800;
    text-decoration: none;
    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.home-learning-link:hover {
    gap: 0.65rem;
    color: var(--acreduca-green-dark);
}

.home-learning-link i {
    font-size: 1.15rem;
    line-height: 1;
}

/* =========================================================
   BANNER FINAL
   ========================================================= */

.services-bottom-banner h2 {
    color: #ffffff;
}

.services-bottom-banner p {
    color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   DARK MODE
   ========================================================= */

[data-bs-theme="dark"] .services-summary-section,
[data-bs-theme="dark"] .services-info-section,
[data-bs-theme="dark"] .services-learning-section {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .services-main-title,
[data-bs-theme="dark"] .services-info-row h1,
[data-bs-theme="dark"] .services-learning-section .section-title,
[data-bs-theme="dark"] .home-learning-body h3 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .services-main-subtitle,
[data-bs-theme="dark"] .services-learning-section .section-subtitle,
[data-bs-theme="dark"] .home-learning-body p {
    color: rgba(255, 255, 255, 0.76) !important;
}

[data-bs-theme="dark"] .services-eyebrow,
[data-bs-theme="dark"] .services-learning-section .section-eyebrow {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-bs-theme="dark"] .services-summary-section .service-card-with-image,
[data-bs-theme="dark"] .services-info-row,
[data-bs-theme="dark"] .home-learning-card {
    background-color: var(--bs-card-bg);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .services-summary-section .service-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .service-card-description {
    color: rgba(255, 255, 255, 0.72);
}

[data-bs-theme="dark"] .service-more-link,
[data-bs-theme="dark"] .home-learning-link {
    color: #ffffff;
}

[data-bs-theme="dark"] .services-summary-section .service-image-wrap {
    background-color: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .services-info-row li {
    background-color: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84) !important;
}

[data-bs-theme="dark"] .services-info-row li span {
    color: rgba(255, 255, 255, 0.84) !important;
}

[data-bs-theme="dark"] .home-learning-card {
    background-color: #111021;
}

[data-bs-theme="dark"] .home-learning-icon {
    background-color: #ffffff;
    color: var(--acreduca-blue);
}

/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991.98px) {
    .services-summary-container {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    .services-summary-section .service-link-card {
        min-height: auto;
    }

    .services-summary-section .service-image-wrap {
        height: 225px;
    }

    .services-info-section .container {
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }

    .services-info-row {
        padding: 2rem;
        border-radius: 1.5rem;
    }

    .services-info-row h1 {
        text-align: left;
    }

    .services-info-row .mask-image {
        min-height: 320px;
    }

    .home-learning-image-wrap {
        height: 280px;
    }
}

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    body > main {
        padding-top: 108px;
    }

    .services-summary-container {
        padding-top: 2rem;
        padding-bottom: 3rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-eyebrow {
        display: none;
    }

    .services-main-title {
        max-width: 350px;
        margin: 0 auto 0.9rem;
        font-size: 1.78rem;
        line-height: 1.12;
        letter-spacing: -0.04em;
    }

    .services-main-subtitle {
        max-width: 345px;
        margin: 0 auto;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .services-summary-section .row.justify-content-center.text-center.mb-5 {
        margin-bottom: 1.8rem !important;
    }

    .services-summary-section .service-card-with-image {
        border-radius: 1.15rem;
    }

    .services-summary-section .service-image-wrap {
        height: 205px;
        border-radius: 1.15rem 1.15rem 0 0;
    }

    .services-summary-section .service-link-content {
        padding: 1.35rem 1.25rem 1.55rem;
    }

    .services-summary-section .service-title {
        font-size: 1.22rem;
        margin-bottom: 0.7rem;
    }

    .service-card-description {
        max-width: 290px;
        font-size: 0.94rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .service-more-link {
        font-size: 0.92rem;
    }

    .services-info-section .container {
        padding-top: 2rem;
        padding-bottom: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-info-row {
        padding: 1.25rem;
        border-radius: 1.25rem;
        margin-bottom: 2rem !important;
    }

    .services-info-row h1 {
        font-size: 1.45rem !important;
        line-height: 1.18;
    }

    .services-info-row .mask-image {
        min-height: 260px;
    }

    .services-info-row li {
        padding: 0.8rem 0.85rem;
    }

    .services-info-row li span {
        font-size: 0.94rem;
    }

    .services-learning-section .container {
        padding-top: 4rem;
        padding-bottom: 4rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-learning-section .section-eyebrow {
        display: none;
    }

    .services-learning-section .section-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .services-learning-section .section-subtitle {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .home-learning-image-wrap {
        height: 230px;
    }

    .home-learning-body {
        padding: 1.5rem;
    }

    .home-learning-icon {
        left: 1.25rem;
        bottom: 1.25rem;
        width: 52px;
        height: 52px;
        font-size: 1.45rem;
    }

    .home-learning-body h3 {
        font-size: 1.45rem;
    }

    .home-learning-body p {
        font-size: 0.96rem;
        line-height: 1.6;
    }
}

/* =========================================================
   FIX CONTRASTE LISTAS SERVICES - MODO CLARO Y DARK OVERRIDE
   Debe ir al final absoluto del archivo
   ========================================================= */

.services-info-section .services-info-row li {
    background-color: #f8f9fc !important;
    border-color: rgba(24, 30, 109, 0.10) !important;
    color: #30354d !important;
    opacity: 1 !important;
}

.services-info-section .services-info-row li span {
    color: #30354d !important;
    opacity: 1 !important;
}

.services-info-section .services-info-row li i,
.services-info-section .services-info-row li .bi {
    color: #62b832 !important;
    opacity: 1 !important;
}

/* Si el sitio tiene data-bs-theme="dark" activo, igual forzamos estas cards claras */
html[data-bs-theme="dark"] .services-info-section,
body[data-bs-theme="dark"] .services-info-section {
    background-color: #ffffff !important;
}

html[data-bs-theme="dark"] .services-info-row,
body[data-bs-theme="dark"] .services-info-row {
    background-color: #ffffff !important;
    border-color: rgba(24, 30, 109, 0.10) !important;
}

html[data-bs-theme="dark"] .services-info-row li,
body[data-bs-theme="dark"] .services-info-row li {
    background-color: #f8f9fc !important;
    border-color: rgba(24, 30, 109, 0.10) !important;
    color: #30354d !important;
    opacity: 1 !important;
}

html[data-bs-theme="dark"] .services-info-row li span,
body[data-bs-theme="dark"] .services-info-row li span {
    color: #30354d !important;
    opacity: 1 !important;
}

html[data-bs-theme="dark"] .services-info-row li i,
html[data-bs-theme="dark"] .services-info-row li .bi,
body[data-bs-theme="dark"] .services-info-row li i,
body[data-bs-theme="dark"] .services-info-row li .bi {
    color: #62b832 !important;
    opacity: 1 !important;
}

/* =========================================================
   OTROS SERVICIOS ESPECIALIZADOS
   ========================================================= */

.services-extra-section {
    background-color: #ffffff;
}

.services-extra-title {
    max-width: 850px;
    margin: 0 auto 1rem;
    color: var(--acreduca-blue);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.services-extra-subtitle {
    max-width: 780px;
    margin: 0 auto;
    color: var(--acreduca-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.services-extra-card {
    padding: 2rem;
    border: 1px solid rgba(24, 30, 109, 0.08);
    border-radius: var(--acreduca-radius-lg);
    background-color: #ffffff;
    box-shadow: var(--acreduca-shadow-sm);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.services-extra-card:hover {
    transform: translateY(-6px);
    border-color: rgba(24, 30, 109, 0.16);
    box-shadow: var(--acreduca-shadow-lg);
}

.services-extra-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background-color: rgba(98, 184, 50, 0.12);
    color: var(--acreduca-green-dark);
    font-size: 1.65rem;
}

.services-extra-card h3 {
    margin-bottom: 0.9rem;
    color: var(--acreduca-blue);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
}

.services-extra-card p {
    margin-bottom: 0;
    color: var(--acreduca-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Dark mode */
[data-bs-theme="dark"] .services-extra-section {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .services-extra-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .services-extra-subtitle,
[data-bs-theme="dark"] .services-extra-card p {
    color: rgba(255, 255, 255, 0.76);
}

[data-bs-theme="dark"] .services-extra-card {
    background-color: var(--bs-card-bg);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .services-extra-card h3 {
    color: #ffffff;
}

[data-bs-theme="dark"] .services-extra-icon {
    background-color: rgba(98, 184, 50, 0.14);
    color: #8ddf63;
}

/* Responsive */
@media (max-width: 575.98px) {
    .services-extra-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-extra-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .services-extra-subtitle {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .services-extra-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .services-extra-card h3 {
        font-size: 1.18rem;
    }

    .services-extra-card p {
        font-size: 0.96rem;
        line-height: 1.6;
    }
}