/* 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 usando variables */
body {
  font-family: var(--font-primary);
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-y: auto;
}

/* ===== Loader global ===== */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  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: var(--spacing-lg) 16px 40px;
}

/* ===== Card principal ===== */
.rv-main-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
}

/* ===== Banner ===== */
.rv-banner-container {
  width: 100%;
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

/* ===== Títulos ===== */
.rv-section-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin: 24px 0 16px;
  color: var(--color-text-primary);
  text-shadow: none;
}

.rv-section-subtitle {
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  margin: -8px 0 var(--spacing-lg);
  color: var(--color-secondary);
  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: var(--radius-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
  padding: 14px;
  background-color: var(--bg-card);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.rv-stylist-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background-color: var(--bg-card-hover);
  border-color: var(--color-secondary);
}

.rv-stylist-card.selected {
  background-color: var(--bg-card-hover);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-hover);
}

/* ===== Foto profesional RECTANGULAR (nuevo estilo) ===== */
.rv-stylist-photo {
  width: 100px;              /* Ancho mayor (proporcional al card) */
  height: 140px;             /* Alto tipo retrato */
  border-radius: var(--radius-lg); /* Bordes suaves, no circulares */
  background-position: center;
  background-size: cover;
  margin-bottom: var(--spacing-sm);
  border: 3px solid var(--color-primary);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}

.rv-stylist-card:hover .rv-stylist-photo,
.rv-stylist-card.selected .rv-stylist-photo {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(46, 125, 219, 0.3);
  border-color: var(--color-primary);
}

/* ===== Nombre profesional ===== */
.rv-stylist-name {
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  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: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.rv-service-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-hover);
  transform: translateX(3px);
}

.rv-service-card.selected {
  background-color: var(--bg-card-hover);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-hover);
}

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

.rv-service-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}

.rv-service-duration {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  font-weight: 500;
}

.rv-service-category {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== Precio del servicio ===== */
.rv-service-price {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  white-space: nowrap;
}

/* ===== Mensaje por defecto ===== */
.rv-default-message {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.98rem;
  font-weight: 500;
  padding: var(--spacing-lg);
  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: var(--font-size-xl);
    margin: var(--spacing-lg) 0 14px;
  }

  .rv-section-subtitle {
    font-size: var(--font-size-base);
    margin: -6px 0 16px;
  }

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

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

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

  .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: var(--font-size-base);
  }
}

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

  .rv-section-title {
    font-size: var(--font-size-lg);
    margin: 18px 0 12px;
  }

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

  .rv-stylists-list {
    gap: var(--spacing-sm);
  }

  .rv-stylist-card {
    width: 120px;
    padding: var(--spacing-sm);
  }

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

  .rv-stylist-name {
    font-size: var(--font-size-xs);
  }

  .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: var(--radius-lg);
  }

  .rv-banner {
    height: 100px;
  }

  .rv-section-title {
    font-size: 1.5rem;
    margin: 16px 0 var(--spacing-sm);
  }

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

  .rv-stylist-card {
    width: 110px;
    padding: var(--spacing-sm);
  }

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

  .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;
  }
}