/* =========================================================
   NUESTRAS RESEÑAS — ajuste de fidelidad al mockup aprobado
   Solo afecta esta sección. Etiqueta y CTA mantienen las
   clases globales .etiqueta-seccion y .btn-principal.
   ========================================================= */
.seccion-resenas {
  position: relative;
  padding: 58px 0 76px;
  overflow: hidden;
  background: #fff;
}

.seccion-resenas::before,
.seccion-resenas::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.seccion-resenas::before {
  width: 330px;
  height: 330px;
  right: -110px;
  top: -145px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(14, 90, 80, .075), rgba(14, 90, 80, 0) 70%);
}

.seccion-resenas::after {
  width: 320px;
  height: 205px;
  right: -128px;
  bottom: -110px;
  border-radius: 56% 0 0 0;
  background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-oscuro) 100%);
}

.resenas-contenedor {
  position: relative;
  z-index: 1;
}

.resenas-encabezado {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: clamp(38px, 4.2vw, 68px);
  align-items: center;
  margin-bottom: 30px;
}

/* Bloque compacto, subordinado al título principal, como en el mockup. */
.resenas-calificacion {
  position: relative;
  width: 100%;
  max-width: 300px;
  min-height: 205px;
  padding: 23px 24px 22px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--blanco);
  background: linear-gradient(145deg, #08a34a 0%, var(--verde-medio) 58%, #087b48 100%);
  box-shadow: 0 12px 24px rgba(5, 104, 65, .15);
}

.resenas-calificacion-titulo {
  margin: 0 0 4px;
  font: 700 21px/1.18 var(--fuente-titulos);
}

.resenas-calificacion-valor {
  margin: 0 0 4px;
  font: 800 60px/.92 var(--fuente-titulos);
  letter-spacing: -.045em;
}

.resenas-estrellas,
.resena-stars {
  color: var(--amarillo);
  letter-spacing: 2px;
}

.resenas-estrellas {
  margin-bottom: 9px;
  font-size: 22px;
  line-height: 1;
}

.resenas-calificacion-texto {
  max-width: 145px;
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
}

/* Recurso extraído del mockup aportado, no emoji del sistema. */
.resenas-mano {
  position: absolute;
  top: 50px;
  right: 12px;
  width: 142px;
  height: auto;
  display: block;
  object-fit: contain;
  transform-origin: 45% 80%;
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .12));
  animation: resena-wiggle 5.8s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes resena-wiggle {
  0%, 78%, 100% { transform: rotate(-1deg) translateY(0); }
  82% { transform: rotate(1.8deg) translateY(-2px); }
  86% { transform: rotate(-1.4deg) translateY(0); }
  90% { transform: rotate(.9deg) translateY(-1px); }
  94% { transform: rotate(-1deg) translateY(0); }
}

.resenas-titulos {
  text-align: center;
  align-self: center;
}

/* La cápsula usa exclusivamente la configuración global. */
.resenas-titulos .etiqueta-seccion {
  margin-inline: auto;
}

.resenas-titulos h2 {
  margin: 16px 0 12px;
  color: var(--verde-oscuro);
  font-family: var(--fuente-titulos);
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
}

.resenas-titulos h2 em {
  display: block;
  color: var(--verde-medio);
  font-style: normal;
}

.resenas-titulos > p:last-child {
  max-width: 800px;
  margin: 0 auto;
  color: var(--texto);
  font-size: 17px;
  line-height: 1.52;
}

.resenas-carrusel-zona {
  --resenas-visibles: 3;
  --resenas-gap: 20px;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.resenas-viewport {
  width: 100%;
  overflow: hidden;
  padding: 10px 4px 16px;
  touch-action: pan-y pinch-zoom;
}

.resenas-track {
  display: flex;
  align-items: stretch;
  gap: var(--resenas-gap);
  will-change: transform;
}

.resena-tarjeta {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  min-height: 330px;
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6ebee;
  border-radius: 18px;
  background: var(--blanco);
  box-shadow: 0 10px 22px rgba(17, 46, 73, .08);
}

.resena-autor {
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.resena-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  color: var(--blanco);
  font: 500 28px/1 var(--fuente-titulos);
}

.resena-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resena-avatar.morado { background: #9e33c7; }
.resena-avatar.rosado { background: #ef3565; }
.resena-avatar.verde { background: #3f871c; }
.resena-avatar.gris { background: #64747b; }

.resena-autor h3 {
  margin: 2px 0 4px;
  color: var(--verde-oscuro);
  font-family: var(--fuente-titulos);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.resena-autor span {
  display: block;
  color: #65748a;
  font-size: 14px;
  line-height: 1.35;
}

.resena-stars {
  margin-bottom: 13px;
  font-size: 22px;
  line-height: 1;
}

.resena-comillas {
  height: 29px;
  color: var(--verde-medio);
  font: 800 42px/.9 Georgia, serif;
}

.resena-tarjeta > p {
  flex: 1;
  margin: 0;
  color: var(--verde-oscuro);
  font-size: 17px;
  line-height: 1.55;
}

.resenas-nav {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #e8eeee;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blanco);
  color: var(--verde-medio);
  box-shadow: 0 7px 18px rgba(17, 46, 73, .10);
  cursor: pointer;
  transition: box-shadow var(--transicion-ui), background-color var(--transicion-ui);
}

.resenas-nav:hover {
  background: #f7fbf9;
  box-shadow: 0 9px 21px rgba(17, 46, 73, .14);
}

.resenas-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

.resenas-dots {
  min-height: 14px;
  margin: 8px 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.resenas-dots span {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dce9e2;
  transition: background-color var(--transicion-ui), transform var(--transicion-ui);
}

.resenas-dots span.activo {
  background: var(--verde-medio);
  transform: scale(1.15);
}

.resenas-cta {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* El CTA conserva color/radio/altura/padding de .btn-principal global. */
.resenas-boton-google {
  width: fit-content;
}

.resenas-ayuda {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--texto);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.resenas-ayuda svg {
  width: 20px;
  height: 20px;
  stroke: var(--verde-medio);
  stroke-width: 2;
  fill: none;
}

@media (min-width: 1700px) {
  .resena-tarjeta { flex-basis: calc((100% - 60px) / 4); }
  .resenas-encabezado { grid-template-columns: 300px minmax(0, 1fr); }
}

@media (max-width: 1199px) {
  .seccion-resenas { padding-block: 54px 70px; }
  .resenas-encabezado {
    grid-template-columns: minmax(235px, 280px) minmax(0, 1fr);
    gap: 32px;
  }
  .resenas-calificacion { max-width: 280px; min-height: 195px; padding: 21px 22px; }
  .resenas-calificacion-titulo { font-size: 20px; }
  .resenas-calificacion-valor { font-size: 56px; }
  .resenas-estrellas { font-size: 21px; }
  .resenas-calificacion-texto { font-size: 14px; }
  .resenas-mano { right: 8px; top: 48px; width: 132px; }
  .resenas-titulos h2 { font-size: clamp(39px, 4.6vw, 52px); }
  .resenas-titulos > p:last-child { font-size: 16px; }
}

@media (max-width: 1023px) {
  .resenas-carrusel-zona {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }
  .resenas-nav { width: 46px; height: 46px; }
  .resena-tarjeta { flex-basis: calc((100% - 20px) / 2); min-height: 326px; }
}

@media (max-width: 820px) {
  .resenas-encabezado {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
  }
  .resenas-calificacion { max-width: 220px; min-height: 178px; padding: 18px; border-radius: 20px; }
  .resenas-calificacion-titulo { font-size: 18px; }
  .resenas-calificacion-valor { font-size: 50px; }
  .resenas-estrellas { font-size: 19px; margin-bottom: 7px; }
  .resenas-calificacion-texto { max-width: 115px; font-size: 13px; line-height: 1.35; }
  .resenas-mano { top: 44px; right: 5px; width: 107px; }
  .resenas-titulos h2 { font-size: 38px; }
  .resenas-titulos > p:last-child { font-size: 16px; line-height: 1.48; }
  .resena-autor h3 { font-size: 16px; }
  .resena-autor span { font-size: 14px; }
  .resena-tarjeta > p { font-size: 16px; }
}

@media (max-width: 699px) {
  .seccion-resenas { padding: 48px 0 62px; }
  .resenas-encabezado {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
  }
  .resenas-calificacion {
    width: min(100%, 300px);
    max-width: 300px;
    min-height: 196px;
    margin-inline: auto;
    padding: 21px 22px;
  }
  .resenas-calificacion-titulo { font-size: 20px; }
  .resenas-calificacion-valor { font-size: 56px; }
  .resenas-estrellas { font-size: 21px; }
  .resenas-calificacion-texto { max-width: 140px; font-size: 14px; }
  .resenas-mano { top: 47px; right: 8px; width: 132px; }
  .resenas-titulos h2 {
    margin-top: 14px;
    font-size: clamp(34px, 10vw, 42px);
  }
  .resenas-titulos > p:last-child {
    font-size: 16px;
    line-height: 1.55;
  }
  .resenas-carrusel-zona {
    --resenas-gap: 16px;
    display: block;
  }
  .resenas-viewport {
    width: 100%;
    padding-inline: 8px;
  }
  .resenas-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }
  .resenas-nav:hover { transform: translateY(-50%); }
  .resenas-nav-prev { left: 0; }
  .resenas-nav-next { right: 0; }
  .resena-tarjeta {
    flex-basis: 100%;
    min-height: 320px;
    padding: 22px 24px 24px;
  }
  .resena-autor h3 { font-size: 16px; }
  .resena-autor span { font-size: 14px; }
  .resena-stars { font-size: 21px; }
  .resena-tarjeta > p { font-size: 16px; line-height: 1.55; }
  .resenas-dots { margin-bottom: 18px; gap: 8px; }
  .resenas-cta { padding-inline: 10px; }
  .resenas-boton-google { width: min(100%, 360px); }
  .resenas-ayuda { font-size: 14px; padding-inline: 10px; }
}

@media (max-width: 390px) {
  .resenas-nav { width: 42px; height: 42px; }
  .resena-tarjeta { padding-inline: 18px; }
  .resenas-calificacion { width: min(100%, 286px); max-width: 286px; }
  .resenas-titulos h2 { font-size: 34px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .seccion-resenas { padding-block: 42px 54px; }
  .resenas-encabezado {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }
  .resenas-calificacion { max-width: 220px; min-height: 176px; }
  .resenas-mano { width: 105px; top: 44px; }
  .resenas-titulos h2 { font-size: 36px; }
  .resenas-titulos > p:last-child { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .resenas-mano { animation: none; }
  .resenas-track { scroll-behavior: auto; }
}
