/* ---------- Página para dejar una reseña ---------- */
.rev { max-width: 720px; }
.rev-lead { margin-top: 14px; max-width: 52ch; color: var(--muted); }
.rev-form { margin-top: clamp(28px, 4vw, 44px); }
.rev-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rev-products .method-box { padding: 16px 16px 16px 50px; }
.rev-products .method-box::before { left: 16px; top: 18px; }

.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #c9c9c2;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color var(--t-hover) ease;
}
.field textarea:focus { outline: none; border-color: var(--ink); }
.field.invalid textarea { border-color: #c22d2d; }
.field input[type="file"] { min-height: 0; padding: 12px 16px; }

/* Estrellas: van de 5 a 1 en el HTML y se muestran al revés, así al marcar una se pintan también las de su izquierda */
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label {
  width: 48px; height: 48px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  background: #c9c9c2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") center / 40px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") center / 40px no-repeat;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.stars label:active { transform: scale(0.9); }
.stars input:checked ~ label { background: var(--ink); }
.stars input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .stars:hover label { background: #c9c9c2; }
  .stars label:hover, .stars label:hover ~ label { background: var(--accent); }
}
#starsField.invalid .stars label { background: #e3a9a9; }

.rev-done { margin-top: clamp(28px, 4vw, 44px); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--t-turquesa); }
.rev-done:focus { outline: none; }
.rev-done h2 { font-size: var(--step-head); }
.rev-done p { margin: 14px 0 24px; max-width: 46ch; }

@media (max-width: 420px) {
  .rev-products { grid-template-columns: 1fr; }
}
