:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --surface: #1c1c1c;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --white: #ffffff;
  --accent: #f5c518; /* amarillo del banner, uso muy puntual */
  --wsp: #25d366;
  --radius: 12px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav__name, .hero__title, .footer__name {
  font-family: "Oswald", "Inter", sans-serif;
  letter-spacing: 0.02em;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--wsp { background: var(--wsp); color: #04310f; }
.btn--wsp:hover { background: #2ee06f; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--white); }
.btn--block { width: 100%; }
.btn--state { color: #fff; }
.btn--free { background: #1f6f3f; }
.btn--busy { background: #6b6b6b; }
.btn--closed { background: #4a1f1f; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo { width: 34px; height: 34px; object-fit: contain; filter: invert(1); }
.nav__name { font-size: 1.3rem; font-weight: 600; }
.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.92rem;
}
.nav__links a { color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--white); }
.nav__cta { padding: 0.55rem 1.2rem; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); transition: 0.3s; }
.nav__mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1rem;
}
.nav__mobile a { padding: 0.7rem 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.nav__mobile.is-open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.75) 60%, rgba(10,10,10,0.95) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 2rem 1.25rem; max-width: 720px; }
.hero__hat { width: 90px; margin: 0 auto 0.5rem; filter: invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.6)); }
.hero__title { font-size: clamp(3rem, 9vw, 6rem); font-weight: 700; line-height: 0.95; }
.hero__tagline {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}
.hero__sub { color: var(--muted); margin: 1.2rem auto 2rem; max-width: 520px; text-wrap: pretty; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 1.5rem; left: 0; right: 0; z-index: 3; display: flex; gap: 0.5rem; justify-content: center; }
.hero__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.35); cursor: pointer; padding: 0;
}
.hero__dots button.is-active { background: var(--white); }

/* ===== SECTIONS ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.25rem; }
.section--dark { max-width: none; background: var(--bg-2); }
.section--dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 3rem; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; text-wrap: balance; }
.section__desc { color: var(--muted); margin-top: 0.75rem; max-width: 560px; margin-inline: auto; text-wrap: pretty; }

/* ===== SERVICIOS ===== */
.services__image {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.services__image img { width: 100%; display: block; }
.services__note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

/* ===== GALERÍA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.06); }

/* ===== BARBEROS ===== */
.barberos__group {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.barberos__group img { width: 100%; display: block; }
.barberos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.barbero {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.barbero:hover { border-color: #444; transform: translateY(-4px); }
.barbero__img { aspect-ratio: 3 / 4; background: var(--bg-2); overflow: hidden; }
.barbero__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.barbero:hover .barbero__img img { transform: scale(1.06); }
.barbero__info {
  text-align: center;
  padding: 0.9rem 0.5rem;
  border-top: 1px solid var(--line);
}
.barbero__name {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.barbero__nick {
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== PRODUCTOS ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}
.product:hover { border-color: #444; transform: translateY(-4px); }
.product__img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-2);
}
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product:hover .product__img img { transform: scale(1.06); }
.product h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.product p { color: var(--muted); font-size: 0.9rem; min-height: 2.5rem; }
.product__price {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
}
/* ===== AGENDA ===== */
.agenda {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}
.agenda__calendar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.cal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.cal__month { font-size: 1.4rem; font-weight: 600; text-transform: capitalize; }
.cal__nav {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  width: 40px; height: 40px; border-radius: 8px; font-size: 1.4rem; cursor: pointer;
  transition: background 0.2s;
}
.cal__nav:hover { background: #2c2c2c; }
.cal__weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem;
  color: var(--muted); font-size: 0.78rem; text-align: center; margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; }
.cal__day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  position: relative;
}
.cal__day--empty { background: transparent; border-color: transparent; }
.cal__day--past { opacity: 0.3; }
.cal__day--today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal__day--busy { background: #3a3a3a; color: var(--muted); text-decoration: line-through; }
.cal__day--closed { background: #2a1414; color: #a06565; }
.cal__day.is-editable { cursor: pointer; }
.cal__day.is-editable:hover { border-color: var(--accent); }
.cal__legend { display: flex; gap: 1.25rem; margin-top: 1.25rem; font-size: 0.82rem; color: var(--muted); flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.dot--free { background: var(--bg-2); border: 1px solid var(--line); }
.dot--busy { background: #3a3a3a; }
.dot--closed { background: #4a1f1f; }

.agenda__side { display: flex; flex-direction: column; gap: 1rem; }
.agenda__box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.agenda__box h3 { margin-bottom: 0.9rem; font-size: 1.2rem; }
.agenda__box ol { padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.agenda__box ol li { margin-bottom: 0.4rem; }
.agenda__adminStatus { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.agenda__hint { color: var(--muted); font-size: 0.8rem; margin-top: 0.75rem; }

/* ===== HORARIO ===== */
.schedule { max-width: 560px; margin: 0 auto; }
.schedule__row {
  display: flex; justify-content: space-between;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.schedule__row span:first-child { font-family: "Oswald", sans-serif; }
.schedule__row span:last-child { color: var(--muted); }
.schedule__row--closed span:last-child { color: #a06565; }

/* ===== OPINIONES ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.review p { font-style: italic; margin-bottom: 1rem; }
.review footer { color: var(--accent); font-family: "Oswald", sans-serif; }

/* ===== CONTACTO ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__item h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 0.3rem; }
.contact__item a { font-size: 1.1rem; }
.contact__item a:hover { color: var(--accent); }
.contact__social { display: flex; gap: 1.25rem; }
.contact__map {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  min-height: 320px;
}
.contact__map img { width: 100%; height: 100%; object-fit: cover; }
.contact__mapLabel {
  position: absolute; inset: auto 0 0 0; padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  text-align: center; font-family: "Oswald", sans-serif;
}

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 3rem 1.25rem; border-top: 1px solid var(--line); }
.footer__logo { width: 50px; margin: 0 auto 0.5rem; filter: invert(1); }
.footer__name { font-size: 1.4rem; }
.footer__copy { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ===== WSP FLOAT ===== */
.wsp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wsp); color: #04310f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.wsp-float:hover { transform: scale(1.08); }

/* ===== MODALES ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; width: 100%; max-width: 420px;
}
.modal__close {
  position: absolute; top: 0.75rem; right: 0.9rem;
  background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.modal__box h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal__desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.modal__form { display: flex; flex-direction: column; gap: 1rem; }
.modal__form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.modal__form input {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.75rem; color: var(--text); font-size: 1rem; font-family: inherit;
}
.modal__form input:focus { outline: none; border-color: var(--accent); }
.modal__error { color: #e56b6b; font-size: 0.88rem; }
.modal__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .agenda { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__map { min-height: 260px; }
}
