/* =========================================================
   TESTIMONIOS REALES
========================================================= */

.testimonials-real .testimonials-header {
    margin-bottom: 48px;
}

.testimonials-grid-real {
    align-items: stretch;
}

.testimonial-profile-card {
    position: relative;
    overflow: hidden;
    background: var(--cream-light, #FAF8F2);
    border: 1px solid rgba(99,103,66,.14);
    box-shadow: 0 18px 44px rgba(75,79,53,.08);
    transition:
        transform .28s ease,
        box-shadow .28s ease;
}

.testimonial-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 58px rgba(75,79,53,.13);
}

.testimonial-profile-card-featured {
    background: var(--cream, #F4F1E7);
}

.testimonial-profile-image {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--olive-pale, #E1E2CF);
}

.testimonial-profile-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(75,79,53,0) 52%,
            rgba(75,79,53,.58) 100%
        );
}

.testimonial-profile-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.testimonial-profile-card:hover .testimonial-profile-image img {
    transform: scale(1.025);
}

.testimonial-process {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
}

.testimonial-profile-content {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 15px;
    align-items: start;
    padding: 24px 24px 26px;
}

.testimonial-profile-number {
    color: var(--olive, #8A8D5E);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    padding-top: 5px;
}

.testimonial-profile-content h3 {
    margin: 0 0 7px;
    color: var(--olive-deep, #4B4F35);
    font-size: 23px;
    line-height: 1.1;
}

.testimonial-profile-content p {
    margin: 0;
    color: var(--text-soft, #65665A);
    font-size: 13px;
    font-weight: 600;
}

.testimonial-profile-content small {
    display: block;
    margin-top: 5px;
    color: var(--olive, #8A8D5E);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .testimonials-grid-real {
        grid-template-columns: 1fr;
    }

    .testimonial-profile-card {
        display: grid;
        grid-template-columns: minmax(180px, 42%) 1fr;
        min-height: 300px;
    }

    .testimonial-profile-image {
        height: 100%;
        aspect-ratio: auto;
    }

    .testimonial-profile-content {
        align-content: center;
    }
}

@media (max-width: 560px) {
    .testimonial-profile-card {
        display: block;
        min-height: 0;
    }

    .testimonial-profile-image {
        aspect-ratio: 4 / 5;
    }
}


/* =========================================================
   TESTIMONIOS · TEXTO Y UBICACIÓN
========================================================= */

.testimonial-profile-info small {
    display: block;
    margin-top: 6px;
    color: var(--olive, #8A8D5E);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.testimonial-profile-quote {
    position: relative;
    margin: 0 24px 26px;
    padding: 20px 20px 18px 22px;
    background: rgba(138,141,94,.075);
    border-left: 2px solid var(--olive, #8A8D5E);
}

.testimonial-profile-quote .testimonial-quote-mark {
    display: block;
    margin-bottom: -2px;
    color: var(--olive, #8A8D5E);
    font-size: 32px;
    line-height: .8;
    font-weight: 700;
}

.testimonial-profile-quote p {
    margin: 0;
    color: var(--text, #24251F);
    font-size: 13px;
    line-height: 1.75;
    font-style: italic;
}

.testimonial-profile-quote small {
    display: block;
    margin-top: 13px;
    color: var(--olive, #8A8D5E);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

@media (max-width: 820px) {
    .testimonial-profile-card {
        display: block;
        min-height: 0;
    }

    .testimonial-profile-image {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .testimonial-profile-content {
        padding-bottom: 18px;
    }

    .testimonial-profile-quote {
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    .testimonial-profile-image {
        aspect-ratio: 4 / 5;
    }
}


/* =========================================================
   TESTIMONIOS · FOTO 25% MÁS PEQUEÑA
========================================================= */

.testimonial-profile-image {
    width: 75%;
    margin: 24px auto 0;
    aspect-ratio: 4 / 5;
}

.testimonial-profile-image::after {
    inset: 0;
}

.testimonial-process {
    left: 14px;
    right: 14px;
    bottom: 14px;
}

@media (max-width: 820px) {
    .testimonial-profile-image {
        width: 72%;
        margin-top: 22px;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 560px) {
    .testimonial-profile-image {
        width: 82%;
        margin-top: 18px;
    }
}


/* =========================================================
   TESTIMONIOS · DISEÑO HORIZONTAL
   Foto aprox. a la mitad del tamaño anterior
========================================================= */

.testimonials-list-real {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px;
}

.testimonial-profile-card-horizontal {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    align-items: stretch;
    min-height: 0 !important;
    overflow: hidden;
}

.testimonial-profile-card-horizontal .testimonial-profile-image {
    width: 240px !important;
    height: 100% !important;
    min-height: 260px;
    margin: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 0;
}

.testimonial-profile-card-horizontal .testimonial-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-profile-card-horizontal .testimonial-profile-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 30px;
}

.testimonial-profile-card-horizontal .testimonial-profile-content {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 18px;
}

.testimonial-profile-card-horizontal .testimonial-profile-quote {
    margin: 0;
    padding: 18px 20px 16px;
}

.testimonial-profile-card-horizontal .testimonial-profile-content h3 {
    font-size: 26px;
}

.testimonial-profile-card-horizontal .testimonial-profile-content p {
    font-size: 13px;
}

.testimonial-profile-card-horizontal .testimonial-profile-info small {
    margin-top: 6px;
}

@media (max-width: 900px) {
    .testimonial-profile-card-horizontal {
        grid-template-columns: 210px minmax(0, 1fr) !important;
    }

    .testimonial-profile-card-horizontal .testimonial-profile-image {
        width: 210px !important;
        min-height: 240px;
    }

    .testimonial-profile-card-horizontal .testimonial-profile-side {
        padding: 24px;
    }
}

@media (max-width: 680px) {
    .testimonial-profile-card-horizontal {
        grid-template-columns: 1fr !important;
    }

    .testimonial-profile-card-horizontal .testimonial-profile-image {
        width: 50% !important;
        min-width: 190px;
        max-width: 230px;
        height: auto !important;
        min-height: 0;
        aspect-ratio: 4 / 5 !important;
        margin: 22px auto 0 !important;
        border-radius: 16px;
    }

    .testimonial-profile-card-horizontal .testimonial-profile-side {
        padding: 22px 22px 26px;
    }

    .testimonial-profile-card-horizontal .testimonial-profile-content {
        padding-bottom: 16px;
    }

    .testimonial-profile-card-horizontal .testimonial-profile-content h3 {
        font-size: 22px;
    }
}


/* =========================================================
   TESTIMONIOS · LOS 3 EN UNA MISMA FILA
========================================================= */

.testimonials-list-real {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: stretch;
}

.testimonial-profile-card-horizontal {
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr) !important;
    min-width: 0;
    height: 100%;
    align-items: stretch;
}

.testimonial-profile-card-horizontal .testimonial-profile-image {
    width: 118px !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
}

.testimonial-profile-card-horizontal .testimonial-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-profile-card-horizontal .testimonial-profile-side {
    min-width: 0;
    padding: 20px 18px 20px !important;
    justify-content: flex-start;
}

.testimonial-profile-card-horizontal .testimonial-profile-content {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 0 0 14px;
}

.testimonial-profile-card-horizontal .testimonial-profile-content h3 {
    font-size: 19px !important;
    line-height: 1.08;
    margin-bottom: 5px;
}

.testimonial-profile-card-horizontal .testimonial-profile-content p {
    font-size: 11px !important;
    line-height: 1.35;
}

.testimonial-profile-card-horizontal .testimonial-profile-info small {
    font-size: 8px !important;
    line-height: 1.4;
}

.testimonial-profile-card-horizontal .testimonial-profile-number {
    font-size: 9px;
}

.testimonial-profile-card-horizontal .testimonial-process {
    left: 9px;
    right: 9px;
    bottom: 10px;
    font-size: 7px;
    line-height: 1.25;
    letter-spacing: .08em;
}

.testimonial-profile-card-horizontal .testimonial-profile-quote {
    padding: 14px 14px 13px !important;
}

.testimonial-profile-card-horizontal .testimonial-profile-quote .testimonial-quote-mark {
    font-size: 26px;
}

.testimonial-profile-card-horizontal .testimonial-profile-quote p {
    font-size: 11px;
    line-height: 1.6;
}

.testimonial-profile-card-horizontal .testimonial-profile-quote small {
    font-size: 7px;
    margin-top: 10px;
}

/* Tablet: 2 por fila */
@media (max-width: 1050px) {
    .testimonials-list-real {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .testimonial-profile-card-horizontal {
        grid-template-columns: 125px minmax(0, 1fr) !important;
    }

    .testimonial-profile-card-horizontal .testimonial-profile-image {
        width: 125px !important;
    }
}

/* Móvil: 1 por fila */
@media (max-width: 680px) {
    .testimonials-list-real {
        grid-template-columns: 1fr !important;
    }

    .testimonial-profile-card-horizontal {
        grid-template-columns: 105px minmax(0, 1fr) !important;
    }

    .testimonial-profile-card-horizontal .testimonial-profile-image {
        width: 105px !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
    }
}
