/* ============================================================
   Seccion Testimonios - Mei Marketing Mix
   Referencia visual: assets/Captura_de_pantalla_2026-09-25_140026.png
   - Fondo oscuro del sitio (#0A0D14) con halo radial suave
   - Badge tipo pill con acento ambar
   - Titular blanco con acento en degradado (azul -> violeta -> rosa)
   - Tarjetas glass con bordes redondeados, borde sutil y sombra
   ============================================================ */

.testimonials {
    position: relative;
    background: transparent;
    padding: 4.5rem 1.5rem;
    margin: 0 auto;
    max-width: 80rem;
    border-top: 1px solid rgba(30, 41, 59, .8);
    overflow: hidden;
}

/* Halo radial del encabezado (mismo lenguaje visual de la referencia) */
.testimonials::before {
    content: '';
    position: absolute;
    top: -8rem;
    left: 50%;
    width: 46rem;
    height: 22rem;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side at 50% 45%, rgba(168, 85, 247, .18), rgba(168, 85, 247, 0) 72%),
        radial-gradient(closest-side at 62% 30%, rgba(47, 57, 211, .16), rgba(47, 57, 211, 0) 75%);
    pointer-events: none;
}

/* ---------- Encabezado ---------- */
.testimonials__head {
    position: relative;
    max-width: 56rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.testimonials__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1.15rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #f64c3f;
    background: rgba(246, 76, 63, .10);
    border: 1px solid rgba(246, 76, 63, .35);
}

.testimonials__title {
    margin: .95rem 0 .75rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #FFFFFF;
}

.testimonials__accent {
    color: #f64c3f;
    -webkit-text-fill-color: currentColor;
}

.testimonials__subtitle {
    margin: 0 auto;
    max-width: 44rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #87CEEB;
}

/* ---------- Rejilla ---------- */
.testimonials__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

/* ---------- Tarjeta ---------- */
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    width: 100%;
    max-width: 100%;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: rgba(18, 23, 34, .78);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
}

/* Hairline superior con el acento de marca */
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(246, 76, 63, 0), rgba(246, 76, 63, .85), rgba(246, 76, 63, .65), rgba(246, 76, 63, 0));
    opacity: 0;
    transition: opacity .22s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 76, 63, .55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

.testimonial-card:hover::before,
.testimonial-card:focus-within::before {
    opacity: 1;
}

.testimonial-card__head {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #1F2738;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
}

.testimonial-card__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    color: #FFFFFF;
}

.testimonial-card__ident {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.testimonial-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.testimonial-card__role {
    font-size: .8125rem;
    font-weight: 600;
    color: #87CEEB;
}

.testimonial-card__date {
    font-size: .75rem;
    color: #87CEEB;
}

.testimonial-card__stars {
    color: #FBBC05;
    font-size: 1.125rem;
    line-height: 1;
    letter-spacing: .08em;
}

.testimonial-card__stars-empty {
    color: #475569;
}

.testimonial-card__quote {
    margin: 0;
}

/* Comillas decorativas en el acento de marca */
.testimonial-card__quote::before {
    content: '\201C';
    display: block;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 800;
    color: #f64c3f;
    margin-bottom: .35rem;
}

.testimonial-card__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.68;
    color: #FFFFFF;
}

.testimonial-card__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    padding: .5rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #FFFFFF;
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.testimonial-card__badge:hover {
    background: rgba(246, 76, 63, .16);
    border-color: rgba(246, 76, 63, .45);
    color: #FFFFFF;
}

.testimonial-card__google {
    flex: 0 0 auto;
}

/* ---------- Nota y estados ---------- */
.testimonials .testimonios-note {
    position: relative;
    margin: 1.5rem auto 0;
    max-width: 820px;
    font-size: .875rem;
    line-height: 1.6;
    color: #87CEEB;
    text-align: center;
}

.testimonials .testimonios-note a {
    color: #87CEEB;
    text-decoration: underline;
}

.testimonials .testimonios-state {
    padding: 2rem;
    color: #87CEEB;
    text-align: center;
    grid-column: 1 / -1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 1.25rem;
        border-radius: 0;
    }

    .testimonials__head {
        margin-bottom: 2rem;
    }

    .testimonials__badge {
        padding: .4rem .9rem;
        font-size: .75rem;
        letter-spacing: .12em;
    }

    .testimonials__subtitle {
        font-size: 1rem;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 2.25rem .875rem;
    }

    .testimonials__badge {
        padding: .35rem .75rem;
        font-size: .6875rem;
        letter-spacing: .1em;
    }

    .testimonials__title {
        margin-top: .8rem;
        font-size: 1.75rem;
    }

    .testimonials__subtitle {
        font-size: .9375rem;
        line-height: 1.6;
    }

    .testimonials__grid {
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.15rem;
        border-radius: 1rem;
        gap: .7rem;
    }

    .testimonial-card__avatar {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .testimonial-card__text {
        font-size: .9375rem;
        line-height: 1.6;
    }

    .testimonials .testimonios-note {
        font-size: .8125rem;
    }
}
