/* Estilos específicos para la página de feedback */

/* Rating summary */
.rating-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.overall-rating {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.rating-stars.small {
  font-size: 1rem;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-container {
  flex: 1;
  background: #f0f0f0;
  border-radius: 10px;
  height: 8px;
}

.bar {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
}

/* Testimonios */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  animation: fadeIn 0.6s ease forwards;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guest-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.testimonial-date {
  color: #666;
  font-size: 0.9rem;
  display: block;
  margin-top: 1rem;
}

/* Formulario de feedback */
.feedback-form-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.star-rating {
  color: #ccc;
  cursor: pointer;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.star-rating i {
  transition: all 0.2s;
}

.star-rating .fas {
  color: #ffc107;
}

/* Google review CTA */
.google-review-cta {
  background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.google-review-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.1)" x="0" y="0" width="50" height="50"/><rect fill="rgba(255,255,255,0.1)" x="50" y="50" width="50" height="50"/></svg>');
  background-size: 50px 50px;
  transform: rotate(30deg);
  opacity: 0.1;
}

.google-review-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
}

.google-review-cta p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-size: 1.1rem;
  position: relative;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #4285F4;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s;
  position: relative;
}

.google-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.google-icon {
  width: 24px;
  height: 24px;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Estados de carga y error */
.loading-spinner, .error-message {
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
}

.loading-spinner i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.error-message i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.error-message a {
  margin-top: 1rem;
  display: inline-block;
}

/* Responsive */
@media (max-width: 992px) {
  .rating-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}