/* ==========================================
   HOME — Teaser de reseñas (index.html)
   ========================================== */

.home-reviews-teaser {
    padding: 3.5rem 0 4rem;
    background-color: var(--bg-primary);
}

.home-reviews-teaser[hidden] {
    display: none !important;
}

.home-reviews-teaser__inner {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 2.25rem 3rem;
    align-items: start;
    padding: 2rem 2.25rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* --- Panel izquierdo: estadísticas --- */
.home-reviews-teaser__stats {
    padding: 1.65rem 1.5rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.75));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.home-reviews-teaser__score {
    font-size: clamp(2.75rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-reviews-teaser__stars-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.35rem;
}

.home-reviews-teaser__stars-wrap .stars-rating--summary-glow {
    --star-size: 1.35rem;
    --star-color: #fcd34d;
}

.home-reviews-teaser__stars-wrap .stars-rating--summary-glow .stars-rating-fill {
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 14px rgba(251, 191, 36, 0.35));
}

.home-reviews-teaser__stars-wrap .stars-rating--summary-glow .stars-rating-bg .star-svg path {
    stroke: rgba(251, 191, 36, 0.22);
}

.home-reviews-teaser__distribution {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.home-reviews-teaser__rating-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.home-reviews-teaser__rating-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 1.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
}

.home-reviews-teaser__rating-label .fa-star {
    font-size: 0.62rem;
    color: #fcd34d;
}

.home-reviews-teaser__rating-progress {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.home-reviews-teaser__rating-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    transition: width 0.5s ease;
}

.home-reviews-teaser__rating-pct {
    min-width: 2.25rem;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
    text-align: right;
}

.home-reviews-teaser__total {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* --- Panel derecho --- */
.home-reviews-teaser__main {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-width: 0;
}

.home-reviews-teaser__title {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #52c5f9;
    text-shadow:
        0 0 16px rgba(82, 197, 249, 0.5),
        0 0 34px rgba(82, 197, 249, 0.28);
    animation: neon-title-glow 5.5s ease-in-out infinite;
}

.home-reviews-teaser__subtitle {
    margin: 0.45rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
}

.home-reviews-teaser__copy {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(148, 163, 184, 0.95);
    max-width: 52ch;
}

/* --- Grid de 3 tarjetas --- */
.home-reviews-teaser__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-reviews-teaser__card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 1.2rem 1.15rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(42, 52, 65, 0.98), rgba(30, 38, 50, 0.95)) padding-box,
        linear-gradient(135deg, #1d4ed8 0%, #38bdf8 42%, #0ea5e9 68%, #2563eb 100%) border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 14px rgba(56, 189, 248, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    min-height: 0;
}

.home-reviews-teaser__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.28), 0 0 18px rgba(56, 189, 248, 0.1);
}

.home-reviews-teaser__card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.home-reviews-teaser__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(56, 189, 248, 0.55);
}

.home-reviews-teaser__user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.home-reviews-teaser__user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-reviews-teaser__card .stars-rating-inline {
    --star-size: 0.78rem;
    --star-color: #fcd34d;
    --star-outline: rgba(252, 211, 77, 0.35);
}

.home-reviews-teaser__card .stars-rating-fill {
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.55));
}

.home-reviews-teaser__card-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f1f5f9;
}

.home-reviews-teaser__card-text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.5em;
}

.home-reviews-teaser__card-game {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.home-reviews-teaser__game-thumb {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.home-reviews-teaser__game-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #7dd3fc;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- CTA --- */
.home-reviews-teaser__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.75rem 1.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e0f2fe;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.28));
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-reviews-teaser__cta:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(37, 99, 235, 0.38));
    border-color: rgba(125, 211, 252, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.25);
    color: #f0f9ff;
}

.home-reviews-teaser__cta i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.home-reviews-teaser__cta:hover i {
    transform: translateX(3px);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .home-reviews-teaser__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .home-reviews-teaser {
        padding: 2.5rem 0 3rem;
    }

    .home-reviews-teaser__inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 1.5rem 1.25rem;
    }

    .home-reviews-teaser__stats {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-reviews-teaser__card {
        padding: 1rem;
    }
}
