/* Reseñas de clientas: resumen, tarjetas con fotos, formulario y visor de fotos. */
.rv-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.rv-head h2 em { font-style: italic; color: var(--secondary); }
.rv-sub { color: var(--muted); margin-top: .8rem; }
.rv-summary {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 1.4rem;
  padding: 12px 22px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border);
}
.rv-avg { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.rv-count { font-size: 13px; color: var(--muted); }
.rv-stars { color: #d9a441; letter-spacing: 2px; font-size: 18px; line-height: 1; white-space: nowrap; }
.rv-stars .off { color: #e3d8c8; }
.rv-actions { margin-top: 1.6rem; display: flex; justify-content: center; }

.rv-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .rv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .rv-grid { grid-template-columns: repeat(3, 1fr); } }
.rv-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.rv-card-top { display: flex; align-items: center; gap: 12px; }
.rv-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient); color: var(--ink); font-weight: 700; font-size: 17px;
}
.rv-name { font-weight: 700; line-height: 1.2; }
.rv-meta { font-size: 12.5px; color: var(--muted); }
.rv-text { font-size: 15px; line-height: 1.6; white-space: pre-line; }
.rv-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; color: var(--secondary);
  background: rgba(201,146,79,.12); padding: 4px 10px; border-radius: var(--radius-pill);
}
.rv-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rv-photos button { padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg); }
.rv-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-soft); }
.rv-photos button:hover img { transform: scale(1.05); }
.rv-empty {
  text-align: center; padding: 40px 20px; border: 1.5px dashed rgba(165,108,38,.35);
  border-radius: var(--radius); background: rgba(255,255,255,.6); color: var(--muted);
}
.rv-empty strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 6px; }

/* Formulario (ventana) */
.rv-modal {
  position: fixed; inset: 0; z-index: 2147483200; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(27,23,16,.5); padding: 0;
}
.rv-modal[hidden] { display: none; }
@media (min-width: 720px) { .rv-modal { align-items: center; padding: 24px; } }
.rv-dialog {
  width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto;
  background: var(--bg-soft); border-radius: 26px 26px 0 0; padding: 26px 22px 30px;
  box-shadow: var(--shadow); animation: rv-up .4s var(--ease-out);
}
@media (min-width: 720px) { .rv-dialog { border-radius: 26px; padding: 32px; } }
@keyframes rv-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.rv-dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rv-dialog h3 { font-size: 26px; }
.rv-x {
  width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border);
}
.rv-form { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.rv-field label, .rv-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.rv-field input[type=text], .rv-field textarea, .rv-field select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(27,23,16,.18); background: #fff; color: var(--ink);
}
.rv-field textarea { min-height: 120px; resize: vertical; }
.rv-field input:focus, .rv-field textarea:focus, .rv-field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.rv-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rv-pick { display: flex; gap: 6px; }
.rv-pick button { font-size: 34px; line-height: 1; color: #e3d8c8; padding: 2px; transition: transform .15s, color .15s; }
.rv-pick button.on { color: #d9a441; }
.rv-pick button:hover { transform: scale(1.12); }
.rv-upload {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px;
  border: 1.5px dashed rgba(165,108,38,.45); border-radius: 16px; background: #fff; cursor: pointer;
  font-weight: 600; color: var(--secondary); padding: 12px;
}
.rv-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rv-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rv-thumb { position: relative; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-thumb button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(27,23,16,.75); color: #fff; font-size: 15px; line-height: 1;
}
.rv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.rv-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--secondary); flex: 0 0 auto; }
.rv-error { color: #b3261e; font-size: 14px; font-weight: 600; }
.rv-submit { justify-content: center; width: 100%; }
.rv-submit[disabled] { opacity: .6; pointer-events: none; }
.rv-done { text-align: center; padding: 20px 6px 6px; }
.rv-done .rv-big { font-size: 46px; }
.rv-done h3 { margin: 8px 0 8px; }
.rv-done p { color: var(--muted); }

/* Visor de fotos */
.rv-lightbox {
  position: fixed; inset: 0; z-index: 2147483300; background: rgba(15,12,8,.92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rv-lightbox[hidden] { display: none; }
.rv-lightbox img { max-width: 100%; max-height: 88vh; border-radius: 14px; }
.rv-lightbox .rv-x { position: absolute; top: 16px; right: 16px; }
.rv-summary[hidden] { display: none; }

/* Cuadro de reseñas de tamaño fijo: las que no caben se ven deslizando dentro del cuadro. */
.rv-box { position: relative; }
.rv-box .rv-grid {
  max-height: min(640px, 72vh); overflow-y: auto; align-items: start;
  padding: 6px 6px 28px; margin: 0 -6px; scrollbar-width: thin; scrollbar-color: rgba(165,108,38,.45) transparent;
  -webkit-overflow-scrolling: touch;
}
.rv-box .rv-grid::-webkit-scrollbar { width: 6px; }
.rv-box .rv-grid::-webkit-scrollbar-thumb { background: rgba(165,108,38,.45); border-radius: 6px; }
.rv-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(245,240,234,0), var(--bg)); opacity: 0; transition: opacity .3s;
}
.rv-box.has-more::after { opacity: 1; }
.rv-scroll-hint { text-align: center; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--secondary); }
.rv-scroll-hint span { display: inline-block; animation: rv-bob 1.6s ease-in-out infinite; }
@keyframes rv-bob { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .rv-scroll-hint span { animation: none; } }
