/* =========================
   HERO HOME LAYOUT
========================= */

.hero--home {
    min-height: 100vh;
    padding: 150px 0 70px;
}

.home {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    grid-template-rows: auto auto;
    column-gap: 60px;
    row-gap: 30px;
    align-items: center;
}

.home__content {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.calc {
    grid-column: 2;
    grid-row: 1;
}

.home__registered {
    grid-column: 2;
    grid-row: 2;
}

/* =========================
   HOME — CONTENT
========================= */

/* Título: Poppins 60/700 · line-height 60 (1) · #FFF, span dorado */
.home__title {
    max-width: 538px;
    font-size: clamp(28px, 4vw, 60px);
    font-weight: 700;
    line-height: 1;                         /* 60 / 60 */
    color: #FFF;
    margin-bottom: 56px;                    /* título → subtítulo */
    text-shadow: 0 6px 10px rgba(0, 0, 0, 0.15),
                 0 2px 3px rgba(0, 0, 0, 0.30);
}

.home__title span {
    color: var(--gold-400);
}

/* Subtítulo: Poppins 24/400 · line-height 30 (1.25) · #FFF */
.home__description {
    max-width: 468px;
    color: #FFF;
    font-size: clamp(15px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.25;                      /* 30 / 24 */
    margin-bottom: 45px;                    /* subtítulo → iconos */
}

.home__features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFF;
}

/* Icono simple blanco 36×34 (sin caja) */
.home__feature i {
    flex-shrink: 0;
    width: 36px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #FFF;
    font-size: 30px;
}

.home__feature img {
    flex-shrink: 0;
    width: 36px;
    height: 34px;
    object-fit: contain;
}

/* Bloque de texto: columna, gap 4, padding 8/12/0/12 · siempre a la izquierda */
.home__feature > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    min-width: 150px;
    padding: 8px 12px 0 12px;
}

/* Título del feature: dorado · Poppins 22.5/700 · line-height 26 (escala en móvil) */
.home__feature strong {
    display: block;
    color: var(--gold-400);
    font-size: clamp(17px, 1.9vw, 22.5px);
    font-weight: 700;
    line-height: 1.156;                     /* 26 / 22.5 */
}

/* Subtítulo del feature: #FFF · Poppins 15.8/400 · line-height 24 (escala en móvil) */
.home__feature span {
    color: #FFF;
    font-size: clamp(13px, 1.3vw, 15.8px);
    font-weight: 400;
    line-height: 1.5;                       /* 24 / 15.8 ≈ 1.5 */
}

/* =========================
   REGISTERED / SBS
========================= */

.home__registered {
    display: flex;
    width: 100%;
    max-width: 426px;          /* misma caja que la calculadora */
    margin-left: auto;         /* alinear bajo la calculadora */
    padding: 0 14px;
    flex-direction: column;
    align-items: center;       /* contenido (texto + logo) centrado */
    gap: 27px;
}

/* "Estamos registrados en:" · #FFF · Poppins 20/600 · line-height 22 */
.home__registered > span {
    align-self: stretch;
    display: block;
    color: #FFF;
    text-align: center;
    font-size: clamp(16px, 1.7vw, 20px);
    font-weight: 600;
    line-height: 1.1;                       /* 22 / 20 */
}

.home__sbs-link {
    display: inline-block;
    transition: var(--transition);
}

.home__sbs-link:hover {
    transform: translateY(-2px);
    opacity: .85;
}

/* Imagen SBS: 151.96 × 84 con doble drop-shadow */
.home__sbs-img {
    width: 151.959px;
    height: auto;
    aspect-ratio: 151.96 / 84;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.30))
            drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

/* =========================
   CALCULATOR CARD
========================= */

/* Card: 426 (máx) · padding 32 · gap 20 · radius 30 · bg negro .30 */
.calc {
    width: 100%;
    max-width: 426px;
    margin-left: auto;

    background: rgba(0, 0, 0, .30);
    border-radius: 30px;
    padding: 32px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 0 80px 0 rgba(0, 0, 0, .15);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Título: #FFF · Poppins 18.5/600 · line-height 23 · centrado */
.calc__title {
    align-self: stretch;
    color: #FFF;
    text-align: center;
    font-size: 18.5px;
    font-weight: 600;
    line-height: 23px;
}

/* Tabs: pill #F8FEF2 · padding 4 · gap 4 · full width */
.calc__tabs {
    display: flex;
    align-self: stretch;
    gap: 4px;
    padding: 4px;
    background: #F8FEF2;
    border-radius: 100px;
}

/* Item tab: flex 1 · padding 20/28 · texto #231F20 15.8/500 */
.calc__tab {
    flex: 1 0 0;
    border: none;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    padding: 20px 16px;              /* horizontal reducido para que quepa el texto */
    border-radius: 100px;
    background: transparent;

    font-family: inherit;
    font-size: 15.8px;
    font-weight: 500;
    line-height: 24px;
    color: #231F20;
    white-space: nowrap;

    transition: var(--transition);
}

.calc__tab--active {
    background: var(--gold-400);          /* #F9B410 */
    color: #231F20;
}

.calc__fields {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Input row: padding 12/16 · radius 12 · borde sutil · bg #FFF */
.calc__field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(11, 11, 11, 0.10);
    background: #FFF;
}

/* Bandera: 45×45 (el PNG ya trae su forma, sin border-radius) */
.calc__flag {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Info moneda: nombre + etiqueta, gap 8px */
.calc__field-info {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Nombre moneda: #231F20 · Poppins 17.8/700 · lh 24 */
.calc__field-info strong {
    display: block;
    color: #231F20;
    font-size: 17.8px;
    font-weight: 700;
    line-height: 24px;
}

/* Etiqueta: #474545 · Poppins 12/500 · lh 17 */
.calc__field-info span {
    color: #474545;
    font-size: 12px;
    font-weight: 500;
    line-height: 17px;
}

/* Texto del input: #231F20 · Poppins 17.8/700 · alineado a la derecha */
.calc__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    text-align: right;
    font-family: inherit;
    font-size: 17.8px;
    font-weight: 700;
    line-height: 24px;
    color: #231F20;
}

/* Botón swap: 52×52 dorado, centrado entre los dos inputs */
.calc__swap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: var(--gold-400);
    color: #231F20;
    font-size: 20px;

    display: grid;
    place-items: center;

    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);

    /* solo transiciona color/sombra; el giro lo hace el JS al invertir
       (evita que el transform se quede "pegado" con :hover en táctil) */
    transition: background .3s ease, box-shadow .3s ease;
    z-index: 2;
}

.calc__swap i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: rotate(90deg);       /* exchange horizontal → vertical (⇅) */
}

.calc__swap i::before {
    display: block;
    line-height: 1;
}

@media (hover: hover) {
    .calc__swap:hover {
        background: var(--gold-500);
    }
}

/* Ahorro: #FFF · Poppins 14/700 · lh 22 · centrado */
.calc__savings {
    align-self: stretch;
    margin: 0;
    text-align: center;
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
}

.calc__savings strong {
    color: #FFF;
}

/* Botón: alto 52 · pill · borde negro · bg #F9B410 · texto 15.8/700 */
.calc__submit {
    align-self: stretch;
    height: 52px;
    margin-bottom: 23px;
    padding: 12px 20px;
    cursor: pointer;

    border-radius: 100px;
    border: 1px solid #000;
    background: var(--gold-400);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

    color: #231F20;
    font-family: inherit;
    font-size: 15.8px;
    font-weight: 700;
    line-height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    transition: var(--transition);
}

.calc__submit i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 16px;
}

.calc__submit i::before {
    display: block;
    line-height: 1;
}

.calc__submit:hover {
    background: var(--gold-500);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(249, 180, 16, .45);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

    .hero--home {
        aspect-ratio: auto;          /* alto por contenido (calc + texto) */
        min-height: auto;
        padding: 120px 0 60px;
    }

    /* En móvil: primero la calculadora, luego el resto */
    .home {
        display: flex;
        flex-direction: column;
        gap: 36px;
    }

    .calc {
        order: 1;
        width: 100%;
        max-width: 426px;
        margin: 0 auto;
    }

    /* El contenido del hero se mantiene alineado a la izquierda (como en
       desktop); centrar los features junto a los iconos se ve mal. */
    .home__content {
        order: 2;
    }

    .home__title {
        margin-bottom: 28px;
    }

    .home__description {
        margin-bottom: 32px;
    }

    .home__features {
        align-items: flex-start;
    }

    .home__registered {
        order: 3;
        margin: 0 auto;             /* el bloque SBS sí va centrado bajo la calc */
    }
}

@media (max-width: 576px) {

    .hero--home {
        padding: 100px 0 48px;
    }

    .calc {
        max-width: 340px;          /* calc más compacta en móvil */
        padding: 18px;
        gap: 16px;
    }

    .calc__title {
        font-size: 16px;
        line-height: 20px;
    }

    .calc__tab {
        padding: 12px 8px;
        font-size: 13px;
    }

    .calc__flag {
        width: 40px;
        height: 40px;
    }

    .calc__field {
        padding: 10px 12px;
        gap: 10px;
    }

    .calc__field-info {
        gap: 4px;
    }

    .calc__input {
        font-size: 16px;
    }

    .calc__field-info strong {
        font-size: 15px;
    }

    .calc__swap {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .calc__submit {
        margin-bottom: 12px;
    }
}

/* =========================
   SECCIÓN TRANSFERENCIAS
========================= */

.transfer {
    background: #F9B410;
    padding: 56px 0;
}

.transfer__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-bottom: 40px;
}

/* Ícono banco: 160×147 (aspect 123/113) */
.transfer__head-icon {
    width: clamp(104px, 12vw, 160px);
    height: auto;
    aspect-ratio: 123 / 113;
    object-fit: contain;
    flex-shrink: 0;
}

.transfer__head-text {
    max-width: 494px;
    text-align: center;
}

/* Título: Poppins 40/700 · lh 40 · 1ª línea #FFF, 2ª línea #000 */
.transfer__head-title {
    margin: 0;
    color: #FFF;
    font-family: "Poppins", sans-serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1;
}

.transfer__head-title span {
    color: #000;
}

/* Subtítulo: #000 · Poppins 16/400 · lh 20 */
.transfer__head-sub {
    margin: 8px 0 0;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 400;
    line-height: 1.25;
}

/* ----- Grid de tarjetas ----- */

.transfer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 81px;
    align-items: start;
}

/* Columna: 320px, centrada, gap 20 */
.transfer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Título de columna: #000 · Poppins 20/700 · lh 40 */
.transfer__title {
    margin: 0;
    color: #000;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: clamp(17px, 1.7vw, 20px);
    font-weight: 700;
    line-height: 2;                 /* 40 / 20 */
}

/* Card: alto 102 · padding 10/15 · gap 15 · radius 15 · bg #FFF · sombra M3/5 */
.transfer__card {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 15px;

    min-height: 102px;
    padding: 12px 16px;

    background: #FFF;
    border: 1px solid #FFF;
    border-radius: 15px;

    box-shadow: 0 8px 12px 6px rgba(0, 0, 0, 0.15),
                0 4px 4px 0 rgba(0, 0, 0, 0.30);
}

/* Ícono card: 83×72 (algo menor para dar sitio al texto en 1 línea) */
.transfer__icon {
    width: clamp(58px, 5.4vw, 74px);
    height: auto;
    aspect-ratio: 83 / 72;
    object-fit: contain;
    flex-shrink: 0;
}

/* Texto: #000 · Poppins 16/400 · lh 25 */
.transfer__text {
    text-align: left;
    font-family: "Poppins", sans-serif;
    line-height: 25px;
}

.transfer__text span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;        /* una sola línea (como Figma) */
}

/* Destacado: #F9B410 · Poppins 24/700 · lh 25 */
.transfer__text strong {
    display: block;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    line-height: 25px;
    color: #F9B410;
}

.transfer__text small {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;        /* una sola línea (como Figma) */
}

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

@media (max-width: 900px) {

    .transfer__grid {
        grid-template-columns: minmax(0, 360px);
        gap: 22px;
    }

    /* En móvil se reducen ícono y fuentes (con clamp) para mantener el
       texto en UNA sola línea sin desbordar, incluso en pantallas chicas. */
    .transfer__icon {
        width: clamp(44px, 12vw, 60px);
    }

    .transfer__text span,
    .transfer__text small {
        font-size: clamp(11px, 3.3vw, 15px);
    }

    .transfer__text strong {
        font-size: clamp(16px, 5vw, 22px);
    }
}

@media (max-width: 576px) {

    .transfer {
        padding: 44px 0;
    }

    .transfer__head {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 30px;
    }

    .transfer__head-title br {
        display: none;
    }
}

/* =========================
   SECCIÓN BANCOS (carrusel)
========================= */

/* Sección: padding 30/10 · gap 30 · centrada */
.banks {
    padding: 40px 10px;
    background: var(--white);
}

/* Título: Poppins 24/700 · #000, "principales bancos" dorado */
.banks__title {
    max-width: 675px;
    margin: 0 auto 30px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 700;
    line-height: 1.4;
    color: #000;
}

.banks__title span {
    color: #F9B410;
}

.banks__carousel {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Flechas: 52×52 · pill · #F9B410 · sombra Figma */
.banks__nav {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 100px;

    background: #F9B410;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);

    display: grid;
    place-items: center;

    transition: var(--transition);
}

.banks__nav-icon {
    display: block;
    width: 8px;
    height: 14px;
}

.banks__nav:hover {
    background: var(--gold-500);
    transform: translateY(-2px);
}

.banks__nav:disabled {
    opacity: .35;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.banks__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.banks__track {
    display: flex;
    gap: 24px;
    padding: 8px 4px;
    will-change: transform;   /* el carrusel se mueve por transform (loop infinito) */
}

/* 5 por vista (desktop) */
.banks__slide {
    flex: 0 0 calc((100% - 24px * 4) / 5);
}

/* Card estándar: alto fijo + padding uniforme; el logo se centra y se
   limita por max-height/width para que todos se vean igual (el padding
   de Figma variaba según la imagen). */
.banks__card {
    height: 100px;
    padding: 24px;

    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.15);

    display: grid;
    place-items: center;

    transition: transform .3s ease;
}

.banks__card:hover {
    transform: translateY(-4px);
}

.banks__logo {
    max-width: 100%;
    max-height: 46px;
    object-fit: contain;
}

.banks__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.banks__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    background: var(--black-100);
    transition: var(--transition);
}

.banks__dot--active {
    width: 26px;
    background: var(--gold-400);
}

/* ----- Responsive (cambia cuántos bancos se ven) ----- */

@media (max-width: 991px) {
    .banks__slide {
        flex-basis: calc((100% - 24px * 2) / 3);   /* 3 por vista */
    }
}

@media (max-width: 680px) {
    .banks__slide {
        flex-basis: calc((100% - 24px) / 2);       /* 2 por vista */
    }
}

@media (max-width: 480px) {
    .banks {
        padding: 50px 0;
    }

    .banks__carousel {
        gap: 8px;
    }

    .banks__nav {
        width: 44px;
        height: 44px;
    }

    .banks__slide {
        flex-basis: 100%;                          /* 1 por vista */
    }
}

/* =========================
   SECCIÓN PASOS / ¿CÓMO CAMBIAR?
========================= */

.steps {
    position: relative;
    z-index: 2;                 /* sobre .diferencia para que asome el chanchito */
    padding: 80px 0 70px;
    text-align: center;
    background:
        url('/assets/images/background.jpeg') center/cover no-repeat,
        #f7f7f7;
}

/* Título: Poppins 36/700 · lh 36 · #000, "Good Money?" dorado */
.steps__title {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1;
    color: #000;
    margin-bottom: 24px;            /* gap 24 hacia el subtítulo */
}

.steps__title span {
    color: #F9B410;
}

/* Subtítulo: Poppins 18.5/600 · lh 23 · #000 */
.steps__subtitle {
    max-width: 662px;
    margin: 0 auto 56px;            /* 56px hacia los pasos */
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: clamp(15px, 1.8vw, 18.5px);
    font-weight: 600;
    line-height: 1.24;
    color: #000;
}

.steps__grid {
    /* Altura fija de la banda de imágenes: mantiene alineados números,
       imágenes y textos entre las 3 columnas (como en el figma). */
    --step-img-h: clamp(150px, 18vw, 210px);

    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;        /* columnas alineadas por arriba */
    gap: 10px;
    margin-bottom: 50px;       /* 50px hacia el botón */
}

.steps__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Nº de paso: badge dorado 52×51 · borde blanco · drop-shadow · nº 36/700 */
.steps__num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 24px;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.80);
    background: #F9B410;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1;

    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.steps__img {
    width: 100%;
    max-width: 230px;
    height: var(--step-img-h);     /* banda fija: alinea las 3 imágenes */
    object-fit: contain;
    object-position: center bottom;
    margin: 0 auto 18px;
    display: block;
}

.steps__name {
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    font-weight: 800;
    color: var(--black-900);
    margin-bottom: 8px;
}

.steps__text {
    max-width: 240px;
    margin: 0 auto;
    font-size: clamp(.85rem, 1.2vw, .95rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--black-900);
}

/* Flecha entre pasos (SVG Figma), centrada sobre la banda de imágenes */
.steps__arrow {
    align-self: start;
    display: grid;
    place-items: center;
    /* alto del número (52) + su margen (24) + mitad de la banda − mitad del icono */
    margin-top: calc(76px + (var(--step-img-h) / 2) - 8px);
}

.steps__arrow-icon {
    display: block;
    width: 46px;
    height: 15px;
}

/* CTA "Cambia ahora": 291×60 · radius 15 · #F9B410 · texto 24/700 */
.steps__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 0 auto;
    height: 60px;
    padding: 16px 36px 16px 34px;
    border-radius: 15px;

    background: #F9B410;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 4px 10px 0 rgba(249, 180, 16, 0.50);
    transition: var(--transition);
}

.steps__cta-icon {
    display: block;
    width: 27px;
    height: 18px;
    flex-shrink: 0;
}

.steps__cta:hover {
    background: var(--gold-500);
    transform: translateY(-2px);
}

/* Texto seguro: Poppins 18.5/600 · #0A0A0A · a 30px del botón */
.steps__secure {
    margin-top: 30px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: clamp(14px, 1.8vw, 18.5px);
    font-weight: 600;
    line-height: 1.24;
    color: #0A0A0A;
}

/* Chanchito: asoma en el borde entre .steps y .diferencia */
.steps__pig {
    position: absolute;
    right: clamp(0px, 4vw, 60px);
    bottom: 0;
    width: clamp(150px, 17vw, 240px);
    height: auto;
    transform: translateY(42%);
    z-index: 3;
    pointer-events: none;
}

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

@media (max-width: 900px) {
    .steps__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 420px;
        margin: 0 auto 44px;
    }

    .steps__arrow {
        align-self: center;
        margin-top: 0;
        transform: rotate(90deg);
    }

    .steps__pig {
        width: clamp(120px, 22vw, 170px);
        right: 8px;
    }
}

@media (max-width: 576px) {
    .steps {
        padding: 56px 0 54px;
    }

    .steps__subtitle {
        margin-bottom: 40px;
    }

    /* En móvil el chanchito estorba: lo ocultamos */
    .steps__pig {
        display: none;
    }
}

/* =========================
   SECCIÓN TESTIMONIOS
========================= */

.testi {
    position: relative;
    z-index: 2;              /* el personaje asoma sobre la sección promo */
    padding: 80px 0 20px;
    background:
        url('/assets/images/background.jpeg') center/cover no-repeat,
        var(--white);
}

/* Título sobre el carrusel (columna derecha, fila 1) */
/* Título alineado a la izquierda · Poppins 48/700 · "clientes opinan" dorado */
.testi__title {
    text-align: left;
    font-family: "Poppins", sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: #000;
    margin: 0 0 32px;
}

.testi__title span {
    color: #F9B410;
}

/* Personaje (izq.) + contenido (título + carrusel), centrados verticalmente */
.testi__layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.testi__character {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.testi__character::before {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(249, 180, 16, .14), rgba(255, 255, 255, 0) 68%);
    z-index: -1;
}

.testi__character img {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin-bottom: -60px;       /* los pies sobresalen a la sección siguiente */
}

/* ----- Carrusel ----- */
.testi__carousel {
    position: relative;
    width: 100%;
    min-width: 0;   /* evita que el carrusel desborde (card cortada) */
}

.testi__viewport {
    overflow: hidden;
}

.testi__track {
    display: flex;
    gap: 24px;
    padding: 14px 4px;
    will-change: transform;   /* loop infinito por transform (igual que Bancos) */
}

/* Card: 500px · padding 32 · gap 24 · radius 30. Las no-activas al 40%. */
.testi__card {
    flex: 0 0 500px;
    max-width: 500px;

    background: #FFF;
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 0 80px 0 rgba(0, 0, 0, 0.08);

    opacity: 0.4;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;

    transition: opacity .4s ease;
}

/* La tarjeta activa (siempre el primer hijo del track) al 100% */
.testi__track > .testi__card:first-child {
    opacity: 1;
}

/* Estrellas: 178×55 */
.testi__stars {
    width: clamp(130px, 15vw, 178px);
    height: auto;
    aspect-ratio: 178 / 55;
}

/* Testimonio: #000 · Poppins 15.8/500 · lh 24 */
.testi__text {
    margin: 0;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-size: 15.8px;
    font-weight: 500;
    line-height: 24px;
}

.testi__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* Avatar: 40×40 circular (SVG con fondo propio) */
.testi__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

.testi__avatar svg {
    display: block;
    width: 40px;
    height: 40px;
}

.testi__author-info {
    text-align: left;
}

/* Nombre: #000 · Poppins 17.8/700 · lh 24 */
.testi__author-info strong {
    display: block;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-size: 17.8px;
    font-weight: 700;
    line-height: 24px;
}

/* Rol: #474545 · Poppins 14/500 · lh 22 */
.testi__author-info small {
    color: #474545;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

/* ----- Flechas (encima de los bordes de la tarjeta) ----- */
.testi__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 100px;

    background: #FFF;
    color: #231F20;

    display: grid;
    place-items: center;

    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.testi__nav i {
    display: block;
    line-height: 1;
    font-size: 24px;
}

.testi__nav:hover {
    background: var(--gold-400);
    color: var(--black-900);
}

.testi__nav:disabled {
    opacity: .4;
    cursor: default;
}

.testi__nav--prev { left: -8px; }
.testi__nav--next { right: -8px; }

.testi__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.testi__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    background: var(--black-100);
    transition: var(--transition);
}

.testi__dot--active {
    width: 26px;
    background: var(--gold-400);
}

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

@media (max-width: 991px) {
    /* En móvil: una columna, título y card centrados, personaje debajo */
    .testi__layout {
        flex-direction: column;
        gap: 24px;
        max-width: 560px;
        margin: 0 auto;
    }

    .testi__content {
        order: 1;
        width: 100%;
        align-items: center;
    }

    .testi__title {
        text-align: center;
        margin-bottom: 24px;
    }

    .testi__card {
        flex-basis: 100%;
        max-width: 100%;
        opacity: 1;              /* una card a la vez: sin atenuar */
    }

    /* Texto de la card más pequeño que en desktop */
    .testi__text {
        font-size: 14px;
        line-height: 22px;
    }

    /* En móvil se navega con los puntos; las flechas se solapan → ocultas */
    .testi__nav {
        display: none;
    }

    .testi__dots {
        display: flex;
    }

    .testi__character {
        order: 2;
    }

    .testi__character img {
        max-width: 240px;
        margin: 0 auto -40px;    /* pies sobresalen a la siguiente sección */
    }
}

@media (max-width: 576px) {
    .testi {
        padding: 60px 0;
    }

    .testi__card {
        padding: 28px 22px;
    }
}
