/* ============================================================
   LOEX — Página: Valor Agregado
   ============================================================ */

.section-value {
    width: 100%;
    background-color: var(--color-white);
}

body[data-page="valor-agregado"] .site-header__inner {
    margin-top: 59px;
    background-color: rgba(255, 255, 255, 0.78);
}

/* ── Hero ─────────────────────────────────────────────────── */
.title-value {
    width: 100%;
    height: 316px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 0;
    background: linear-gradient(90deg, #f85774 0%, #c34056 100%);
    border-radius: 0 0 18px 18px;
    padding-bottom: 51px;
}

.title-value h1 {
    color: var(--color-white);
    font-size: clamp(3rem, 4.2vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0;
}

/* ── Textos descriptivos ──────────────────────────────────── */
.align-value-txt {
    width: min(68%, 920px);
    display: flex;
    align-items: center;
    gap: 27px;
    margin: 108px auto 39px;
}

.align-value-txt hr {
    width: 6px;
    min-height: 63px;
    height: auto;
    background-color: var(--color-accent);
    border: none;
    border-radius: 0;
    flex-shrink: 0;
}

.align-value-txt h5 {
    font-weight: 500;
    font-size: 1.55rem;
    color: var(--color-blue-dark);
    line-height: 1.45;
}

.txt-value {
    font-weight: 500;
    font-size: 1rem;
    width: min(68%, 920px);
    margin: 0 auto 62px;
    line-height: 1.75;
    color: var(--color-blue-dark);
}

.title-instal {
    font-size: 2.2rem;
    color: var(--color-blue);
    display: block;
    text-align: center;
    margin: 60px auto;
}

/* ── Sección médica / especial ────────────────────────────── */
.sec-medical {
    width: 100%;
    height: 536px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.72) 34%, rgba(0,0,0,0.18) 68%, rgba(0,0,0,0) 100%),
                image-set(
                    url('../../img/value/value1.webp') type('image/webp'),
                    url('../../img/value/value1.jpg') type('image/jpeg')
                ) center / cover no-repeat;
    margin-top: 0;
}

.align-medical {
    width: min(46%, 585px);
    margin-left: 7.7%;
}

.align-medical h3 {
    font-weight: 700;
    color: var(--color-white);
    font-size: clamp(2.2rem, 3.15vw, 2.65rem);
    margin-bottom: 50px;
    line-height: 1.17;
}

.align-medical p {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.78;
    margin-bottom: 29px;
}

.align-medical p:last-child {
    margin-bottom: 0;
}

/* ── Galería + lista ──────────────────────────────────────── */
.value-gal {
    width: min(85.5%, 1165px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 89px;
    margin: 109px auto 72px;
}

.section-slider-value {
    width: 596px;
    position: relative;
    padding: 0 0 72px;
    flex: 0 0 596px;
}

.section-slider-value .api-state {
    min-height: 394px;
}

.section-slider-value .img-slider {
    width: 100%;
    height: 394px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    display: none;
}

.section-slider-value .img-slider.is-active { display: block; }

.value-slider-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 22px;
}

.section-slider-value .prev,
.section-slider-value .next {
    width: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(7, 37, 56, 0.28);
    border-radius: 50%;
    background: var(--color-white);
    padding: 0;
}

.section-slider-value .prev img,
.section-slider-value .next img {
    width: 8px;
    opacity: 0.38;
}

.value-gal ul {
    width: auto;
    flex: 1 1 auto;
    font-weight: 500;
    font-size: 1.07rem;
    line-height: 1.62;
    color: var(--color-blue-dark);
    list-style: disc;
    padding-left: 21px;
}

body[data-page="valor-agregado"] .site-footer {
    padding: 25px 9.2%;
}

body[data-page="valor-agregado"] .site-footer__inner {
    max-width: none;
}

body[data-page="valor-agregado"] .site-footer__brand,
body[data-page="valor-agregado"] .site-footer__links a {
    display: none;
}

body[data-page="valor-agregado"] .site-footer__meta {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 54px;
}

body[data-page="valor-agregado"] .site-footer__meta::before {
    content: "2021 | LOEX";
    order: 2;
    color: var(--color-white);
    font-size: 0.86rem;
    line-height: 1.2;
}

body[data-page="valor-agregado"] .site-footer__links {
    display: contents;
}

body[data-page="valor-agregado"] .site-footer__link-button {
    order: 1;
}

body[data-page="valor-agregado"] .site-footer__link-button,
body[data-page="valor-agregado"] .site-footer__copy {
    color: var(--color-white);
    font-size: 0.86rem;
    line-height: 1.2;
}

body[data-page="valor-agregado"] .site-footer__copy {
    order: 3;
    font-size: 0;
}

body[data-page="valor-agregado"] .site-footer__copy::before {
    content: "Desarrollado por Upgrade DI© 2025";
    font-size: 0.86rem;
}

body[data-page="valor-agregado"] .site-footer__social {
    order: 4;
    justify-self: end;
    gap: 22px;
}

/* ── Principios ───────────────────────────────────────────── */
.value-principles {
    width: min(85.5%, 1165px);
    margin: 0 auto 100px;
    text-align: center;
}

.value-principles h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 48px;
}

.value-principles__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.value-principles__grid li {
    background-color: #f0f2f4;
    border-radius: 10px;
    padding: 18px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-blue-dark);
    border-bottom: 3px solid var(--color-accent);
    min-width: 160px;
    flex: 1 1 160px;
    max-width: 240px;
    align-content: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    body[data-page="valor-agregado"] .site-header__inner {
        margin-top: 34px;
    }

    .align-value-txt { width: 80%; }
    .txt-value { width: 80%; }
    .align-medical { width: 65%; }
    .value-gal {
        width: 86%;
        flex-direction: column;
        align-items: flex-start;
        gap: 38px;
    }

    .section-slider-value {
        width: 100%;
        flex-basis: auto;
        margin: 0 auto;
    }

    .value-gal ul { width: 90%; }

    .value-principles { width: 86%; }
    .value-principles__grid li { max-width: none; flex: 1 1 140px; }

    body[data-page="valor-agregado"] .site-footer {
        padding-inline: 7%;
    }

    body[data-page="valor-agregado"] .site-footer__meta {
        grid-template-columns: 1fr auto;
        gap: 16px 28px;
    }

    body[data-page="valor-agregado"] .site-footer__social {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}

@media (max-width: 600px) {
    .title-value {
        height: 300px;
        border-radius: 0 0 14px 14px;
        padding-bottom: 48px;
    }

    .align-value-txt { width: 90%; }
    .txt-value { width: 90%; }
    .sec-medical {
        height: auto;
        min-height: 560px;
        padding: 70px 0;
        background-position: center;
    }
    .align-medical { width: 85%; }
    .align-medical h3 { font-size: 1.8rem; }
    .section-slider-value .img-slider { height: 300px; }

    body[data-page="valor-agregado"] .site-footer {
        padding: 18px 6%;
    }

    body[data-page="valor-agregado"] .site-footer__meta {
        display: flex;
        gap: 14px;
    }

    body[data-page="valor-agregado"] .site-footer__social {
        justify-self: auto;
    }
}
