/* Barbero Millonario · v2 — editorial dark luxury */

:root {
  --ink: #0a0907;
  --ink-2: #12100d;
  --ink-3: #1b1812;
  --line: rgba(236, 214, 165, 0.14);
  --paper: #f3ecdd;
  --muted: #a89f8c;
  --gold: #d4a64a;
  --gold-hi: #f1d58b;
  --gold-lo: #9c7424;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

em { font-style: italic; color: var(--gold-hi); font-weight: 300; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow span { width: 32px; height: 1px; background: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  white-space: nowrap;
}
.btn--gold {
  color: #1a1204;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  box-shadow: 0 0 0 1px rgba(241, 213, 139, 0.4), 0 12px 32px -10px rgba(212, 166, 74, 0.55);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(241, 213, 139, 0.7), 0 18px 40px -10px rgba(212, 166, 74, 0.75); }
.btn--gold:active { transform: translateY(0); }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

.link-arrow {
  position: relative; font-weight: 500; padding-block: 6px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.link-arrow:hover { color: var(--gold-hi); background-size: 0 1px; background-position: right bottom; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(10, 9, 7, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line);
  padding-block: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.brand__name { font-family: var(--serif); font-size: 0.95rem; line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-hi); }
.nav { display: flex; gap: 36px; font-size: 0.92rem; font-weight: 500; }
.nav a { color: var(--muted); transition: color 0.3s; }
.nav a:hover { color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--pad) 0;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%;
  transform: scale(1.06);
  animation: heroIn 2.4s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 9, 7, 0.92) 0%, rgba(10, 9, 7, 0.6) 38%, rgba(10, 9, 7, 0) 70%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 9, 7, 0) 38%),
    linear-gradient(180deg, rgba(10, 9, 7, 0.55) 0%, rgba(10, 9, 7, 0) 22%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__content { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-bottom: clamp(40px, 8vh, 88px); }
.hero__title {
  margin: 22px 0 24px;
  font-size: clamp(2.9rem, 8.4vw, 7.4rem);
  line-height: 0.98;
  max-width: 11ch;
}
.hero__lead { max-width: 46ch; color: #d6cdb9; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }

.hero__facts {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero__facts li { padding: 22px 0; display: flex; flex-direction: column; }
.hero__facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.hero__facts strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--paper); }
.hero__facts span { color: var(--muted); font-size: 0.88rem; }

/* entrada del hero */
.js .hero__content > *, .js .hero__facts { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.js .hero__content > :nth-child(1) { animation-delay: 0.15s; }
.js .hero__content > :nth-child(2) { animation-delay: 0.3s; }
.js .hero__content > :nth-child(3) { animation-delay: 0.45s; }
.js .hero__content > :nth-child(4) { animation-delay: 0.6s; }
.js .hero__facts { animation-delay: 0.8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); }
.marquee__track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  padding-block: 20px;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--paper);
  animation: marquee 38s linear infinite;
}
.marquee__track i { font-style: normal; color: var(--gold); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(80px, 12vw, 160px); }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__sub { color: var(--muted); max-width: 52ch; }

/* ---------- Servicios ---------- */
.menu { border-top: 1px solid var(--line); }
.menu li { border-bottom: 1px solid var(--line); }
.menu__row {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.3fr) auto; align-items: center; gap: 24px;
  padding: clamp(24px, 3.4vw, 40px) 0;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.menu__row::before {
  content: ''; position: absolute; inset: 0 -24px; z-index: -1;
  background: linear-gradient(90deg, rgba(212, 166, 74, 0.1), rgba(212, 166, 74, 0));
  opacity: 0; transition: opacity 0.4s;
}
.menu__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.menu__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 3rem); letter-spacing: -0.02em; line-height: 1.05; transition: color 0.3s, transform 0.5s var(--ease); }
.menu__desc { color: var(--muted); font-size: 0.98rem; max-width: 44ch; }
.menu__go { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font-weight: 500; font-size: 0.9rem; opacity: 0; transform: translateX(-8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.menu__row:hover::before, .menu__row:focus-visible::before { opacity: 1; }
.menu__row:hover .menu__name, .menu__row:focus-visible .menu__name { color: var(--gold-hi); transform: translateX(10px); }
.menu__row:hover .menu__go, .menu__row:focus-visible .menu__go { opacity: 1; transform: none; }
.services__note { margin-top: 32px; color: var(--muted); font-size: 0.95rem; }
.services__note a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Experiencia ---------- */
.experience { background: var(--ink-2); border-block: 1px solid var(--line); }
.experience__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.experience__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px #000; }
.experience__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 73% 40%; transform: scale(1.35); transform-origin: 73% 45%; }
.experience__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 7, 0.75), transparent 45%); }
.experience__photo figcaption { position: absolute; z-index: 1; left: 24px; bottom: 20px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--paper); }
.steps { display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { font-family: var(--serif); font-size: 3.2rem; line-height: 1; font-weight: 300; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.steps h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 46ch; }

/* ---------- Reserva ---------- */
.booking { position: relative; isolation: isolate; }
.booking::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, rgba(212, 166, 74, 0.14), transparent 70%);
}
.book {
  max-width: 880px; margin-inline: auto;
  padding: clamp(24px, 4.5vw, 56px);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 50px 100px -40px #000, inset 0 1px 0 rgba(241, 213, 139, 0.08);
  display: grid; gap: 40px;
}
.book__step { border: 0; display: grid; gap: 18px; min-width: 0; }
.book__step legend { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; margin-bottom: 18px; float: left; width: 100%; }
.book__step legend + * { clear: both; }
.book__step legend span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-hi); font-family: var(--sans); font-size: 0.85rem; font-weight: 700; flex: none; }
.book__step legend small { margin-left: auto; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input, .day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  color: #d6cdb9; font-weight: 500; font-size: 0.95rem;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.chip:hover span { border-color: rgba(212, 166, 74, 0.6); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: #1a1204; font-weight: 700; }
.chip input:focus-visible + span, .day input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.chips--time { margin-top: 4px; }

.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
.day { position: relative; cursor: pointer; }
.day span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 84px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.day small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.day b { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1; }
.day em { font-size: 0.72rem; font-style: normal; color: var(--muted); }
.day:hover span { border-color: rgba(212, 166, 74, 0.6); }
.day input:checked + span { background: var(--gold); border-color: var(--gold); color: #1a1204; }
.day input:checked + span small, .day input:checked + span em { color: rgba(26, 18, 4, 0.75); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--paper);
  transition: border-color 0.25s, background 0.25s;
}
.field input::placeholder { color: #6f6858; }
.field input:focus { outline: none; border-color: var(--gold); background: rgba(212, 166, 74, 0.05); }

.book__footer { display: grid; gap: 14px; justify-items: center; text-align: center; }
.book__footer .btn { width: 100%; max-width: 420px; }
.book__hint { color: var(--muted); font-size: 0.88rem; }
.book__error { color: #ff9d8a; font-size: 0.92rem; }

/* ---------- Comunidad ---------- */
.social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.social__card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2);
  transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s;
}
.social__card:hover { transform: translateY(-6px); border-color: rgba(212, 166, 74, 0.6); background: var(--ink-3); }
.social__label { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.social__card strong { font-family: var(--serif); font-weight: 300; font-size: 1.55rem; line-height: 1.15; overflow-wrap: anywhere; }
.social__go { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.social__card:hover .social__go { color: var(--gold-hi); }
.social__card--gold { background: linear-gradient(145deg, rgba(241, 213, 139, 0.16), rgba(156, 116, 36, 0.1)); border-color: rgba(212, 166, 74, 0.4); }

/* ---------- Cierre ---------- */
.closing { padding-block: clamp(80px, 12vw, 150px); border-top: 1px solid var(--line); text-align: center; background: radial-gradient(50% 80% at 50% 100%, rgba(212, 166, 74, 0.16), transparent 70%); }
.closing__inner { display: grid; gap: 40px; justify-items: center; }
.closing h2 { font-size: clamp(2.6rem, 7vw, 6rem); max-width: 14ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px 56px; background: var(--ink); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer__nav { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.footer__nav a:hover { color: var(--gold-hi); }
.footer__copy { grid-column: 1 / -1; color: #6f6858; font-size: 0.82rem; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Barra móvil ---------- */
.dock { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .experience__grid { grid-template-columns: 1fr; }
  .experience__photo { aspect-ratio: 16 / 11; }
  .social { grid-template-columns: repeat(2, 1fr); }
  .menu__row { grid-template-columns: 48px 1fr auto; }
  .menu__desc { grid-column: 2 / 3; grid-row: 2; }
  .menu__go { opacity: 1; transform: none; grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .header .btn { display: none; }
  .brand__name { font-size: 0.85rem; }
  .hero { padding-top: 110px; }
  .hero__img { object-position: 76% 40%; }
  .hero__shade {
    background:
      linear-gradient(0deg, var(--ink) 4%, rgba(10, 9, 7, 0.72) 42%, rgba(10, 9, 7, 0.1) 75%),
      linear-gradient(180deg, rgba(10, 9, 7, 0.6) 0%, rgba(10, 9, 7, 0) 22%);
  }
  .hero__content { padding-bottom: 28px; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; }
  .hero__facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero__facts span { text-align: right; }
  .menu__name { font-size: 1.75rem; }
  .menu__go { display: none; }
  .menu__row { grid-template-columns: 40px 1fr; }
  .steps li { grid-template-columns: 48px 1fr; }
  .steps__n { font-size: 2.6rem; }
  .fields { grid-template-columns: 1fr; }
  .book__step legend { flex-wrap: wrap; }
  .book__step legend small { margin-left: 46px; width: 100%; }
  .social { grid-template-columns: 1fr; }
  .social__card { min-height: 150px; gap: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }

  .dock {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: flex; gap: 10px; padding: 8px;
    background: rgba(10, 9, 7, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 999px;
    transform: translateY(140%); transition: transform 0.5s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { flex: 1; padding-block: 14px; }
  .dock__wa { display: grid; place-items: center; width: 52px; flex: none; border-radius: 50%; background: #25d366; color: #052e16; }
}

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