/* Importa fuentes: Montserrat (base) + opciones script/handwritten/calligraphy */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Dancing+Script:wght@700&family=Patrick+Hand&family=Great+Vibes&display=swap');

/* Paleta (beige / marrón / oliva) */
:root{
  --bg-beige-1: #F6F0E6;
  --bg-beige-2: #EFE6D8;
  --bg-beige-3: #E7DED0;
  --text-primary: #4B3F36;
  --muted: rgba(75,63,54,0.65);
  --card-bg: #FFFFFF;
  --accent-olive: #6B7A2A;
  --accent-olive-dark: #576426;
  --shadow-olive: rgba(107,122,42,0.12);
}

/* sucursal/agenda: mantenemos estructura original, solo cambiamos paleta + fuentes */

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

/* Agenda: asegura scroll vertical normal */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: auto;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-beige-1) 0%, var(--bg-beige-2) 50%, var(--bg-beige-3) 100%);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
}

/* Contenedor principal */
.rv-container {
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  background-color: transparent; /* usamos el background del body */
  color: var(--text-primary);
  padding: 0;   /* quitamos el padding lateral */
  display: block;
}

/* Cards unificados */
.rv-main-card,
.rv-services-container {
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 15px var(--shadow-olive);
  padding: 24px 20px;   /* ajuste, menos padding lateral */
  max-width: 100%;      /* ahora ocupan todo el ancho disponible */
  width: 100%;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 🔥 Fix: quitar margen blanco arriba */
.rv-container > .rv-main-card:first-child {
  margin-top: 0;
}
.rv-main-card > .rv-section-title:first-child {
  margin-top: 0;
}

/* Banner superior */
.rv-banner-container {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

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

/* Títulos de sección */
.rv-section-title {
  font-family: 'Dancing Script', cursive; /* título en script para mantener estilo */
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 20px auto 10px;
  max-width: 700px;
  color: var(--text-primary);
}

/* Subtítulo */
.rv-section-subtitle {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Lista de estilistas */
.rv-stylists-list {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 0 20px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rv-stylists-list::-webkit-scrollbar {
  display: none;
}

/* Tarjeta de estilista */
.rv-stylist-card {
  flex: 0 0 auto;
  min-width: 8rem;
  max-width: 10rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 8px;
  background: transparent; /* no alterar la estructura visual base */
}

.rv-stylist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

/* Foto del estilista */
.rv-stylist-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 8px;
  transition: box-shadow 0.3s ease;
  border: 3px solid rgba(75,63,54,0.06);
}

.rv-stylist-card:hover .rv-stylist-photo {
  box-shadow: 0 0 8px var(--shadow-olive);
}

/* Nombre del estilista */
.rv-stylist-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mensaje por defecto */
.rv-default-message {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
  padding: 40px 20px;
}

/* Estilo selección */
.selected {
  box-shadow: 0 0 12px 3px rgba(107,122,42,0.18);
  border-radius: 12px;
  background-color: rgba(107,122,42,0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Tarjeta de servicio */
.service-card {
  background-color: #f9fafb;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
  transition: box-shadow 0.2s ease, background-color 0.3s ease;
  padding: 16px;
  margin-bottom: 12px;
}

.service-card:hover {
  box-shadow: 0 8px 20px rgba(107,122,42,0.18);
  background-color: rgba(107,122,42,0.04);
}

.service-category {
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.service-info {
  color: #4b5563;
  font-size: 0.9rem;
}

.service-name {
  font-weight: 700;
  color: #111827;
  font-size: 1.125rem;
  margin-bottom: 6px;
}

/* Tablet */
@media (max-width: 768px) {
  .rv-main-card, .rv-services-container {
    padding: 20px;
    margin-bottom: 30px;
  }
  .rv-banner {
    height: 180px;
  }
  .rv-section-title {
    font-size: 1.25rem;
  }
  .rv-stylist-photo {
    width: 70px;
    height: 70px;
  }
}

/* Móvil */
@media (max-width: 640px) {
  .rv-main-card,
  .rv-services-container {
    margin: 0 auto 30px;
    padding: 16px;
    max-width: 100%;
    width: 100%;
  }
  .rv-banner {
    height: 150px;
  }
  .rv-stylists-list {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    overflow-x: visible;
  }
  .rv-stylist-card {
    width: 120px;
    max-width: 40%;
    padding: 8px;
    margin: 0 auto;
    min-width: auto;
  }
  .rv-stylist-photo {
    width: 70px;
    height: 70px;
  }
  .rv-stylist-name {
    font-size: 0.9rem;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
  .rv-section-title {
    font-size: 1.2rem;
  }
  .rv-section-subtitle {
    font-size: 1rem;
  }
  .service-card {
    width: 100%;
    margin: 0 auto 12px;
    padding: 14px;
  }
  .service-name {
    font-size: 1rem;
  }
  .service-category, .service-info {
    font-size: 0.85rem;
  }
  .rv-default-message {
    padding: 30px 15px;
    font-size: 0.95rem;
  }
}

/* Móvil muy pequeño */
@media (max-width: 480px) {
  .rv-main-card,
  .rv-services-container {
    padding: 12px;
    max-width: 100%;
  }
  .rv-stylist-card {
    width: 100px;
    max-width: 45%;
  }
  .rv-stylist-photo {
    width: 60px;
    height: 60px;
  }
  .rv-stylist-name {
    font-size: 0.85rem;
  }
  .rv-section-title {
    font-size: 1.1rem;
  }
}