/* Formulario público de reseña */
.resena-form {
  padding: 80px 24px;
  background: linear-gradient(180deg, #FCFBF7 0%, #F7F4EC 100%);
  min-height: 70vh;
}
.resena-form-inner {
  max-width: 580px;
  margin: 0 auto;
}
.resena-form-center { text-align: center; }
.resena-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
  display: inline-block;
}
.resena-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 16px;
}
.resena-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
}

.resena-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(12, 68, 124, 0.06);
}
.resena-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.resena-field label {
  font-weight: 500;
  color: var(--ink);
  font-size: 14.5px;
}
.resena-input,
.resena-textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 14px;
  background: var(--warm);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.resena-input:focus,
.resena-textarea:focus {
  border-color: var(--blue);
  background: #fff;
}
.resena-textarea { resize: vertical; min-height: 120px; }

/* Estrellas (5 → 1 en HTML, se renderizan 1 → 5 con flex-direction row-reverse) */
.resena-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  font-size: 42px;
  color: #D8D3C4;
  line-height: 1;
}
.resena-star { cursor: pointer; transition: color .15s, transform .15s; }
.resena-star input { display: none; }
.resena-star:hover,
.resena-star:hover ~ .resena-star,
.resena-star:has(input:checked),
.resena-star:has(input:checked) ~ .resena-star {
  color: #EF9F27;
  transform: scale(1.05);
}

.resena-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(12, 68, 124, 0.22);
}
.resena-submit:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(12, 68, 124, 0.35);
}
.resena-nota {
  font-size: 12.5px;
  color: var(--muted);
  margin: 16px 0 0;
  text-align: center;
}
.resena-alert {
  background: rgba(196, 68, 46, 0.08);
  border: 0.5px solid rgba(196, 68, 46, 0.3);
  color: var(--danger, #C4442E);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}
.resena-gracias-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(29, 158, 117, 0.14);
  color: var(--wa);
  font-size: 34px;
  margin-bottom: 22px;
}

/* Sección pública de reseñas en la home */
.testimonios {
  padding: 90px 48px;
  background: var(--warm);
  border-top: 0.5px solid var(--warm-border);
  border-bottom: 0.5px solid var(--warm-border);
}
.testimonios-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.testimonios-head {
  text-align: center;
  margin-bottom: 56px;
}
.testimonios-head .h2 { margin: 0 0 14px; }
.testimonios-head p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.testimonio {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 22px rgba(12, 68, 124, 0.05);
  transition: box-shadow .25s, transform .25s;
}
.testimonio:hover {
  box-shadow: 0 16px 36px rgba(12, 68, 124, 0.1);
  transform: translateY(-2px);
}
.testimonio-stars {
  color: #EF9F27;
  font-size: 20px;
  letter-spacing: 2px;
}
.testimonio-texto {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.testimonio-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 0.5px dashed rgba(12, 68, 124, 0.15);
}
.testimonio-nombre {
  font-weight: 500;
  color: var(--ink);
  font-size: 14.5px;
}
.testimonio-servicio {
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .testimonios { padding: 60px 20px; }
}
@media (max-width: 520px) {
  .resena-form { padding: 48px 16px; }
  .resena-title { font-size: 32px; letter-spacing: -0.6px; }
  .resena-sub { font-size: 15px; }
  .resena-card { padding: 24px 20px; }
  .resena-rating { font-size: 36px; gap: 4px; }
  .testimonios-grid { grid-template-columns: 1fr; }
}
