/*
 * QUIÉNES SOMOS
 * Estilos exclusivos de las secciones de esta página.
 * El banner se gestiona únicamente desde banner.css.
 */

.qs-page {
    --qs-blue: #0789ed;
    --qs-navy: #092652;
    --qs-ink: #123865;
    --qs-muted: #3f6287;
    color: var(--qs-ink);
    background: #fff;
}

    /* Solo las secciones propias, nunca el banner */
    .qs-page :is(.qs-section, .qs-stats)
    :is(h1, h2, h3, p) {
        margin-top: 0;
    }

    /* Títulos de las secciones */
    .qs-page :is(.qs-section, .qs-stats) h2 {
        margin: 5px 0 10px;
        font-size: clamp(24px, 2.4vw, 34px);
        line-height: 1.12;
    }

    /* Párrafos de las secciones */
    .qs-page :is(.qs-section, .qs-stats) p {
        line-height: 1.45;
    }

    /* Enlaces propios, sin afectar al banner */
    .qs-page :is(.qs-section, .qs-stats) a {
        transition: filter .2s, color .2s;
    }

        .qs-page :is(.qs-section, .qs-stats) a:hover {
            filter: brightness(1.08);
        }

/* Etiquetas de sección */
.qs-kicker {
    color: var(--qs-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.qs-section {
    padding: 34px 0;
}

.qs-section-heading {
    display: grid;
    grid-template-columns: 1.45fr 1.15fr .45fr;
    align-items: start;
    gap: 28px;
    margin-bottom: 28px;
}

    .qs-section-heading > p:not(.qs-handwritten) {
        max-width: 440px;
        margin: 5px 0 0;
        color: var(--qs-muted);
        font-size: 14px;
    }

.qs-history {
    background: linear-gradient(135deg, #fff, #edf7fd);
}

.qs-timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

    .qs-timeline li {
        position: relative;
        min-width: 0;
        padding-top: 24px;
        border-top: 2px solid #1296ff;
    }

        .qs-timeline li::before {
            content: "";
            position: absolute;
            top: -10px;
            left: 0;
            width: 18px;
            height: 18px;
            border: 2px solid #1193ff;
            border-radius: 50%;
            background: #1193ff;
            box-shadow: inset 0 0 0 4px #fff;
        }

    .qs-timeline strong {
        color: #066fc1;
        font-size: 17px;
    }

    .qs-timeline p {
        margin: 6px 0 0;
        font-size: 13px;
        line-height: 1.35;
    }

.qs-stats {
    padding: 32px 0;
    color: #fff;
    background: url("/images/banner/fondo-azul.webp") center 70%;
}

.qs-stats-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    align-items: center;
}

.qs-stats h2 {
    margin: 7px 0 0;
}

.qs-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 96px;
    padding: 7px 15px;
    border-right: 1px solid #a1c6dd;
    text-align: center;
}

    .qs-stat:last-child {
        border-right: 0;
    }

.qs-stat-icon {
    color: #e1f3ff;
    font-size: 27px;
    line-height: 1;
}

.qs-stat strong {
    color: #a4dcff;
    font-size: clamp(23px, 2.6vw, 34px);
    line-height: 1;
}

.qs-stat > span:last-child {
    font-size: 13px;
}

.qs-values {
    background: #fff;
}

.qs-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

    .qs-values-grid article {
        padding: 8px 25px;
        border-right: 1px solid #d1e8fb;
    }

        .qs-values-grid article:last-child {
            border-right: 0;
        }

.qs-value-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #d6eeff;
    color: #003d77;
    font-size: 36px;
    font-weight: bold;
}

.qs-values-grid h3 {
    margin: 5px 0;
    font-size: 17px;
}

.qs-values-grid p {
    margin: 0;
    font-size: 13px;
}

.qs-sectors {
    background: #e6f5ff;
}

.qs-sectors-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

    .qs-sectors-heading > .deleg-services-link {
        justify-self: end;
    }

.qs-sector-carousel {
    position: relative;
    min-width: 0;
}

.qs-sector-swipe-hint {
    display: none;
}

.qs-sector-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 12px;
}

    .qs-sector-grid:focus-visible {
        outline: 2px solid var(--qs-blue);
        outline-offset: 3px;
    }

.qs-sector-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
}

.qs-sector-image {
    display: block;
    width: 100%;
    height: clamp(95px, 9vw, 150px);
    object-fit: cover;
    background: #dcebf3;
}

.qs-sector-body {
    position: relative;
    flex: 1;
    padding: 14px 10px;
}

    .qs-sector-body h3 {
        min-height: 42px;
        margin: 0;
        color: var(--qs-navy);
        font-size: clamp(11px, 1.05vw, 16px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

@media (max-width: 1050px) {
    .qs-section-heading {
        grid-template-columns: 1.2fr 1fr;
    }

    .qs-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 20px;
    }

    .qs-stats-title {
        grid-column: 1 / -1;
    }

    .qs-stats h2 br {
        display: none;
    }
}

@media (max-width: 768px) {
    .qs-section {
        padding: 30px 0;
    }

    .qs-sectors-heading > .deleg-services-link {
        justify-self: start;
    }

    .qs-section-heading {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-bottom: 22px;
    }

    .qs-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .qs-values-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

        .qs-values-grid article:nth-child(2) {
            border-right: 0;
        }

    .qs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qs-stat:nth-child(3) {
        border-right: 0;
    }
    /* Pista visual de desplazamiento horizontal solo en móvil/tablet */
    .qs-sector-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        margin-bottom: 10px;
        color: var(--qs-navy);
        font-size: 13px;
        font-weight: 700;
    }

        .qs-sector-swipe-hint .material-symbols-rounded {
            font-size: 21px;
            line-height: 1;
        }

    .qs-sector-swipe-arrow {
        animation: qs-sector-arrow 1.8s ease-in-out infinite;
    }

    .qs-sector-carousel::after {
        content: "";
        position: absolute;
        z-index: 1;
        right: 0;
        top: 35px;
        bottom: 8px;
        width: 32px;
        pointer-events: none;
    }

    .qs-sector-grid {
        grid-auto-columns: minmax(125px, 1fr);
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .qs-sector-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 420px) {
    .qs-sector-grid, .qs-stats-grid {
        gap: 10px;
    }

    .qs-stat {
        padding-inline: 7px;
    }

    .qs-values-grid article {
        padding-inline: 10px;
    }

    .qs-value-icon {
        width: 56px;
        height: 56px;
        font-size: 27px;
    }

    .qs-timeline p {
        font-size: 12px;
    }
}

@keyframes qs-sector-arrow {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qs-sector-swipe-arrow {
        animation: none;
    }
}
