* {
  box-sizing: border-box;
}
 
body {
  margin: 0;
  background: #fff9fb;
  color: #493a41;
  font: 16px system-ui, sans-serif;
}
 
header {
  text-align: center;
  padding: 65px 16px;
  background: linear-gradient(135deg, #f4dfe7, #fff7fa);
}
 
h1 {
  font: 52px Georgia, serif;
  margin: 0;
}
 
header p {
  color: #805e6d;
}
 
main {
  max-width: 850px;
  margin: 30px auto;
  padding: 0 16px;
}
 
section {
  background: white;
  border: 1px solid #ecdce2;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 22px;
}
 
h2 {
  font: 28px Georgia, serif;
}
 
button {
  background: #9b6179;
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  margin: 5px;
  cursor: pointer;
}
 
button:disabled {
  opacity: 0.5;
}
 
input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}
 
/* SERVICIOS */
 
#services {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(170px, 1fr)
  );
  gap: 12px;
  margin: 20px 0;
}
 
#services button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
 
  min-height: 115px;
  margin: 0;
  padding: 16px 12px;
 
  background: #f6dce8;
  color: #683a52;
  border: 2px solid #e9c3d5;
  border-radius: 14px;
 
  font-size: 15px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
 
#services button:hover:not(:disabled) {
  background: #edc7d9;
}
 
#services button.selected {
  background: #9b6179;
  color: white;
  border-color: #9b6179;
}
 
#services button .service-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
}
 
#services button .service-duration,
#services button .service-price {
  display: block;
  font-size: 14px;
}
 
/* HORARIOS */
 
#slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
 
#slots button {
  margin: 0;
  min-width: 85px;
  padding: 13px 16px;
 
  background: #f6dce8;
  color: #683a52;
  border: 2px solid #e9c3d5;
  border-radius: 12px;
 
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
 
#slots button:hover:not(:disabled) {
  background: #edc7d9;
}
 
#slots button.selected {
  background: #9b6179;
  color: white;
  border-color: #9b6179;
}
 
/* CALENDARIO MENSUAL */
 
.calendar {
  max-width: 440px;
  margin: 20px 0 30px;
}
 
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  text-transform: capitalize;
  font-size: 18px;
}
 
.calendar-header button {
  background: #9d5c78;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 24px;
}
 
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  text-align: center;
}
 
.calendar-grid span {
  padding: 10px 0;
  font-weight: 600;
  font-size: 13px;
}
 
.calendar-grid button {
  aspect-ratio: 1;
  border: 1px solid #ead5df;
  border-radius: 10px;
  background: white;
  color: #49303d;
  cursor: pointer;
  font-size: 14px;
}
 
.calendar-grid button:hover:not(:disabled) {
  background: #f6e5ed;
}
 
.calendar-grid button.selected {
  background: #9d5c78;
  color: white;
  border-color: #9d5c78;
}
 
.calendar-grid button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #eeeeee;
}
 
@media (max-width: 480px) {
  .calendar {
    max-width: 100%;
  }
 
  .calendar-grid {
    gap: 4px;
  }
 
  #services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
 
  #services button {
    min-height: 105px;
    padding: 12px 8px;
  }
 
  #slots {
    gap: 8px;
  }
 
  #slots button {
    min-width: 75px;
    padding: 12px;
  }
}
 
/* FORMULARIO DE RESERVA */
 
#booking-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 440px;
}
 
#booking-form label {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
}
 
#booking-form input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 14px;
  border: 1px solid #e5d5dd;
  border-radius: 12px;
  font-size: 15px;
  background: white;
}
 
#book-button {
  margin-top: 15px;
  padding: 14px 24px;
  border-radius: 12px;
  background: #9b6179;
  color: white;
}
 
#booking-message {
  line-height: 1.6;
  margin-top: 12px;
}
 
 
/* Tema dinámico: tonos claros para fondos y oscuros para selecciones */
:root {
  --faritas-accent:#9b6179; --faritas-dark:#683a52;
  --faritas-soft:#f6dce8; --faritas-bg:#fff9fb;
  --faritas-border:#e9c3d5; --faritas-ink:#493a41;
  --faritas-header:#f4dfe7;
}
body {background:var(--faritas-bg);color:var(--faritas-ink)}
header {background:linear-gradient(135deg,var(--faritas-header),var(--faritas-bg))}
header p {color:#fff !important;font-size:28px;font-weight:500;text-align:center;line-height:1.4;margin-top:18px;text-shadow:0 1px 5px #0008}
section {border-color:var(--faritas-border)}
button, #book-button, .calendar-header button {background:var(--faritas-accent);color:white}
#services button,#slots button {background:var(--faritas-soft);border-color:var(--faritas-border);color:var(--faritas-ink)}
#services button:hover:not(:disabled),#slots button:hover:not(:disabled),.calendar-grid button:hover:not(:disabled) {background:var(--faritas-border)}
#services button.selected,#slots button.selected,.calendar-grid button.selected {background:var(--faritas-dark);border-color:var(--faritas-dark);color:white}
.calendar-grid button {border-color:var(--faritas-border);color:var(--faritas-ink)}
.calendar-grid button:disabled {background:#eee}
#booking-form input {border-color:var(--faritas-border)}
@media(max-width:480px){header p{font-size:22px}}
