/* JF The Barber — propuesta de diseño (minimalista, editorial) */
:root {
  --bone: #F4F1EC;
  --bone-2: #EAE5DD;
  --ink: #222222;
  --muted: #55514B;
  --copper: #B87333;      /* solo decorativo */
  --copper-text: #8A5226; /* texto sobre hueso */
  --copper-light: #D49A66;/* texto sobre carbón */
  --rule: rgba(34,34,34,.16);
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 20px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.65;
  padding-bottom: 76px; /* espacio para la barra móvil */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-text); }
:focus-visible { outline: 2px solid var(--copper-text); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: .95; margin: 0; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bone); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; color: var(--bone); }
.ico { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid var(--ink);
  font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: background .25s, color .25s, border-color .25s;
}
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: var(--copper-text); border-color: var(--copper-text); color: #fff; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bone); }
.btn--light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--light:hover { background: transparent; color: var(--bone); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .82rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; }

/* Cabecera */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(244,241,236,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--rule); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 40px; height: 40px; color: var(--ink); }
.logo__text { font-family: var(--display); font-size: 1.6rem; letter-spacing: .06em; line-height: 1; }
.logo__text span { color: var(--copper-text); }

.menu-btn {
  width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.menu-btn span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  display: none; flex-direction: column; gap: 4px; padding: 16px var(--gutter) 28px;
  background: var(--bone); border-bottom: 1px solid var(--rule);
}
.no-js .nav { display: flex; position: static; }
.nav.open { display: flex; }
.nav a:not(.btn) {
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
}
.nav .btn { margin-top: 16px; }

/* Etiquetas */
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-text);
}
.kicker__line { display: inline-block; width: 36px; height: 1px; background: var(--copper); }
.accent { color: var(--copper-text); }

/* Portada */
.hero { padding: 48px 0 0; border-bottom: 1px solid var(--rule); }
.hero__grid { display: grid; gap: 40px; }
.hero__title { font-size: clamp(3.6rem, 17vw, 8.5rem); margin-bottom: 24px; }
.hero__lead { font-size: 1.08rem; font-weight: 300; max-width: 34ch; color: var(--muted); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 200px; }
.hero__art svg { width: min(78vw, 360px); margin: 0 auto; }
.hero__meta {
  display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--rule);
}
.hero__meta p { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; display: flex; flex-direction: column; }
.hero__meta p:last-child { border-bottom: 0; }
.meta__label { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* Secciones */
.section { padding: 80px 0; border-bottom: 1px solid var(--rule); }
.section--alt { background: var(--bone-2); }
.section--dark { background: var(--ink); color: var(--bone); border-bottom: 0; }
.section--dark .kicker { color: var(--copper-light); }
.section--dark .section__num { color: rgba(244,241,236,.5); border-color: rgba(244,241,236,.3); }
.section__head { margin-bottom: 40px; }
.section__head h2 { font-size: clamp(2.8rem, 11vw, 5rem); }
.section__num {
  font-family: var(--display); font-size: 1.1rem; letter-spacing: .1em; color: var(--muted);
  display: inline-block; border-top: 1px solid var(--ink); padding-top: 6px; margin-bottom: 20px;
}
.section__sub { color: var(--muted); margin: 16px 0 0; }

/* Servicios */
.services { display: grid; border-top: 1px solid var(--rule); }
.service { padding: 28px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.service__ico { width: 36px; height: 36px; color: var(--copper); grid-row: span 2; }
.service h3 { font-size: 2rem; margin-bottom: 6px; }
.service p { margin: 0; color: var(--muted); }
.note { margin: 32px 0 0; font-size: 1rem; }
.note a { color: var(--copper-text); font-weight: 500; }

/* Nosotros */
.about__lead { font-size: 1.25rem; font-weight: 300; line-height: 1.5; }
.about__body > p:not(.about__lead) { color: var(--muted); max-width: 60ch; }
.about__tools { display: flex; align-items: flex-end; gap: 32px; margin-top: 36px; }
.about__tools svg:first-child { width: 200px; }
.about__tools svg:last-child { width: 56px; }

/* Horario */
.hours { border: 1px solid var(--ink); padding: 32px 24px; display: grid; gap: 8px; }
.hours__ico { width: 32px; height: 32px; color: var(--copper); margin-bottom: 8px; }
.hours__text { font-family: var(--display); font-size: 2.2rem; line-height: 1; margin: 0; }
.hours__text a { color: var(--copper-text); }
.hours__sub { margin: 0; color: var(--muted); }

/* Reservas */
.booking { border: 1px dashed rgba(244,241,236,.4); padding: 36px 24px; }
.booking__title { font-family: var(--display); font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.booking__text { color: rgba(244,241,236,.82); max-width: 48ch; }
.booking__actions { margin-top: 24px; }
.booking__actions .btn { width: 100%; }

/* Mapa */
.map { border: 1px solid var(--ink); aspect-ratio: 4 / 3; background: var(--bone-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.map__actions { margin: 24px 0 0; }

/* Contacto */
.contact { display: grid; border-top: 1px solid var(--rule); }
.contact__item {
  display: flex; align-items: center; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; transition: padding .25s;
}
.contact__item .ico { width: 26px; height: 26px; color: var(--copper); }
.contact__item span { display: flex; flex-direction: column; font-size: 1.05rem; }
.contact__item strong { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact__item:hover { padding-left: 8px; color: var(--copper-text); }

/* Pie */
.footer { padding: 48px 0; background: var(--bone); }
.footer__inner { display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.footer__inner p { margin: 0; }
.footer__logo { font-family: var(--display); font-size: 2rem; letter-spacing: .06em; color: var(--ink); }
.footer__logo span { color: var(--copper-text); }
.footer__demo { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-text); font-weight: 600; }

/* Barra fija móvil */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(244,241,236,.96); border-top: 1px solid var(--rule);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border: 1px solid var(--ink); color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.mobile-cta__btn--dark { background: var(--ink); color: var(--bone); }
.mobile-cta__btn--dark:hover { color: var(--bone); }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__meta { grid-template-columns: repeat(3, 1fr); }
  .hero__meta p { border-bottom: 0; border-right: 1px solid var(--rule); padding: 20px 20px 20px 0; }
  .hero__meta p + p { padding-left: 20px; }
  .hero__meta p:last-child { border-right: 0; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .contact { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .booking__actions .btn { width: auto; }
  .map { aspect-ratio: 16 / 9; }
}

/* Escritorio */
@media (min-width: 960px) {
  :root { --gutter: 48px; --header-h: 80px; }
  body { padding-bottom: 0; }
  .mobile-cta, .menu-btn { display: none; }
  .nav, .no-js .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 32px;
    padding: 0; background: none; border: 0;
  }
  .nav a:not(.btn) { border: 0; padding: 6px 0; font-size: .8rem; }
  .nav .btn { margin: 0; }
  .hero { padding-top: 80px; }
  .hero__grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 64px; }
  .hero__art svg { width: 100%; max-width: 420px; }
  .section { padding: 128px 0; }
  .section__head { display: grid; grid-template-columns: 120px 1fr; column-gap: 24px; }
  .section__head .section__num { grid-row: span 3; align-self: start; }
  .about, .split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .about .section__head, .split .section__head { display: block; margin: 0; }
  .services { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .service { grid-template-columns: 1fr; padding: 32px 0; }
  .service__ico { grid-row: auto; margin-bottom: 28px; }
  .note { margin-left: 0; }
  .hours { padding: 48px; }
  .booking { padding: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
