/* ===== SISTEMA DE ESTADÍSTICAS - ESTILOS RESPONSIVE MEJORADOS ===== */
.stats-system-container {
  margin: 25px 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 162, 95, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stats-system-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
}

.stats-system-container:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 162, 95, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-title {
  color: #c8a25f;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 15px;
}

.stats-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px 15px;
  background: rgba(200, 162, 95, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(200, 162, 95, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 95, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  background: rgba(200, 162, 95, 0.12);
  border-color: rgba(200, 162, 95, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(200, 162, 95, 0.2);
}

.stat-number {
  color: #c8a25f;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
  color: var(--vibrant-gold);
}

.stat-label {
  color: #b0b0b0;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
  color: #e0e0e0;
}

.rating-section {
  text-align: center;
  margin: 30px 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(200, 162, 95, 0.1);
  position: relative;
}

.rating-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 95, 0.3), transparent);
}

.rating-title {
  color: #e0e0e0;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.rating-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.rating-btn {
  background: transparent;
  border: 2px solid rgba(200, 162, 95, 0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.rating-btn:hover::before {
  left: 100%;
}

.rating-btn:hover {
  border-color: #c8a25f;
  color: #c8a25f;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(200, 162, 95, 0.3);
}

.rating-btn.liked {
  background: rgba(76, 175, 80, 0.15);
  border-color: #4CAF50;
  color: #4CAF50;
  transform: scale(1.05);
}

.rating-btn.disliked {
  background: rgba(244, 67, 54, 0.15);
  border-color: #F44336;
  color: #F44336;
  transform: scale(1.05);
}

.rating-btn i {
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.rating-btn:hover i {
  transform: scale(1.2);
}

.rating-result {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #b0b0b0;
  font-weight: 500;
  line-height: 1.4;
}

.feedback-section {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(200, 162, 95, 0.1);
}

.feedback-btn {
  background: transparent;
  border: 1px solid rgba(200, 162, 95, 0.3);
  border-radius: 25px;
  padding: 14px 28px;
  color: #b0b0b0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.feedback-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 95, 0.1), transparent);
  transition: left 0.5s;
}

.feedback-btn:hover::before {
  left: 100%;
}

.feedback-btn:hover {
  border-color: #c8a25f;
  color: #c8a25f;
  background: rgba(200, 162, 95, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 162, 95, 0.2);
}

.feedback-btn i {
  transition: all 0.3s ease;
}

.feedback-btn:hover i {
  transform: scale(1.2);
}

/* Modal de Comentarios */
.feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(10px);
  }
}

.feedback-modal.active {
  display: flex;
}

.feedback-modal-content {
  background: #0a0a0a;
  border: 2px solid #c8a25f;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feedback-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(200, 162, 95, 0.05);
  border-radius: 20px 20px 0 0;
}

.feedback-modal-header h3 {
  color: #c8a25f;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.feedback-modal-close {
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feedback-modal-close:hover {
  color: #c8a25f;
  background: rgba(200, 162, 95, 0.1);
  transform: rotate(90deg);
}

.feedback-form {
  padding: 25px;
}

.feedback-form .form-group {
  margin-bottom: 20px;
}

.feedback-form label {
  display: block;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 1rem;
}

.feedback-form textarea {
  width: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  resize: vertical;
  min-height: 140px;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.feedback-form textarea:focus {
  outline: none;
  border-color: #c8a25f;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(200, 162, 95, 0.1);
}

.feedback-form textarea::placeholder {
  color: #888;
  font-style: italic;
}

.feedback-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
  padding: 10px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
  border-left: 3px solid #ff6b6b;
}

.feedback-success {
  color: #4CAF50;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
  padding: 10px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
  border-left: 3px solid #4CAF50;
}

.feedback-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.feedback-actions .btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feedback-actions .btn-primary {
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  color: var(--primary-black);
  border: none;
}

.feedback-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 162, 95, 0.4);
}

.feedback-actions .btn-secondary {
  background: transparent;
  color: var(--rich-gold);
  border: 2px solid var(--border-gold);
}

.feedback-actions .btn-secondary:hover {
  background: rgba(200, 162, 95, 0.1);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .stats-system-container {
    margin: 20px 0;
    padding: 20px 15px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-item {
    padding: 15px 10px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .rating-buttons {
    gap: 20px;
  }
  
  .rating-btn {
    width: 50px;
    height: 50px;
  }
  
  .feedback-modal-content {
    margin: 10px;
    max-width: none;
  }
  
  .feedback-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .rating-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .rating-btn {
    width: 55px;
    height: 55px;
  }
  
  .stats-title {
    font-size: 1.1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .feedback-modal-header {
    padding: 20px;
  }
  
  .feedback-form {
    padding: 20px;
  }
}

/* Animaciones para elementos de estadísticas */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 162, 95, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(200, 162, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 162, 95, 0);
  }
}

.stat-item:active {
  animation: pulse 0.5s;
}

/* Efectos de carga para estadísticas */
.stat-number {
  position: relative;
}

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  transition: width 0.3s ease;
}

.stat-item:hover .stat-number::after {
  width: 100%;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .stats-system-container,
  .stat-item,
  .rating-btn,
  .feedback-btn {
    transition: none;
  }
  
  .stat-item:hover {
    transform: none;
  }
  
  .rating-btn:hover {
    transform: none;
  }
  
  .feedback-modal {
    animation: none;
  }
  
  .feedback-modal-content {
    animation: none;
  }
}

/* Modo alto contraste */
@media (prefers-contrast: high) {
  .stats-system-container {
    border: 2px solid #c8a25f;
    background: #000000;
  }
  
  .stat-item {
    border: 1px solid #c8a25f;
    background: #111111;
  }
  
  .rating-section {
    border: 1px solid #c8a25f;
    background: #111111;
  }
  
  .rating-btn {
    border: 2px solid #c8a25f;
  }
  
  .feedback-btn {
    border: 2px solid #c8a25f;
  }
}
