/* Yelp reviews carousel - Modern & Clean Design */
.yelp-reviews-section {
  padding: 80px 20px;
  background: #fafbfc;
  position: relative;
}

.yelp-reviews-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 133, 197, 0.3), transparent);
}

.yelp-reviews-section h2 {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.yelp-reviews-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #2185c5;
  margin: 20px auto 40px;
  border-radius: 2px;
}

.yelp-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: hidden;
}

.yelp-reviews-carousel {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
  width: max-content;
}

.yelp-widget-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 280px;
  height: auto;
  max-height: 400px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e8e8e8;
  position: relative;
  flex: 0 0 620px;
  width: 620px;
  box-sizing: border-box;
}

.yelp-widget-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #2185c5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yelp-widget-card:hover::before {
  opacity: 1;
}

.yelp-widget-card .yelp-review {
  width: 100%;
  display: block;
  max-width: 100%;
  overflow: hidden;
}

/* Limitar el widget interno y ocultar overflow */
.yelp-widget-card iframe, 
.yelp-widget-card .yelp-review > iframe {
  max-height: 360px;
  height: auto;
  min-height: 240px;
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  overflow: hidden !important;
}

/* Forzar que el contenedor del widget de Yelp no tenga scroll */
.yelp-widget-card .yelp-review,
.yelp-widget-card .yelp-review * {
  overflow-x: hidden !important;
  max-width: 100%;
  box-sizing: border-box;
}

.yelp-widget-card:hover { 
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.yelp-widget-card .yelp-review a { 
  color: #2185c5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.yelp-widget-card .yelp-review a:hover { 
  color: #1666a0;
  text-decoration: none;
}

.yelp-reviews-section .see-all { 
  display: block;
  text-align: center;
  margin-top: 48px;
}

.yelp-reviews-section .see-all a { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0, 170, 255, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 200px;
}

.yelp-reviews-section .see-all a:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 170, 255, 0.4);
  color: #ffffff;
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.carousel-nav:hover {
  background: #2185c5;
  border-color: #2185c5;
  box-shadow: 0 6px 20px rgba(33, 133, 197, 0.3);
}

.carousel-nav:hover svg {
  stroke: #ffffff;
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f5f5f5;
}

.carousel-nav:disabled:hover {
  background: #f5f5f5;
  border-color: #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-nav:disabled:hover svg {
  stroke: currentColor;
}

.carousel-nav svg {
  color: #333;
  transition: all 0.3s ease;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot:hover {
  background: #2185c5;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #2185c5;
  width: 32px;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .yelp-widget-card {
    flex: 0 0 520px;
    width: 520px;
    min-height: 260px;
    height: auto;
    max-height: 380px;
  }
  
  .yelp-widget-card iframe, 
  .yelp-widget-card .yelp-review > iframe {
    max-height: 340px;
    height: auto;
    min-height: 220px;
  }
  
  .yelp-carousel-wrapper {
    padding: 0 50px;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .yelp-reviews-section {
    padding: 60px 8px;
  }
  
  .yelp-widget-card { 
    flex: 0 0 calc(100vw - 32px);
    width: calc(100vw - 32px);
    max-width: none;
    padding: 16px;
    min-height: 240px;
    height: auto;
    max-height: 360px;
  }
  
  .yelp-widget-card iframe, 
  .yelp-widget-card .yelp-review > iframe {
    max-height: 320px;
    height: auto;
    min-height: 200px;
  }
  
  .yelp-reviews-section h2 { 
    font-size: 28px;
  }
  
  .yelp-carousel-wrapper {
    padding: 0;
    margin: 0 8px;
  }
  
  .yelp-reviews-carousel {
    gap: 16px;
  }
  
  /* Ocultar botones en móvil */
  .carousel-nav {
    display: none;
  }
  
  .carousel-dots {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .yelp-reviews-section {
    padding: 50px 8px;
  }
  
  .yelp-reviews-section h2 { 
    font-size: 24px;
  }
  
  .yelp-widget-card { 
    flex: 0 0 calc(100vw - 24px);
    width: calc(100vw - 24px);
    max-width: none;
    padding: 16px;
    min-height: 220px;
    height: auto;
    max-height: 340px;
  }
  
  .yelp-widget-card iframe, 
  .yelp-widget-card .yelp-review > iframe {
    max-height: 300px;
    height: auto;
    min-height: 180px;
  }
  
  .yelp-reviews-section .see-all a {
    padding: 12px 24px;
    font-size: 15px;
  }
  
  .yelp-carousel-wrapper {
    padding: 0;
    margin: 0 4px;
  }
  
  .yelp-reviews-carousel {
    gap: 12px;
  }
  
  .carousel-dots {
    gap: 8px;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
  
  .carousel-dot.active {
    width: 24px;
  }
}
