/*
 * Qué hacemos · single servicio (.svd) y single industria (.ind).
 * PSD: 03-Vinson-HACEMOS-Single.png y 03-Vinson-HACEMOS-Single-Industria.png (1857px).
 * Bloques compartidos por ambas vistas: .svd-back, .hs-card*, .hs-action, .hs-experts.
 */

/* ---------- Compartidos ---------- */

.svd-back {
    display: inline-flex;
    height: 30px;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    color: #a7a9a9;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease;
}

.svd-back:hover,
.svd-back:focus-visible {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.svd-icon-back {
    flex: 0 0 auto;
}

.svd-heading {
    margin: 0;
    color: var(--color-text);
    font-size: 54px;
    font-weight: 300;
    line-height: 1.1;
    text-align: center;
}

.svd-heading em {
    color: var(--color-blue);
    font-family: var(--font-serif);
    font-size: 1.185em;
    font-style: italic;
    font-weight: 400;
}

.hs-action {
    margin-top: 51px;
    text-align: center;
}

/*
 * Tarjetas con imagen completa y caja superpuesta (casos / insights).
 * Flex centrado: con 1 o 2 tarjetas quedan al medio con el mismo ancho que en
 * una fila de 3 (--hs-card-cols cambia en tablet / movil).
 */
.hs-card-grid {
    --hs-card-cols: 3;
    --hs-card-gap: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hs-card-gap);
}

.hs-card-grid > * {
    flex: 0 0 calc((100% - (var(--hs-card-cols) - 1) * var(--hs-card-gap)) / var(--hs-card-cols));
    min-width: 0;
}

.hs-card {
    position: relative;
    display: flex;
    min-height: 455px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #d9dde0;
}

.hs-card__media {
    position: absolute;
    inset: 0;
}

.hs-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.hs-card:hover .hs-card__media img {
    transform: scale(1.04);
}

.hs-card__body {
    position: relative;
    display: flex;
    min-height: 232px;
    flex-direction: column;
    padding: 28px 29px 19px;
}

.hs-card--flush .hs-card__body {
    width: calc(100% - 40px);
    background: var(--color-surface);
}

.hs-card--inset .hs-card__body {
    margin: 0 20px 20px;
    background: var(--color-paper);
}

/*
 * Varias columnas: la caja arranca a la misma altura en toda la fila (imagen
 * superior fija) y crece hacia abajo; la fila toma la altura de la mas alta.
 */
@media (min-width: 761px) {
    .hs-card {
        justify-content: flex-start;
    }

    .hs-card__body {
        flex: 1 0 auto;
    }

    .hs-card--flush .hs-card__body {
        margin-top: 223px;
    }

    .hs-card--inset .hs-card__body {
        margin-top: 203px;
    }
}

.hs-card__label {
    margin: 0;
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
}

.hs-card__title {
    margin: 12px 0 8px;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.hs-card__text {
    margin: 0;
    color: var(--color-text);
    font-size: 16px;
    line-height: 19px;
}

.hs-card--inset .hs-card__title {
    margin-top: 14px;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}

.hs-card--inset .hs-card__text {
    margin-top: 6px;
    color: #aaaaaa;
    font-size: 14px;
    line-height: 17px;
}

.hs-card__link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 16px;
    color: var(--color-blue);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.hs-card__link-text {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hs-card__link::after {
    position: absolute;
    inset: 0;
    content: "";
}

.hs-card__link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-blue) 50%, transparent);
    outline-offset: 4px;
}

/* Opinión de nuestros expertos */
.hs-experts {
    padding: 160px 0 149px;
    background: var(--color-paper);
}

.hs-experts__title {
    margin: 0 0 36px;
    color: var(--color-text);
    font-size: 37px;
    font-weight: 400;
    line-height: 1.2;
}

.hs-experts__title em {
    color: var(--color-blue);
    font-family: var(--font-serif);
    font-size: 1.185em;
    font-style: italic;
    font-weight: 400;
}

/*
 * Carrusel de 2 tarjetas visibles (citas largas). Sin JS la fila se desplaza
 * con scroll horizontal; con JS (.is-carousel) la mueve M.slider.
 */
.hs-experts__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.hs-experts__carousel.is-carousel .hs-experts__viewport {
    overflow: hidden;
    scroll-snap-type: none;
}

.hs-experts__grid {
    --hs-experts-per-view: 2;
    display: flex;
    gap: 30px;
}

.hs-experts__grid > .hs-expert {
    flex: 0 0 calc((100% - (var(--hs-experts-per-view) - 1) * 30px) / var(--hs-experts-per-view));
    min-width: 0;
    scroll-snap-align: start;
}

.hs-experts__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 41px;
}

.hs-experts__arrows {
    display: flex;
    gap: 20px;
}

/* Sin recorrido (2 opiniones o menos) las flechas sobran. */
.hs-experts__carousel:not(.has-nav) .hs-experts__arrows {
    visibility: hidden;
}

.hs-experts__arrow {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    place-items: center;
    background: none;
    color: var(--color-blue);
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease;
}

.hs-experts__arrow:hover:not(:disabled) {
    transform: translateX(3px);
}

.hs-experts__arrow--prev:hover:not(:disabled) {
    transform: translateX(-3px);
}

.hs-experts__arrow:disabled {
    cursor: default;
    opacity: 0.3;
}

.hs-experts__arrow:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

.hs-expert {
    display: flex;
    min-height: 326px;
    flex-direction: column;
    padding: 28px 32px 24px;
    background: var(--color-surface);
}

.hs-expert__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hs-expert__icon {
    margin-top: 4px;
    color: var(--color-blue);
}

.hs-expert__avatar {
    display: block;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 50%;
    background: #d4d9dd;
}

.hs-expert__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
}

.hs-expert__avatar span {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--color-paper);
    font-size: 24px;
}

.hs-expert__quote {
    margin: 23px 0 24px;
}

.hs-expert__quote p {
    margin: 0;
    color: var(--color-text);
    font-size: 21px;
    font-weight: 400;
    line-height: 29px;
}

.hs-expert__person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
}

.hs-expert__name {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.hs-expert__role {
    margin-top: 0;
    color: #a7a9a9;
    font-size: 12px;
    line-height: 16px;
}

.hs-expert__email {
    margin-top: 5px;
    color: var(--color-blue);
    font-size: 12px;
    line-height: 16px;
    word-break: break-all;
}

.hs-expert__name:hover,
.hs-expert__email:hover {
    text-decoration: underline;
}

.hs-experts .hs-action {
    margin-top: 0;
}

/* ---------- Single servicio ---------- */

.svd-hero {
    padding: 40px 0 150px;
    background: var(--color-surface);
}

.svd-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 457px;
    column-gap: 110px;
}

.svd-hero__grid.svd-hero__grid--text-only {
    grid-template-columns: 1fr;
}

.svd-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.svd-hero__title {
    margin: 77px 0 0;
    color: var(--color-text);
    font-size: 54px;
    font-weight: 300;
    line-height: 1.1;
}

.svd-hero__lead {
    max-width: 720px;
    margin: 17px 0 0;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 400;
    line-height: 29px;
    letter-spacing: -0.01em;
}

.svd-hero__body {
    max-width: 745px;
    letter-spacing: -0.01em;
    margin-top: 31px;
    color: #a7a9a9;
    font-size: 16px;
    line-height: 24px;
}

.svd-hero__body p {
    margin: 0 0 12px;
}

.svd-hero__body p:last-child {
    margin-bottom: 0;
}

.svd-hero__industries {
    margin-top: auto;
    padding-top: 48px;
}

.svd-hero__label {
    margin: 0 0 22px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.svd-chips {
    display: flex;
    max-width: 560px;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.svd-chip {
    display: inline-flex;
    height: 30px;
    align-items: center;
    padding: 0 19px;
    border-radius: 8px;
    background: #000000;
    color: var(--color-paper);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 180ms ease;
}

.svd-chip:hover,
.svd-chip:focus-visible {
    background: var(--color-blue);
}

.svd-hero__media {
    align-self: start;
    height: 550px;
    margin-top: 75px;
    overflow: hidden;
    background: #d9dde0;
}

.svd-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Banda oscura: intro + toggle + tarjetas */
.svd-band {
    padding: 82px 0 72px;
    background: var(--color-ink);
    color: var(--color-paper);
}

.svd-band__intro {
    max-width: 1110px;
    margin: 0 auto;
    font-size: 24px;
    font-weight: 300;
    line-height: 32px;
    letter-spacing: -0.015em;
    text-align: center;
}

.svd-band__intro strong {
    font-weight: 600;
}

.svd-toggle {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 65px;
}

.svd-toggle::before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: #32393f;
    content: "";
}

.svd-toggle__button {
    position: relative;
    width: 247px;
    height: 50px;
    border: 0;
    border-radius: var(--radius);
    background: #294568;
    color: #96a0ae;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 180ms ease, color 180ms ease;
}

.svd-toggle__button:hover {
    color: var(--color-paper);
}

.svd-toggle__button.is-active {
    background: var(--color-blue);
    color: var(--color-paper);
}

.svd-toggle__button:focus-visible,
.svd-card:focus-visible,
.svd-tabs__tab:focus-visible,
.svd-carousel__arrow:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-blue) 60%, transparent);
    outline-offset: 3px;
}

.svd-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 51px;
}

.svd-cards[hidden] {
    display: none;
}

.svd-card {
    position: relative;
    display: flex;
    flex: 0 0 calc((100% - 96px) / 5);
    min-width: 0;
    min-height: 213px;
    flex-direction: column;
    align-items: center;
    padding: 44px 18px 28px;
    background: var(--color-paper);
    color: var(--color-text);
    text-align: center;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.svd-card__icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    width: 17px;
    height: 17px;
    color: #cdcdcd;
    font-size: 17px;
    line-height: 0;
    transform: rotate(180deg);
}

.svd-card__icon svg {
    width: 17px;
    height: 17px;
}

.svd-card__number {
    color: var(--color-blue);
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
}

.svd-card__name {
    max-width: 180px;
    margin-top: 17px;
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
}

.svd-card.is-active,
.svd-card:hover {
    background: var(--color-blue);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
    color: var(--color-paper);
}

.svd-card.is-active .svd-card__number,
.svd-card:hover .svd-card__number,
.svd-card.is-active .svd-card__icon,
.svd-card:hover .svd-card__icon {
    color: var(--color-paper);
}

/* Elementos estructurales */
.svd-structural {
    padding: 72px 0 150px;
    background: var(--color-paper);
    scroll-margin-top: 20px;
}

.svd-tabs {
    display: flex;
    justify-content: safe center;
    gap: 24px;
    margin-top: 36px;
    overflow-x: auto;
}

.svd-tabs__tab {
    display: flex;
    /* Se reparten el ancho segun el largo de cada etiqueta (max. 220px del PSD);
       con muchas pestañas las etiquetas bajan a 2 lineas en vez de salirse. */
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 220px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 2px solid #cdcdcd;
    background: none;
    color: #cdcdcd;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: color 180ms ease, border-color 180ms ease;
}

.svd-tabs__number {
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    line-height: 16px;
}

.svd-tabs__label {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-wrap: balance;
}

/* Pista de scroll horizontal: degradado en el lado con pestañas ocultas (clases desde JS). */
.svd-tabs.has-more-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
}

.svd-tabs.has-more-left {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 64px);
    mask-image: linear-gradient(to right, transparent, #000 64px);
}

.svd-tabs.has-more-left.has-more-right {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}

.svd-tabs__tab:hover {
    color: #7d8084;
}

.svd-tabs__tab.is-active {
    border-bottom-color: var(--color-blue);
    color: #172128;
}

.svd-tabs__tab.is-active .svd-tabs__number {
    color: var(--color-blue);
}

.svd-panel {
    display: grid;
    grid-template-columns: minmax(0, 778fr) minmax(0, 557fr);
    margin-top: 51px;
    animation: svd-fade 300ms ease;
}

.svd-panel--text-only {
    grid-template-columns: 1fr;
}

/* Panel sin imagen ni cita lateral: el aire inferior del recuadro gris se
   sumaba al de la seccion (~260px hasta "Transformaciones..."). */
.svd-panel--text-only .svd-panel__content {
    padding-bottom: 48px;
}

.svd-panel--text-only .svd-panel__content > :last-child,
.svd-panel--text-only .svd-list li:last-child {
    margin-bottom: 0;
}

.svd-structural:has(.svd-panel--text-only:not([hidden])) {
    padding-bottom: 64px;
}

/* Sin imagen: intro a la izquierda y bullets a la derecha (antes media caja vacia). */
@media (min-width: 901px) {
    .svd-panel__content--split {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(48px, 6vw, 96px);
        align-items: start;
    }

    .svd-panel__details > h4:first-child {
        margin-top: 0;
    }
}

.svd-panel[hidden] {
    display: none;
}

@keyframes svd-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.svd-panel__content {
    padding: 54px 40px 72px 38px;
    background: var(--color-surface);
    letter-spacing: -0.01em;
}

.svd-panel__content > * {
    max-width: 612px;
}

.svd-panel__content h3,
.svd-panel__content h4 {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
}

.svd-panel__content h4 {
    margin: 46px 0 14px;
}

.svd-panel__content p {
    margin: 0 0 19px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19px;
}

.svd-panel__content p:last-of-type {
    margin-bottom: 0;
}

.svd-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.svd-list li {
    position: relative;
    margin-bottom: 19px;
    padding-left: 13px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 24px;
}

.svd-list li:last-child {
    margin-bottom: 0;
}

.svd-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-blue);
    content: "\2022";
}

.svd-list strong {
    color: var(--color-text);
    font-weight: 600;
}

.svd-panel__aside {
    display: grid;
    grid-template-rows: minmax(628px, 1fr) 260px;
}

.svd-panel__aside--single {
    grid-template-rows: minmax(628px, 1fr);
}

.svd-panel__aside--quote-only {
    grid-template-rows: minmax(260px, 1fr);
}

.svd-panel__media {
    position: relative;
    overflow: hidden;
    background: #d9dde0;
}

.svd-panel__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svd-panel__quote {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 40px;
    overflow: hidden;
    background: #172129 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 557 260'%3E%3Cpath d='M46 0h95L-15 260h-95zM191 0h96l161 260h-96zM642 0h95L571 260h-95z' fill='%23263347'/%3E%3C/svg%3E") center / cover no-repeat;
    text-align: center;
}

.svd-panel__quote p {
    margin: 0;
    color: var(--color-paper);
    font-size: 30px;
    font-weight: 400;
    line-height: 48px;
}

.svd-panel__quote em {
    color: var(--color-blue);
    font-family: var(--font-serif);
    font-size: 1.12em;
    font-style: italic;
}

/* Elementos potenciadores + indicadores */
.svd-potentiators {
    overflow: hidden;
    padding: 128px 0 126px;
    background: var(--color-surface);
    scroll-margin-top: 20px;
}

.svd-carousel {
    margin-top: 45px;
    /* Referencia de ancho para la tarjeta: el viewport sangra hasta el borde derecho. */
    container-type: inline-size;
}

.svd-carousel__viewport {
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.svd-carousel__track {
    display: flex;
    gap: 31px;
    transition: transform 500ms ease;
}

.svd-pcard {
    display: grid;
    /* Fluida bajo 879px (ancho del site-shell): nunca se corta por la derecha. */
    flex: 0 0 min(879px, 100cqi);
    grid-template-columns: minmax(0, 425fr) minmax(0, 454fr);
    min-height: 455px;
    background: var(--color-paper);
}

.svd-pcard__media {
    position: relative;
    overflow: hidden;
    background: #d9dde0;
}

.svd-pcard__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svd-pcard__body {
    padding: 58px 34px 32px 40px;
}

.svd-pcard__number {
    display: block;
    color: var(--color-blue);
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    line-height: 16px;
}

.svd-pcard__body h3 {
    margin: 12px 0 20px;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 29px;
}

.svd-pcard__body p {
    margin: 0 0 19px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19.5px;
}

.svd-carousel__nav {
    display: flex;
    gap: 19px;
    margin-top: 23px;
}

.svd-carousel__arrow {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-blue);
    cursor: pointer;
    transition: color 180ms ease;
}

.svd-carousel__arrow:disabled {
    color: #cdcdcd;
    cursor: default;
}

/* Sin recorrido las flechas sobran (clase desde JS, igual que en expertos). */
.svd-carousel.is-motion:not(.has-nav) .svd-carousel__nav {
    visibility: hidden;
}

.svd-stats {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 121px 0 0;
    padding: 0;
    list-style: none;
}

.svd-carousel + .svd-stats {
    margin-top: 121px;
}

.svd-heading + .svd-stats,
.svd-potentiators .site-shell > .svd-stats:first-child {
    margin-top: 0;
}

.svd-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.svd-stat__chip {
    display: inline-flex;
    height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: var(--radius);
    background: #e1eeff;
    color: var(--color-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.svd-stat__row {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-top: 32px;
}

.svd-stat__value {
    color: var(--color-text);
    font-size: 35px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.svd-stat__text {
    max-width: 215px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19px;
}

/* Casos */
.svd-cases {
    padding: 143px 0 0;
    background: var(--color-paper);
}

/* Sin potenciadores, estructurales y casos comparten fondo: no sumar ambos paddings. */
.svd-structural + .svd-cases {
    padding-top: 80px;
}

.svd-cases__header,
.ind-insights__header,
.ind-testimonials__header {
    max-width: none;
    margin-bottom: 48px;
}

.ind-insights__header {
    margin-bottom: 47px;
}

.svd-cases__header .eyebrow,
.ind-insights__header .eyebrow,
.ind-testimonials__header .eyebrow {
    margin-bottom: 2px;
}

.svd-cases__header h2,
.ind-insights__header h2,
.ind-testimonials__header h2,
.svd-cases__header h2 em,
.ind-insights__header h2 em,
.ind-testimonials__header h2 em {
    letter-spacing: normal;
}

.hs-action .button {
    padding: 0 19px;
    gap: 10px;
}

/* ---------- Single industria ---------- */

.ind-hero {
    overflow: hidden;
    padding: 40px 0 59px;
    background: var(--color-surface);
}

.ind-hero__media {
    width: min(1005px, 100%);
    height: 550px;
    margin: 45px auto 0;
    overflow: hidden;
    background: #d9dde0;
}

.ind-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ind-hero__content {
    text-align: center;
}

.ind-hero__title {
    margin: 36px 0 0;
    color: var(--color-blue);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.ind-hero__title--solo {
    margin-top: 48px;
    font-size: 54px;
    font-weight: 300;
    line-height: 1.1;
}

.ind-hero__lead {
    max-width: 930px;
    margin: 8px auto 0;
    color: var(--color-text);
    font-size: 29px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -0.012em;
}

.ind-hero__body {
    max-width: 940px;
    margin: 24px auto 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 20px;
}

.ind-hero__body p {
    margin: 0 0 10px;
}

.ind-hero__body p:last-child {
    margin-bottom: 0;
}

/*
 * Franja de logos de la industria: componente global (.logo-strip en main.css,
 * template-parts/global/client-logos.php); centrados y quietos si caben. Aqui
 * solo el margen y el tono propios.
 */
.ind-logos {
    margin-top: 87px;
}

.ind-logos .logo-strip__img {
    filter: grayscale(1) contrast(0.7);
    opacity: 0.45;
}

/* Insights: banda oscura con tarjetas que cruzan hacia el gris. */
.ind-insights {
    --ind-insights-pb: 121px;
    position: relative;
    isolation: isolate;
    padding: 144px 0 var(--ind-insights-pb);
    background: var(--color-surface);
}

/* Con testimonios a continuacion (mismo fondo) el espacio ya lo da .ind-insights. */
.ind-insights + .ind-testimonials {
    padding-top: 0;
}

.ind-insights::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 calc(193px + var(--ind-insights-pb));
    background: var(--color-ink);
    content: "";
}

.ind-insights__header {
    color: var(--color-paper);
}

.ind-insights .hs-card--inset .hs-card__label {
    margin-top: 2px;
}

/* Testimonios */
.ind-testimonials {
    padding: 121px 0 140px;
    background: var(--color-surface);
}

.ind-testimonials__header h2 {
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.ind-testimonials__header .eyebrow {
    margin-bottom: 12px;
}

.ind-testimonials__header {
    margin-bottom: 44px;
}

.ind-testimonial {
    position: relative;
}

.ind-testimonial__slide {
    display: grid;
    grid-template-columns: minmax(0, 887fr) minmax(0, 435fr);
    gap: 12px;
    min-height: 550px;
    animation: svd-fade 400ms ease;
}

.ind-testimonial__slide[hidden] {
    display: none;
}

.ind-testimonial__content {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 50px 27px 26px 31px;
    background: var(--color-ink);
    color: var(--color-paper);
}

.ind-testimonial__content > :not(.ind-testimonial__pattern) {
    position: relative;
}

.ind-testimonial__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ind-testimonial__quote {
    max-width: 800px;
    margin: 0;
    padding-left: 10px;
}

.ind-testimonial__quote p {
    margin: 0;
    color: #9a9b9e;
    font-size: 16px;
    line-height: 24px;
}

.ind-testimonial__metrics {
    display: flex;
    margin: 42px 0 0;
    padding-left: 8px;
}

.ind-testimonial__metrics div {
    display: flex;
    width: 292px;
    /* <dt> va primero en el HTML; visualmente la cifra queda arriba (alineada). */
    flex-direction: column-reverse;
    justify-content: flex-end;
}

.ind-testimonial__metrics dd {
    margin: 0;
    color: var(--color-blue);
    font-size: 70px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ind-testimonial__metrics dd span {
    font-size: 0.68em;
    letter-spacing: 0;
}

.ind-testimonial__metrics dt {
    margin-top: 8px;
    color: var(--color-paper);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.ind-testimonial__person {
    display: flex;
    flex-direction: column;
    margin: auto 0 0;
    padding-top: 24px;
    border-top: 1px solid #4a5056;
}

.ind-testimonial__person strong {
    font-size: 25px;
    font-weight: 400;
    line-height: 30px;
}

.ind-testimonial__person span {
    margin-top: 2px;
    color: #8e8e8e;
    font-size: 14px;
    line-height: 18px;
}

.ind-testimonial__metrics + .ind-testimonial__person,
.ind-testimonial__quote + .ind-testimonial__person {
    margin-top: auto;
}

.ind-testimonial__content .ind-testimonial__person {
    margin-top: auto;
}

.ind-testimonial__portrait {
    position: relative;
    overflow: hidden;
    background: #d9dde0;
}

.ind-testimonial__portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.24);
    transform-origin: 42% 92%;
}

.ind-testimonial__marks {
    position: absolute;
    top: 20px;
    right: 21px;
    color: var(--color-paper);
    line-height: 0;
}

/* Flechas y contador (global/slide-nav.php), abajo a la derecha del bloque de texto. */
.ind-testimonial__nav {
    position: absolute;
    right: calc((100% - 12px) * 435 / 1322 + 34px);
    bottom: 20px;
    z-index: 2;
}

/* ---------- Responsive ---------- */

@media (max-width: 1400px) {
    .svd-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
        column-gap: 64px;
    }

    .svd-tabs {
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 1100px) {
    .svd-card {
        flex-basis: calc((100% - 48px) / 3);
    }

    .svd-panel {
        grid-template-columns: 1fr;
    }

    .svd-panel__aside {
        grid-template-rows: 360px auto;
    }

    .svd-panel__quote {
        padding: 48px 32px;
    }

    .hs-card-grid {
        --hs-card-cols: 2;
    }

    .hs-experts__grid {
        --hs-experts-per-view: 2;
    }

    .svd-stats {
        flex-wrap: wrap;
    }

    .ind-testimonial__slide {
        grid-template-columns: 1fr;
    }

    .ind-testimonial__portrait {
        order: -1;
        height: 420px;
    }

    .ind-testimonial__nav {
        right: 22px;
    }

    /* Areas tactiles >= 40px y texto >= 12px (tablet y movil, tactil). */
    .svd-back {
        height: 40px;
        font-size: 12px;
    }

    .svd-chip {
        height: 40px;
        font-size: 12px;
    }

    .svd-carousel__nav {
        gap: 10px;
    }

    /* Tarjeta fluida (imagen/texto proporcionales): menos padding para el texto. */
    .svd-pcard__body {
        padding: 40px 28px 28px 32px;
    }

    .svd-carousel__arrow {
        min-width: 40px;
        min-height: 40px;
        align-items: center;
        justify-content: center;
    }

    .hs-expert__email {
        margin: -7px 0 -12px;
        padding: 12px 0;
    }

    /* Nombre: 20px de linea + 10px arriba/abajo = 40px tactiles, sin mover el layout. */
    .hs-expert__name {
        position: relative;
        z-index: 1;
        margin: -10px 0;
        padding: 10px 0;
    }

    /* Con scroll horizontal las pestañas no se encogen: ancho de su etiqueta (max. 220px). */
    .svd-tabs__tab {
        flex: 0 0 auto;
    }

    /* Tablet: el padding de escritorio deja ~290px de aire entre secciones. */
    .svd-structural {
        padding-bottom: 96px;
    }

    .svd-potentiators {
        padding: 96px 0;
    }

    .svd-cases {
        padding-top: 96px;
    }

    .svd-panel--text-only .svd-panel__content {
        padding-bottom: 40px;
    }
}

@media (max-width: 760px) {
    .ind-insights__header h2,
    .svd-cases__header h2,
    .ind-testimonials__header h2 {
        overflow-wrap: break-word;
    }

    /* El em (1.185em, sin tracking) desbordaba el titulo a 360px. */
    .svd-cases__header h2 em,
    .ind-insights__header h2 em,
    .ind-testimonials__header h2 em {
        font-size: 1.12em;
        letter-spacing: -0.025em;
    }

    .svd-hero {
        padding: 24px 0 64px;
    }

    .svd-hero__grid {
        grid-template-columns: 1fr;
    }

    .svd-hero__title {
        margin-top: 36px;
        font-size: 38px;
    }

    .svd-hero__lead {
        font-size: 20px;
        line-height: 26px;
    }

    .svd-hero__media {
        height: 360px;
        margin-top: 40px;
    }

    .svd-hero__industries {
        padding-top: 36px;
    }

    .svd-band {
        padding: 56px 0 48px;
    }

    .svd-band__intro {
        font-size: 19px;
        line-height: 27px;
    }

    .svd-toggle {
        gap: 12px;
        margin-top: 36px;
    }

    .svd-toggle::before {
        display: none;
    }

    .svd-toggle__button {
        width: auto;
        flex: 1 1 0;
        padding: 0 10px;
        font-size: 14px;
    }

    .svd-cards {
        gap: 12px;
        margin-top: 32px;
    }

    .svd-card {
        flex-basis: calc((100% - 12px) / 2);
        min-height: 160px;
        padding: 32px 12px 20px;
    }

    .svd-card__number {
        font-size: 36px;
    }

    .svd-card__name {
        margin-top: 14px;
        font-size: 18px;
        line-height: 22px;
    }

    .svd-heading {
        font-size: 36px;
    }

    .svd-structural,
    .svd-potentiators {
        padding: 64px 0;
    }

    .svd-structural {
        padding-top: 48px;
    }

    .svd-tabs {
        margin-top: 32px;
    }

    .svd-panel {
        margin-top: 28px;
    }

    .svd-panel__content {
        padding: 32px 20px 40px;
    }

    .svd-panel__content h3,
    .svd-panel__content h4 {
        font-size: 20px;
        line-height: 25px;
    }

    .svd-panel__aside {
        grid-template-rows: 260px auto;
    }

    .svd-panel__quote p {
        font-size: 22px;
        line-height: 34px;
    }

    .svd-pcard {
        flex-basis: calc(100vw - 3rem);
        grid-template-columns: 1fr;
        grid-template-rows: 240px auto;
    }

    .svd-pcard__body {
        padding: 28px 20px;
    }

    .svd-stats {
        flex-direction: column;
        gap: 36px;
        margin-top: 64px;
    }

    .svd-carousel + .svd-stats {
        margin-top: 64px;
    }

    .svd-cases {
        padding-top: 64px;
    }

    .svd-structural + .svd-cases {
        padding-top: 48px;
    }

    .hs-card-grid {
        --hs-card-cols: 1;
        --hs-card-gap: 20px;
    }

    .hs-experts__grid {
        --hs-experts-per-view: 1;
    }

    .hs-experts__controls {
        flex-wrap: wrap;
    }

    .hs-card {
        min-height: 420px;
    }

    .hs-experts {
        padding: 72px 0 72px;
    }

    .hs-experts__title {
        font-size: 28px;
    }

    .hs-expert {
        min-height: 0;
    }

    .hs-expert__quote p {
        font-size: 18px;
        line-height: 25px;
    }

    .ind-hero {
        padding: 24px 0 40px;
    }

    .ind-hero__media {
        height: 240px;
        margin-top: 28px;
    }

    .ind-hero__lead {
        font-size: 21px;
        line-height: 28px;
    }

    .ind-hero__title--solo {
        margin-top: 32px;
        font-size: 38px;
    }

    .ind-logos {
        margin-top: 40px;
    }

    .ind-insights {
        --ind-insights-pb: 64px;
        padding-top: 64px;
    }

    .ind-testimonials {
        padding: 64px 0;
    }

    .ind-testimonial__portrait {
        height: 320px;
    }

    .ind-testimonial__content {
        padding: 32px 20px 64px;
    }

    .ind-testimonial__quote {
        padding-left: 0;
    }

    .ind-testimonial__metrics {
        flex-wrap: wrap;
        gap: 24px 32px;
        margin-bottom: 32px;
        padding-left: 0;
    }

    .ind-testimonial__metrics div {
        width: auto;
    }

    .ind-testimonial__metrics dd {
        font-size: 52px;
    }

    .ind-testimonial__nav {
        right: 12px;
        bottom: 10px;
    }
}

@media (max-width: 640px) {
    /* Titulos de seccion (48px / antetitulo 30px) ocupaban 4-5 lineas a 390px:
       mismo tamaño que .svd-heading en movil. */
    .svd-cases__header h2,
    .ind-insights__header h2,
    .ind-testimonials__header h2 {
        font-size: 36px;
        line-height: 1.12;
    }

    .svd-cases__header .eyebrow,
    .ind-insights__header .eyebrow,
    .ind-testimonials__header .eyebrow {
        font-size: 20px;
        line-height: 1.3;
    }
}

/* ---------- Interacciones (assets/js/pages/hacemos-singles.js + motion.js) ---------- */

/* Toggle: indicador que se desliza bajo el boton activo (el texto queda encima). */
.svd-toggle.has-indicator .svd-toggle__button.is-active {
    background: #294568;
}

.svd-toggle__label {
    position: relative;
    z-index: 2;
}

.svd-toggle__indicator {
    position: absolute;
    z-index: 1;
    border-radius: var(--radius);
    background: var(--color-blue);
    pointer-events: none;
}

/* Pestañas: subrayado FLIP (sustituye al borde azul de la pestaña activa). */
.svd-tabs.has-indicator {
    position: relative;
}

.svd-tabs.has-indicator .svd-tabs__tab.is-active {
    border-bottom-color: #cdcdcd;
}

.svd-tabs__indicator {
    position: absolute;
    background: var(--color-blue);
    pointer-events: none;
}

/* Con GSAP el panel entra desde JS (sin el keyframe CSS). */
.svd-structural.is-motion .svd-panel,
.is-motion .ind-testimonial__slide {
    animation: none;
}

/* Carrusel potenciadores: arrastre + tarjeta activa. */
.svd-carousel__viewport,
.ind-testimonial {
    touch-action: pan-y;
}

.svd-carousel__viewport.is-draggable {
    cursor: grab;
}

.svd-carousel__viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.svd-carousel.is-motion .svd-pcard {
    transition: opacity 600ms cubic-bezier(0.215, 0.61, 0.355, 1), transform 600ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.svd-carousel.is-motion .svd-pcard.is-dim {
    opacity: 0.45;
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .svd-carousel__track,
    .hs-card__media img,
    .svd-carousel.is-motion .svd-pcard {
        transition: none;
    }
}
