/* ═══════════════════════════════════════════════════════════
   CHROMA GRID — Testimoniales
   ═══════════════════════════════════════════════════════════ */

/* ── Section ────────────────────────────────────────────── */
.chroma-section {
    background: #0d0d0d !important;
    padding: 96px 0 104px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.chroma-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────────── */
.chroma-header {
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.chroma-eyebrow-wrapper {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(245, 130, 32, 0.1);
    border: 1px solid rgba(245, 130, 32, 0.2);
    border-radius: 4px;
    margin-bottom: 8px;
}

.chroma-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f97316;
}

.chroma-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.chroma-title-text {
    font-family: var(--font-family-base, sans-serif);
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.chroma-paw-icon {
    font-size: clamp(32px, 5vw, 48px);
    color: #f97316;
    opacity: 0.9;
    animation: pawFloat 3s ease-in-out infinite;
}

@keyframes pawFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* ── Grid ────────────────────────────────────────────────── */
.chroma-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ── Card shell (gradient border via pseudo-element) ───── */
.chroma-card {
    position: relative;
    border-radius: 18px;   /* +2px so inner radius shows */
    padding: 2px;           /* space for the gradient border */
    background: transparent;
    /* will-change perf hint */
    will-change: filter, transform;
}

/* Gradient border painted on ::before */
.chroma-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1.5px;
    background: linear-gradient(
        135deg,
        var(--card-color, #4A90D9) 0%,
        transparent 60%
    );
    /* CSS mask trick: border only, not fill */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Inner card body */
.chroma-card-inner {
    background: #161616;
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Quote decoration ────────────────────────────────────── */
.chroma-quote {
    display: block;
    font-size: 52px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--card-color, #4A90D9);
    opacity: 0.85;
    margin-bottom: -10px;
    user-select: none;
    pointer-events: none;
}

/* ── Testimonial text ────────────────────────────────────── */
.chroma-text {
    font-style: italic;
    font-size: 14px;
    line-height: 1.75;
    color: #ccc;
    margin: 0;
    flex: 1;
}

/* ── Author row ──────────────────────────────────────────── */
.chroma-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
}

.chroma-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-color, #4A90D9);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.chroma-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chroma-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #f5f5f5;
}

.chroma-author-loc {
    font-size: 12px;
    color: #666;
}

/* ── Mobile — 1 col, chroma desactivado ─────────────────── */
@media (max-width: 767px) {
    .chroma-grid {
        grid-template-columns: 1fr;
    }

    /* Deshabilitar filter y transform en mobile */
    .chroma-card {
        filter: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

/* ── Dark‑mode accessibility: reduce motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
    .chroma-card {
        transition: none !important;
    }
}
