/* ══════════════════════════════
   TESTIMONIOS — Diseño cards fondo blanco
══════════════════════════════ */
#testimonios-slider {
    position: relative;
    padding: 90px 40px 0;
    background: #fff;
    text-align: center;
    overflow: hidden;
}

/* ── Ícono destacado ── */
.testimonios-section-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(254,188,0,0.35);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
#testimonios-slider.visible .testimonios-section-icon {
    opacity: 1;
    transform: scale(1);
}

/* ── Header ── */
.testimonios-header {
    max-width: 680px;
    margin: 0 auto 56px;
}

.test-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a24a0;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.test-badge svg { stroke: #febc00; }
#testimonios-slider.visible .test-badge { opacity: 1; transform: translateY(0); }

.test-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    color: #1a1e55;
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.test-title em {
    font-style: normal;
    color: #febc00;
}
#testimonios-slider.visible .test-title { opacity: 1; transform: translateY(0); }

.test-subtitle {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
#testimonios-slider.visible .test-subtitle { opacity: 1; transform: translateY(0); }

.test-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}
#testimonios-slider.visible .test-rating { opacity: 1; transform: translateY(0); }

.test-rating-stars span {
    color: #febc00;
    font-size: 1.2rem;
}

.test-rating-text {
    font-size: 0.88rem;
    color: #888;
    font-weight: 600;
}

/* ── Navegación flechas ── */
.testimonios-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    transform: translateY(40px);
}

.testimonios-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e8eaf0;
    background: #fff;
    color: #1a24a0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: all 0.25s ease;
    pointer-events: all;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s ease 0.8s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.8s,
                background 0.2s ease, border-color 0.2s ease;
}
.testimonios-nav button svg { width: 18px; height: 18px; }
.testimonios-nav button:hover { background: #1a24a0; border-color: #1a24a0; color: #fff; transform: scale(1.08); }
#testimonios-slider.visible .testimonios-nav button { opacity: 1; transform: scale(1); }

/* ── Slider container ── */
.slider-container {
    overflow: hidden;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 4px;
}

.testimonios-wrapper {
    display: flex;
    gap: 24px;
    padding: 80px 8px 32px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Card ── */
.testimonio {
    flex: 0 0 calc(33.333% - 16px);
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(26,36,160,0.07);
    position: relative;
    padding-top: 72px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
}
.testimonio:nth-child(1) { transition: opacity 0.6s ease 0.35s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.35s, box-shadow 0.35s ease; }
.testimonio:nth-child(2) { transition: opacity 0.6s ease 0.50s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.50s, box-shadow 0.35s ease; }
.testimonio:nth-child(3) { transition: opacity 0.6s ease 0.65s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.65s, box-shadow 0.35s ease; }
#testimonios-slider.visible .testimonio { opacity: 1; transform: translateY(0) scale(1); }
.testimonio:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(26,36,160,0.13); }

/* Avatar circular */
.test-avatar-wrap {
    position: absolute;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
    width: 112px;
    height: 112px;
}

.test-avatar-wrap img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid #fff;
    box-shadow: 0 6px 24px rgba(26,36,160,0.16);
    display: block;
}

.test-flag {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 1.35rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* Cuerpo de la card */
.test-card-body {
    padding: 4px 28px 28px;
}

.test-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 8px;
}
.test-stars span { color: #febc00; font-size: 1.1rem; }

.test-quote-icon {
    font-size: 4rem;
    line-height: 0.6;
    color: #febc00;
    font-family: Georgia, serif;
    font-weight: 900;
    margin-bottom: 12px;
    display: block;
}

.test-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin: 0 0 18px;
}

.test-divider {
    width: 40px;
    height: 2px;
    background: #febc00;
    border-radius: 2px;
    margin: 0 auto 14px;
}

.test-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1e55;
    margin: 0 0 12px;
}

.test-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    margin-bottom: 20px;
}
.test-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #777;
    font-weight: 600;
}
.test-meta svg { stroke: #1a24a0; flex-shrink: 0; }

.test-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border: 1.5px solid #1a24a0;
    border-radius: 50px;
    color: #1a24a0;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.test-btn:hover { background: #1a24a0; color: #fff; }

/* ── Dots ── */
.testimonios-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.9s, transform 0.5s ease 0.9s;
}
#testimonios-slider.visible .testimonios-dots { opacity: 1; transform: translateY(0); }

.testimonios-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #dde0ec;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.testimonios-dot:hover { background: #aab0cc; }
.testimonios-dot.active { background: #1a24a0; width: 28px; border-radius: 5px; }

/* ── Stats bar ── */
.test-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
    background: #f4f6fb;
    border-top: 1px solid #e8eaf0;
    padding: 36px 40px;
}

.test-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    border-right: 1px solid #e8eaf0;
}
.test-stat:last-child { border-right: none; }

.test-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(254,188,0,0.12);
    border: 2px solid rgba(254,188,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.test-stat-icon svg { stroke: #febc00; }

.test-stat strong {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1e55;
    line-height: 1;
}

.test-stat span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .testimonio { flex: 0 0 calc(50% - 12px); }
    .test-stats { grid-template-columns: repeat(2, 1fr); }
    .test-stat:nth-child(2) { border-right: none; }
    .test-stat:nth-child(3) { border-top: 1px solid #e8eaf0; }
    .test-stat { padding: 20px; }
}

@media (max-width: 768px) {
    #testimonios-slider { padding: 70px 16px 0; }
    .testimonio { flex: 0 0 100%; }
    .testimonios-nav { padding: 0 4px; }
    .test-stats { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; }
}

@media (max-width: 480px) {
    .test-stats { grid-template-columns: 1fr 1fr; }
    .test-stat { border-right: none; border-bottom: 1px solid #e8eaf0; padding: 18px 10px; }
    .test-stat:last-child { border-bottom: none; }
}
