/* Widget de reseñas (partials/resenas-widget): copiado de views/opiniones/widget.php del legacy. */
.rv-wrap{background:#f7f8fb;padding:40px 0}
.rv-inner{max-width:1200px;margin:0 auto;padding:0 16px;color:var(--inca-texto);font-family:inherit}
.rv-section{margin-bottom:34px}
.rv-section:last-child{margin-bottom:0}
.rv-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.rv-glogo{display:inline-flex;align-items:center;line-height:0}
.rv-htitle{font-size:1.25rem;font-weight:800}
.rv-hmeta{color:#5a6172;font-weight:600;font-size:.95rem}
/* 44 px de alto: es un enlace frecuente (E9, «ver todas en Google») y medía 22, por debajo del
   mínimo legal de 24 (WCAG 2.5.8). Lo usan la portada de siempre y la nueva. */
.rv-hlink{margin-left:auto;display:inline-flex;align-items:center;min-height:44px;color:#0a66c2;text-decoration:none;font-weight:700;font-size:.9rem}
.rv-hlink:hover{text-decoration:underline}

.rv-carousel{position:relative}
.rv-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:4px 2px;scrollbar-width:none;-ms-overflow-style:none}
.rv-track::-webkit-scrollbar{display:none}
.rv-card{flex:0 0 300px;max-width:300px;scroll-snap-align:start;background:#fff;border:1px solid #eceef3;border-radius:14px;padding:18px;box-shadow:0 4px 16px rgba(20,25,50,.05);display:flex;flex-direction:column}
@media(max-width:640px){.rv-card{flex-basis:86%;max-width:86%}}
.rv-cardhead{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.rv-photo{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#eef}
.rv-ph{display:grid;place-items:center;background:var(--inca-azul);color:#fff;font-weight:800}
.rv-meta{min-width:0}
.rv-name{font-weight:700;font-size:.95rem}
.rv-date{color:#8b90a0;font-size:.8rem}
.rv-cardg{margin-left:auto;flex-shrink:0;line-height:0}
.rv-stars{color:#f5b400;letter-spacing:1px;margin:2px 0 8px;font-size:1rem}
.rv-title{font-weight:700;font-size:.98rem;margin-bottom:4px}
.rv-text{color:#464b59;font-size:.9rem;line-height:1.5;margin:0}
.rv-clamp5{display:-webkit-box;-webkit-line-clamp:5;line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.rv-clamp4{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.rv-foot{margin-top:12px;padding-top:10px;border-top:1px solid #f0f1f5;display:flex;justify-content:space-between;align-items:center;gap:8px}
.rv-foot .rv-name{font-size:.9rem}

.rv-arrow{position:absolute;top:calc(50% - 4px);transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1px solid #e2e5ec;background:#fff;color:#333;cursor:pointer;display:grid;place-items:center;z-index:3;box-shadow:0 3px 12px rgba(0,0,0,.14);font-size:1rem;line-height:1}
.rv-arrow:hover{background:#f3f4f8}
.rv-arrow.rv-prev{left:-10px}
.rv-arrow.rv-next{right:-10px}
@media(max-width:640px){.rv-arrow{display:none}}

/*
 * El carril de reseñas se desplaza con `scroll-behavior: smooth`, y las flechas lo mueven de tarjeta
 * en tarjeta: para quien pide menos movimiento (mareo, vértigo), el salto directo. Mismo criterio
 * que en el listado y la portada.
 */
@media (prefers-reduced-motion: reduce) {
    .rv-track {
        scroll-behavior: auto;
    }

    .rv-track,
    .rv-card,
    .rv-arrow {
        transition: none !important;
        animation: none !important;
    }
}
