/* AMCO Testimonios — testimonios.css v1.0.0 */

/* ── Section wrapper ────────────────────────────────────── */
.r4d-test-section {
    width: 100%;
    box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────── */
.r4d-test-header {
    text-align: center;
    margin-bottom: 40px;
}
.r4d-test-header-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4CAF50;
    margin-bottom: 10px;
}
.r4d-test-header-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.15;
    margin: 0;
}

/* ── Grid layout ────────────────────────────────────────── */
.r4d-test-grid-wrap { width: 100%; }
.r4d-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Slider layout ──────────────────────────────────────── */
.r4d-test-slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.r4d-test-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.r4d-test-slider::-webkit-scrollbar { display: none; }
.r4d-test-slider .r4d-test-card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
}
@media (max-width: 1024px) {
    .r4d-test-slider .r4d-test-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
    .r4d-test-slider .r4d-test-card { flex: 0 0 100%; }
}

.r4d-test-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}
.r4d-test-prev,
.r4d-test-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.r4d-test-prev:hover,
.r4d-test-next:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
}
.r4d-test-dots {
    display: flex;
    gap: 6px;
}
.r4d-test-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    border: 0;
    padding: 0;
}
.r4d-test-dot--active {
    background: #4CAF50;
    transform: scale(1.4);
}

/* ── Card ───────────────────────────────────────────────── */
.r4d-test-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 0;
    border-color: #E5E7EB;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.r4d-test-card--shadow {
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.r4d-test-card--shadow:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ── Quote mark ─────────────────────────────────────────── */
.r4d-test-quote {
    color: #4CAF50;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}
.r4d-test-quote--top-left {
    display: inline-block;
    font-size: 56px;
    margin-bottom: 8px;
}
.r4d-test-quote--top {
    display: block;
    font-size: 56px;
    text-align: center;
    margin-bottom: 12px;
}
.r4d-test-quote--inline {
    display: inline-block;
    font-size: 1.4em;
    margin-right: 4px;
    vertical-align: -0.15em;
}

/* ── Stars ──────────────────────────────────────────────── */
.r4d-test-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1;
}
.r4d-test-star { line-height: 1; }
.r4d-test-star--on  { color: #FBBF24; }
.r4d-test-star--off { color: #E5E7EB; }

/* ── Comment text ───────────────────────────────────────── */
.r4d-test-comment {
    color: #374151;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    margin: 0 0 24px 0;
    flex: 1;
}

/* ── Footer (author + position) ─────────────────────────── */
.r4d-test-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}
.r4d-test-avatar-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #F3F4F6;
}
.r4d-test-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.r4d-test-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.r4d-test-author {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}
.r4d-test-position {
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    line-height: 1.3;
}

/* ── Entrance animation ─────────────────────────────────── */
.r4d-test-anim {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease var(--r4d-test-delay, 0s),
                transform 0.55s ease var(--r4d-test-delay, 0s),
                box-shadow 0.3s ease;
}
.r4d-test-anim.r4d-test-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .r4d-test-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .r4d-test-header-title { font-size: 32px; }
}
@media (max-width: 600px) {
    .r4d-test-grid { grid-template-columns: 1fr !important; }
    .r4d-test-header-title { font-size: 26px; }
    .r4d-test-header { margin-bottom: 24px; }
    .r4d-test-card { padding: 20px; border-radius: 12px; }
    .r4d-test-quote--top-left,
    .r4d-test-quote--top { font-size: 44px; }
    /* Slider controls: bigger tap targets on mobile */
    .r4d-test-prev,
    .r4d-test-next { width: 44px; height: 44px; font-size: 20px; }
    .r4d-test-dot  { width: 10px; height: 10px; }
    .r4d-test-slider-controls { margin-top: 16px; gap: 12px; }
    /* Avatar stays reasonable */
    .r4d-test-avatar { width: 40px; height: 40px; }
}
@media (max-width: 400px) {
    .r4d-test-card { padding: 16px; }
    .r4d-test-header-title { font-size: 22px; }
}
