/* ============================================================
   MEYRA — Reseñas: carrusel Google Reviews, tarjetas, modal
   ============================================================ */

.reviews__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}
.reviews__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(26,15,7,0.08);
}
.reviews__badge strong { font-weight: 700; font-size: 18px; color: var(--c-coffee-900); }
.reviews__badge small { font-size: 11px; color: var(--c-coffee-600); }

/* Carrusel wrapper */
.reviews__carousel {
  position: relative;
}
.reviews__stage {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviews__track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
}
.reviews__nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e8eaed;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: box-shadow 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
}
.reviews__nav:hover {
  box-shadow: 0 3px 14px rgba(0,0,0,0.16);
  color: #1a73e8;
  border-color: #1a73e8;
}
.reviews__cta {
  text-align: center;
  margin-top: 22px;
}
.reviews__google-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  text-decoration: none;
  padding: 10px 22px;
  border: 1.5px solid #dadce0;
  border-radius: 100px;
  background: #fff;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.reviews__google-link:hover {
  background: #f0f4ff;
  border-color: #1a73e8;
  box-shadow: 0 2px 10px rgba(26,115,232,0.14);
}
.reviews__cta-arrow { flex-shrink: 0; }
.reviews__track {
  display: flex;
  gap: 20px;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Slide (cada tarjeta ocupa exactamente la mitad menos el gap) */
.reviews__slide {
  flex: 0 0 calc(50% - 10px);
  min-width: 0;
}

/* Tarjeta estilo Google Maps */
.review-card {
  font-family: 'Roboto', Arial, sans-serif;
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  cursor: pointer;
}
.review-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

/* Cabecera: avatar + nombre + logo G */
.review-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card__avatar-wrap { position: relative; flex-shrink: 0; }
.review-card__avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.review-card__avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
.review-card__identity { flex: 1; min-width: 0; }
.review-card__name {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-card__meta {
  font-size: 12px;
  color: #70757a;
  margin: 2px 0 0;
}
.review-card__local-guide {
  color: #f29900;
  font-weight: 500;
}
.review-card__glogo { flex-shrink: 0; margin-left: auto; }

/* Estrellas + fecha */
.review-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-card__stars {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
}
.review-card__stars svg { display: block; }
.review-card__date {
  font-size: 12px;
  color: #70757a;
}

/* Texto de la reseña */
.review-card__text {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.6;
  margin: 0;
}

/* Chips de detalle: Comida · Servicio · Ambiente */
.review-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.review-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f3f4;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: #3c4043;
  white-space: nowrap;
}
.review-card__chip strong { color: #202124; font-weight: 500; }

/* Fotos de la reseña */
.review-card__photos {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.review-card__photo {
  flex: 1;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  min-width: 0;
  display: block;
}

/* Wrapper para badge "+N" cuando hay más de 3 fotos */
.photo-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.photo-wrap .review-card__photo {
  flex: none;
  width: 100%;
}
.photos-more-badge {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  pointer-events: none;
}

/* ── Modal de vista previa ── */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.review-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.review-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  position: relative;
  transform: scale(0.88);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Roboto', Arial, sans-serif;
}
.review-modal-overlay.is-open .review-modal {
  transform: scale(1);
}
.review-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f3f4;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: background 0.15s;
  flex-shrink: 0;
}
.review-modal__close:hover { background: #e8eaed; }

/* Oculta el texto "Google" en el modal — redundante y se solapa con la X */
.review-modal__content .review-card__gsource {
  display: none;
}

/* Tarjeta dentro del modal: sin sombra, sin padding propio */
.review-modal__content .review-card {
  box-shadow: none;
  padding: 0;
  cursor: default;
  transform: none !important;
  gap: 14px;
}
.review-modal__content .review-card:hover {
  box-shadow: none;
  transform: none;
}
.review-modal__content .review-card__text {
  font-size: 15px;
  line-height: 1.65;
}
.review-modal__content .review-card__photos {
  flex-wrap: wrap;
}
.review-modal__content .review-card__photo {
  flex: 1 1 calc(50% - 4px);
  min-width: calc(50% - 4px);
  height: auto;
  max-height: 320px;
  object-fit: contain;
  background: #f1f3f4;
}
.review-modal__content .photo-wrap {
  flex: 1 1 calc(50% - 4px);
  min-width: calc(50% - 4px);
}
.review-modal__content .photos-more-badge { display: none; }

/* Shell: wrapper flex que contiene flechas + modal */
.review-modal-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 660px;
  box-sizing: border-box;
  pointer-events: none; /* los clicks en el gap caen al overlay y lo cierran */
}
.review-modal-shell .review-modal {
  flex: 1;
  min-width: 0;
  pointer-events: auto;
}

/* Flechas de navegación del modal */
.review-modal__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.18s, border-color 0.18s;
  padding: 0;
  pointer-events: auto;
}
.review-modal__nav:hover {
  background: rgba(255, 255, 255, 0.30);
  border-color: rgba(255, 255, 255, 0.75);
}

/* En móvil las flechas se ocultan — se navega con swipe */
@media (max-width: 600px) {
  .review-modal__nav { display: none; }
}

/* Dots de navegación */
.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 6px 0;
}
.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dadce0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.reviews__dot.is-active {
  background: #1a73e8;
  transform: scale(1.25);
}
