@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 cálido */
body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2C9B8 60%, #D3D3D3 100%);
  color: #000000;
  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 profesionales ===== */
.rv-main-card {
  background-color: #F9E6DD;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(242, 201, 184, 0.3);
  padding: 20px;
  border: 1px solid #F2C9B8;
}

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

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

/* ===== Títulos ===== */
.rv-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 24px 0 16px;
  color: #000000;
  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: #e5b39c;
  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 1 calc(25% - 14px); /* 4 por fila en desktop */
  max-width: 160px;
  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: #F2C9B8;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(242, 201, 184, 0.3);
}

.rv-stylist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(229, 179, 156, 0.4);
  background-color: #e5b39c;
  border-color: #e5b39c;
}

.rv-stylist-card.selected {
  background-color: #e5b39c;
  border-color: #e5b39c;
  box-shadow: 0 6px 18px rgba(229, 179, 156, 0.5);
}

/* ===== 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(242, 201, 184, 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(229, 179, 156, 0.5);
  border-color: #F2C9B8;
}

/* ===== Nombre profesional ===== */
.rv-stylist-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
  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;
  background-color: #F9E6DD;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #F2C9B8;
  box-shadow: 0 3px 12px rgba(242, 201, 184, 0.3);
}

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

.rv-service-card:hover {
  background-color: #e5b39c;
  border-color: #e5b39c;
  box-shadow: 0 4px 12px rgba(229, 179, 156, 0.4);
  transform: translateX(3px);
}

.rv-service-card.selected {
  background-color: #e5b39c;
  border-color: #e5b39c;
  box-shadow: 0 4px 14px rgba(229, 179, 156, 0.5);
}

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

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

.rv-service-duration {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

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

/* ===== Mensaje por defecto ===== */
.rv-default-message {
  text-align: center;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 20px;
  font-style: italic;
}

/* ===== Responsive ===== */

/* Tablets grandes */
@media (max-width: 992px) {
  .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-stylist-card {
    flex: 0 1 calc(33.333% - 12px); /* 3 por fila */
    max-width: none;
  }
}

/* Móviles medianos */
@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 {
    flex: 0 1 calc(50% - 10px); /* 2 por fila */
    padding: 10px;
    max-width: none;
  }

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

/* Móviles pequeños */
@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 {
    flex: 0 1 calc(50% - 8px);
    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;
  }
}
