/* Importa fuentes: Montserrat (base) + Great Vibes (marca elegante) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Great+Vibes&display=swap');

/* ===== Reset básico ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fuente base + fondo oscuro coherente */
body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #111 0%, #1c1c1c 50%, #2a2a2a 100%);
  color: #eaeaea;
  min-height: 100vh;
  overflow-y: auto;
}

/* ===== Loader global ===== */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-logo {
  width: 100px;
  height: 100px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* ===== Contenedor principal ===== */
.rv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ===== Card principal ===== */
.rv-main-card {
  background-color: #1c1c1c;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
  padding: 20px;
  border: 1px solid rgba(212,175,55,0.5);
  color: #eaeaea;
}

/* ===== Banner ===== */
.rv-banner-container {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(212,175,55,0.15);
}

.rv-banner {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Títulos ===== */
.rv-section-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin: 24px 0 16px;
  color: #d4af37;
  letter-spacing: 1px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

.rv-section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: -8px 0 20px;
  color: #b8962c; /* dorado oscuro */
  letter-spacing: 0.02em;
}

/* ===== Lista de profesionales ===== */
.rv-stylists-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

/* ===== Tarjeta profesional ===== */
.rv-stylist-card {
  flex: 0 0 auto;
  width: 140px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  padding: 14px;
  background-color: #2a2a2a;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(212,175,55,0.1);
  color: #eaeaea;
}

.rv-stylist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212,175,55,0.3);
  background-color: #3a3a3a;
  border-color: #d4af37;
}

/* ===== Foto profesional ===== */
.rv-stylist-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  margin-bottom: 10px;
  border: 3px solid rgba(212,175,55,0.7);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

.rv-stylist-card:hover .rv-stylist-photo {
  box-shadow: 0 0 12px rgba(212,175,55,0.8);
  border-color: #d4af37;
}

/* ===== Nombre profesional ===== */
.rv-stylist-name {
  white-space: normal; /* Permite que el texto haga salto de línea */
  overflow: visible;   /* Muestra todo el contenido */
  text-overflow: clip; /* No muestra puntos suspensivos */
  max-width: 100%;
  word-wrap: break-word; /* Permite romper palabras largas */
}

/* ===== Contenedor de servicios ===== */
.rv-services-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

/* ===== Tarjeta de servicio ===== */
.rv-service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background-color: #2a2a2a;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(212,175,55,0.1);
  color: #eaeaea;
}

.rv-service-card:hover {
  background-color: #3a3a3a;
  border-color: #d4af37;
  box-shadow: 0 4px 12px rgba(212,175,55,0.2);
  transform: translateX(3px);
}

.rv-service-card.selected {
  background-color: #444;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(212,175,55,0.3);
}

/* ===== Info del servicio ===== */
.rv-service-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rv-service-name {
  font-size: 1rem;
  font-weight: 600;
  color: #d4af37;
  letter-spacing: 0.01em;
}

.rv-service-duration {
  font-size: 0.88rem;
  color: #b8962c;
  font-weight: 500;
}

/* ===== Precio del servicio ===== */
.rv-service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d4af37;
  white-space: nowrap;
}

/* ===== Mensaje por defecto ===== */
.rv-default-message {
  text-align: center;
  color: #b8962c;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 20px;
  font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .rv-container {
    padding: 16px 12px 32px;
  }

  .rv-main-card {
    padding: 16px;
  }

  .rv-banner {
    height: 140px;
  }

  .rv-section-title {
    font-size: 1.8rem;
    margin: 20px 0 14px;
  }

  .rv-section-subtitle {
    font-size: 1rem;
    margin: -6px 0 16px;
  }

  .rv-stylists-list {
    gap: 12px;
  }

  .rv-stylist-card {
    width: 130px;
    padding: 12px;
  }

  .rv-stylist-photo {
    width: 80px;
    height: 80px;
  }

  .rv-stylist-name {
    font-size: 0.9rem;
  }

  .rv-service-card {
    padding: 12px 14px;
  }

  .rv-service-name {
    font-size: 0.95rem;
  }

  .rv-service-duration {
    font-size: 0.85rem;
  }

  .rv-service-price {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .rv-banner {
    height: 120px;
  }

  .rv-section-title {
    font-size: 1.6rem;
    margin: 18px 0 12px;
  }

  .rv-section-subtitle {
    font-size: 0.95rem;
  }

  .rv-stylists-list {
    gap: 10px;
  }

  .rv-stylist-card {
    width: 120px;
    padding: 10px;
  }

  .rv-stylist-photo {
    width: 75px;
    height: 75px;
  }

  .rv-stylist-name {
    font-size: 0.88rem;
  }

  .rv-service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rv-service-price {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .rv-container {
    padding: 12px 10px 28px;
  }

  .rv-main-card {
    padding: 14px;
    border-radius: 12px;
  }

  .rv-banner {
    height: 100px;
  }

  .rv-section-title {
    font-size: 1.5rem;
    margin: 16px 0 10px;
  }

  .rv-section-subtitle {
    font-size: 0.9rem;
  }

  .rv-stylist-card {
    width: 110px;
    padding: 10px;
  }

  .rv-stylist-photo {
    width: 70px;
    height: 70px;
  }

  .rv-stylist-name {
    font-size: 0.85rem;
  }

  .rv-service-name {
    font-size: 0.92rem;
  }

  .rv-service-duration {
    font-size: 0.82rem;
  }

  .rv-service-price {
    font-size: 0.98rem;
  }
}

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

@keyframes vibrar {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.vibrar {
  animation: vibrar 0.2s linear infinite;
}