/* ==========================================================================
   ALEGRÍAS TOURS - REVIEWS SECTION (3D COVERFLOW TÁCTIL)
   "Nuestras reseñas SÍ son REALES"
   Efecto 3D Coverflow con tarjeta central resaltada y laterales inclinadas.
   ========================================================================== */

.reviews-section {
  background-color: var(--color-sand-light);
  padding: 100px 0;
  position: relative;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.reviews-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  gap: 32px;
}

.reviews-intro {
  max-width: 650px;
}

.reviews-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.reviews-title .emphasis-word {
  color: #1A73E8;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Google Rating Trust Badge */
.google-rating-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.google-logo-icon {
  width: 32px;
  height: 32px;
}

.google-rating-score {
  display: flex;
  flex-direction: column;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.stars-list {
  display: flex;
  gap: 3px;
  color: #FBBC04;
}

.stars-list svg {
  width: 16px;
  height: 16px;
}

.reviews-count-link {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews-count-link:hover {
  color: var(--color-text-main);
}

/* ==========================================================================
   3D COVERFLOW REVIEWS CAROUSEL
   ========================================================================== */
.reviews-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1200px;
  padding: 30px 10px 40px;
  overflow: visible;
  touch-action: pan-y;
}

.reviews-carousel-track {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
}

.reviews-carousel-track.is-dragging {
  cursor: grabbing;
}

/* Individual Review Card - Absolute position inside 3D Coverflow container */
.review-card {
  position: absolute;
  width: 100%;
  max-width: 440px;
  min-height: 330px;
  background-color: var(--color-white);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 850ms cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 750ms ease, 
              filter 750ms ease, 
              box-shadow 850ms cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 400ms ease !important;
  will-change: transform, opacity;
  cursor: pointer;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Center Prominent Card */
.review-card.is-center {
  border-color: rgba(255, 199, 0, 0.8);
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.14), 
              0 10px 30px -4px rgba(255, 199, 0, 0.35);
  cursor: default;
}

.review-card.is-center .reviewer-avatar {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(255, 199, 0, 0.4);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC700, #F59E0B);
  color: var(--color-deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 300ms ease;
}

.reviewer-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

.reviewer-verified {
  font-size: 0.8125rem;
  color: #1A73E8;
  font-weight: 600;
  margin-top: 2px;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #FBBC04;
  margin-bottom: 14px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
}

.review-quote {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 0.8125rem;
}

.review-date {
  color: var(--color-text-muted);
}

.review-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1A73E8;
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms ease;
}

.review-verify-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

.review-verify-link svg {
  width: 12px;
  height: 12px;
}

/* Carousel Controls & Dots */
.carousel-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  padding: 0 4px;
}

.carousel-nav-buttons {
  display: flex;
  gap: 14px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background-color: var(--color-white);
  color: var(--color-deep-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 200ms ease, 
              box-shadow 200ms ease,
              border-color 200ms ease;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn:hover {
  background-color: var(--color-brand-yellow);
  border-color: var(--color-brand-yellow);
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(255, 199, 0, 0.4);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 300ms cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 200ms ease, 
              border-radius 300ms ease;
}

.carousel-dot.active {
  width: 30px;
  border-radius: 6px;
  background-color: #1A73E8;
}

/* Responsivo */
@media (max-width: 991px) {
  .reviews-header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .reviews-section {
    padding: 64px 0;
  }
  
  .reviews-carousel-track {
    height: 420px;
  }
  
  .review-card {
    max-width: 320px;
    padding: 24px 20px;
    min-height: 360px;
  }
  
  .review-quote {
    font-size: 0.875rem;
  }
}
