/* ---------- Estrellas ---------- */
.stars { position: relative; display: inline-block; color: #D9CCD5; letter-spacing: .06em; line-height: 1; white-space: nowrap; font-size: 1.05rem; }
.stars::before { content: '★★★★★'; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #F2A516; }
.stars.big { font-size: 1.35rem; }

/* ---------- Sección de reseñas en la tienda ---------- */
.reviews { background: var(--veil); padding: 52px 0 56px; border-top: 1px solid var(--line); }
.reviews .sec-title { margin-bottom: 18px; }
.rv-top { display: grid; gap: 20px; grid-template-columns: auto minmax(0, 1fr); align-items: center; margin-bottom: 26px; max-width: 640px; }
.rv-score { text-align: center; min-width: 120px; }
.rv-num { font-family: var(--display); font-size: 3.6rem; line-height: 1; font-weight: 600; color: var(--ink); }
.rv-sub { font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.rv-bars { display: grid; gap: 6px; min-width: 0; }
.rv-bar { display: grid; grid-template-columns: 14px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); background: none; border: 0; padding: 2px 0; text-align: left; width: 100%; }
.rv-bar .bar { height: 8px; border-radius: 999px; background: #E4D6E0; overflow: hidden; }
.rv-bar .bar i { display: block; height: 100%; background: #F2A516; border-radius: 999px; }
.rv-bar b { text-align: right; font-weight: 600; color: var(--ink); }
button.rv-bar { cursor: pointer; border-radius: 8px; }
button.rv-bar:hover, button.rv-bar[aria-pressed="true"] { background: rgba(255,255,255,.7); }
button.rv-bar[aria-pressed="true"] span { color: var(--p-dark); font-weight: 700; }

/* Comentarios que van pasando solos */
.rv-strip { position: relative; overflow: hidden; margin: 0 -16px 24px; padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); }
.rv-track { display: flex; gap: 14px; width: max-content; padding: 0 16px; }
.rv-strip:not(.loop) .rv-track { width: auto; justify-content: center; flex-wrap: wrap; }
.rv-strip.loop .rv-track { animation: rv-scroll var(--dur, 60s) linear infinite; animation-play-state: paused; will-change: transform; }
.rv-strip.loop.run .rv-track { animation-play-state: running; }
.rv-strip.loop.hold .rv-track, .rv-strip.loop:hover .rv-track { animation-play-state: paused; }
@keyframes rv-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rv-card {
  flex: none; width: min(272px, 74vw); background: rgba(255,255,255,.82); border: 1px solid rgba(232,217,227,.9);
  border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 22px -14px rgba(60,20,50,.35); display: flex; flex-direction: column; gap: 8px;
}
.rv-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rv-ago { font-size: .76rem; color: var(--muted); }
.rv-card p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-who { margin-top: auto; display: flex; flex-direction: column; font-size: .8rem; line-height: 1.3; }
.rv-who b { font-weight: 700; }
.rv-who span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-empty { color: var(--muted); margin: 0 0 22px; }
@media (prefers-reduced-motion: reduce) {
  .rv-strip.loop .rv-track { animation: none !important; width: max-content; }
  .rv-strip.loop { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .rv-card[aria-hidden="true"] { display: none; }
}

/* ---------- Formulario de reseña ---------- */
.rv-ov { position: fixed; inset: 0; background: rgba(35, 15, 30, .55); z-index: 60; }
.rv-sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 94vh; max-height: 94dvh;
  background: var(--bg); border-radius: 20px 20px 0 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.rv-sheet .sheet-close { position: absolute; }
.rv-body { padding: 22px 18px calc(22px + var(--safe-b)); }
.rv-body h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 0 40px 14px 0; }
.rv-pick { display: flex; gap: 4px; }
.rv-pick button { background: none; border: 0; padding: 2px; font-size: 2.2rem; line-height: 1; color: #D9CCD5; }
.rv-pick button.on { color: #F2A516; }
.rv-picklbl { font-size: .85rem; color: var(--muted); min-height: 1.3em; margin-top: 2px; }
.rv-body textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); min-height: 90px; resize: vertical; font-size: 16px; }
.rv-body small { color: var(--muted); display: block; margin-top: 4px; font-size: .78rem; line-height: 1.35; }
.rv-cnt { text-align: right; }
.rv-ok { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #E8F4EC; border-radius: 12px; padding: 10px 12px; color: var(--ok); font-weight: 600; }
.rv-ok b { color: var(--ink); }
.rv-err { color: var(--bad); font-size: .9rem; min-height: 1.2em; margin: 6px 0; }
.rv-body .btn { width: 100%; }
.rv-thanks { text-align: center; padding: 26px 8px 10px; }
.rv-thanks h3 { margin: 0 0 8px; }
.rv-thanks p { color: var(--muted); margin: 0 0 16px; }
@media (min-width: 700px) {
  .rv-sheet { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); width: min(520px, 94vw); border-radius: 20px; }
}

/* ---------- Página /resenas ---------- */
.rvp-head { padding: 28px 0 8px; }
.rvp-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 6px; }
.rvp-wrap { padding-bottom: 60px; }
.rvp-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rvp-filters::-webkit-scrollbar { display: none; }
.rvp-opts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chk2 { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.chk2 input { width: 18px; height: 18px; accent-color: var(--p); }
.rvp-list { display: grid; gap: 12px; }
.rvp-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.rvp-item .top2 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rvp-item p { margin: 8px 0 10px; line-height: 1.5; white-space: pre-line; }
.rvp-item .who { font-size: .85rem; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: baseline; }
.rvp-item .who b { font-weight: 700; }
.rvp-item .who span { color: var(--muted); }
.rvp-item .when { font-size: .8rem; color: var(--muted); }
.rvp-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.rvp-more { text-align: center; margin-top: 18px; }
.rvp-back { color: var(--p-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Favoritos y compartir ---------- */
.heart {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; color: var(--muted); box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; z-index: 2;
}
.heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.heart.on { color: #D6336C; }
.heart.on svg { fill: currentColor; }
.tag-pin { top: auto !important; bottom: 8px; left: 8px; right: auto !important; }
.sh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .9rem;
}
.pill-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pill-btn.on { color: #D6336C; border-color: #D6336C; background: #FFF1F6; }
.pill-btn.on svg { fill: currentColor; }
.share-box { position: absolute; inset: 0; z-index: 5; background: rgba(35,15,30,.55); display: grid; align-items: end; }
.share-in { background: var(--bg); border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + var(--safe-b)); }
.share-in h3 { font-family: var(--display); margin: 0 0 12px; font-size: 1.3rem; }
.share-in input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); font-size: 16px; margin-bottom: 10px; }
.share-in .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-in .btn { padding: 12px 10px; }
.share-in .linkbtn { display: block; margin: 12px auto 0; }
@media (min-width: 860px) { .share-box { align-items: center; justify-items: center; } .share-in { border-radius: 20px; width: min(420px, 90%); } }
