/* --- Sección Reviews --- */

.reviews-section {
  position: relative;
  width: 100%;
  padding: 120px 0;
  background-color: #050505;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.glow-orb-reviews {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(74, 144, 226, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.reviews-container {
  position: relative;
  z-index: 1;
}

/* --- Encabezado --- */

.pre-title-reviews {
  display: inline-block;
  color: #7ca317;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-title-reviews {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.reviews-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Carrusel --- */

.reviews-carousel {
  position: relative;
  padding: 0 60px;
}

.reviews-inner {
  padding: 20px 0 40px 0;
}

.reviews-indicators {
  position: relative;
  bottom: auto;
  margin: 0 0 20px 0;
  justify-content: center;
}

.reviews-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.reviews-indicators .active {
  background-color: #4a90e2;
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* --- Flechas de Navegación --- */

.reviews-nav {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  background: rgba(20, 25, 35, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.reviews-nav:hover {
  background: rgba(74, 144, 226, 0.3);
  border-color: rgba(74, 144, 226, 0.5);
  transform: translateY(-50%) scale(1.1);
  color: #ffffff;
}

.carousel-control-prev.reviews-nav {
  left: 0;
}

.carousel-control-next.reviews-nav {
  right: 0;
}

/* --- Card de Review (Glassmorphism) --- */

.review-card {
  height: 100%;
  padding: 35px 30px;
  background: rgba(20, 25, 35, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  margin: 0 10px;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 144, 226, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 25px rgba(74, 144, 226, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Estrellas de la review (Estáticas) */

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #fbbf24;
}

.review-stars .star-empty {
  color: rgba(255, 255, 255, 0.15);
}

/* Texto de la review */

.review-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
  position: relative;
  padding-left: 15px;
  border-left: 2px solid rgba(74, 144, 226, 0.3);
}

/* Icono de comillas decorativas */

.review-text::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -5px;
  font-family: 'Outfit', serif;
  font-size: 4rem;
  color: rgba(74, 144, 226, 0.1);
  line-height: 1;
  pointer-events: none;
}

/* Footer de la Card */

.review-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2 0%, #2563eb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.review-author-info h4 {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.review-author-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

/* --- Botón "Escribir Reseña" --- */

.btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 144, 226, 0.4);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-write-review:hover {
  background: rgba(159,226,74,0.2);
  border-color: rgb(156,198,45);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(159,203,45,0.45);
}

.btn-write-review:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================
   MODAL DE RESEÑA
   ========================================== */

.review-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.review-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.review-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 35px;
  background: rgba(20, 25, 35, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.03);
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-modal-overlay.active .review-modal-card {
  transform: translateY(0) scale(1);
}

/* Botón cerrar */

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Header del Modal */

.modal-header-review {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header-review h3 {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-header-review p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin: 0;
}

/* Formulario */

.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group-review label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.form-group-review input, .form-group-review textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  resize: none;
}

.form-group-review input::placeholder, .form-group-review textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group-review input:focus, .form-group-review textarea:focus {
  border-color: rgba(74, 144, 226, 0.6);
  background: rgba(74, 144, 226, 0.05);
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.15);
}

.char-counter {
  position: absolute;
  bottom: -18px;
  right: 5px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

/* --- Rating de Estrellas Interactivo --- */

.star-rating-input {
  display: flex;
  gap: 8px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.star-rating-input .star {
  color: rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.star-rating-input .star:hover, .star-rating-input .star.hovered {
  transform: scale(1.15);
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

.star-rating-input .star.selected {
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

/* Botón Submit */

.btn-submit-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, #4a90e2 0%, #2563eb 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  margin-top: 10px;
}

.btn-submit-review:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.6), 0 0 20px rgba(74, 144, 226, 0.4);
}

.btn-submit-review:active {
  transform: translateY(0) scale(0.98);
}

/* --- Animaciones de Scroll --- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

@media (max-width: 991px) {
  .section-title-reviews {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .reviews-carousel {
    padding: 0 40px;
  }
}

@media (max-width: 991px) {
  .reviews-nav {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .reviews-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .section-title-reviews {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .reviews-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .reviews-carousel {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .reviews-nav {
    display: none;
  }
}

/* Ocultamos flechas en móvil, se navega con swipe */

@media (max-width: 768px) {
  .review-card {
    padding: 25px 20px;
  }
}

@media (max-width: 768px) {
  .review-modal-card {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .modal-header-review h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .star-rating-input {
    font-size: 1.7rem;
  }
}

