/* 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 claro coherente */
body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #F7FAFC 0%, #F9FBFD 50%, #FFFFFF 100%);
  color: #0F172A;
  min-height: 100vh;
  overflow-y: auto;
}

/* ===== Loader global ===== */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 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: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06);
  padding: 20px;
  border: 1px solid #E2E8F0;
}

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

.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: #0F172A;
  text-shadow: none;
}

.rv-section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: -8px 0 20px;
  color: #2E7DDB; /* primario */
  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: #F9FBFD;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(2, 6, 23, 0.04);
}

.rv-stylist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(46, 125, 219, 0.12);
  background-color: #F0F7FF;
  border-color: #2E7DDB; /* primario */
}

.rv-stylist-card.selected {
  background-color: #E8F4FF;
  border-color: #2E7DDB;
  box-shadow: 0 6px 18px rgba(46, 125, 219, 0.2);
}

/* ===== 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(105, 195, 176, 0.35);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rv-stylist-card:hover .rv-stylist-photo,
.rv-stylist-card.selected .rv-stylist-photo {
  box-shadow: 0 0 12px rgba(46, 125, 219, 0.2);
  border-color: #69C3B0;
}

/* ===== Nombre profesional ===== */
.rv-stylist-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0F172A;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: 0.01em;
}

/* ===== 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: #F9FBFD;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.03);
}

.rv-service-card:hover {
  background-color: #F0F7FF;
  border-color: #2E7DDB;
  box-shadow: 0 4px 12px rgba(46, 125, 219, 0.1);
  transform: translateX(3px);
}

.rv-service-card.selected {
  background-color: #E8F4FF;
  border-color: #2E7DDB;
  box-shadow: 0 4px 14px rgba(46, 125, 219, 0.15);
}

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

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

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

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

/* ===== Mensaje por defecto ===== */
.rv-default-message {
  text-align: center;
  color: #64748B;
  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;
  }
}