/* =========================================================
   Navaja Barber Club · landing de demostración
   Identidad: negro carbón, crema y dorado latón
   ========================================================= */

:root {
  --bg: #0F0E0C;
  --bg-2: #161411;
  --surface: #1C1A16;
  --surface-2: #24211C;
  --line: #2F2B24;
  --cream: #F3EBDD;
  --muted: #B3A893;
  --gold: #C9A45C;
  --gold-strong: #DDBB76;
  --red: #B23A2E;
  --on-gold: #17130B;

  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
  --banner-h: 34px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1; }
h1, h2 { font-family: var(--font-display); letter-spacing: .02em; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.gold { color: var(--gold); }
.note { margin-top: 14px; font-size: .82rem; color: var(--muted); opacity: .8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Aviso de demo ---------- */
.demo-banner {
  min-height: var(--banner-h);
  display: flex; align-items: center; justify-content: center;
  padding: 6px 12px;
  line-height: 1.35;
  background: var(--gold);
  color: var(--on-gold);
  font-size: .78rem;
  text-align: center;
}
.demo-banner a { text-decoration: underline; font-weight: 700; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-strong); }
.btn-outline { border-color: var(--line); color: var(--cream); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(15, 14, 12, .6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(15, 14, 12, .9); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.55rem; letter-spacing: .04em; }
.brand em { font-style: normal; color: var(--gold); }
.brand-icon { width: 24px; height: 24px; color: var(--gold); }

.menu-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer;
}
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  display: grid; gap: 4px; padding: 12px 16px 20px;
  background: rgba(15, 14, 12, .97);
  border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav a:not(.btn) { padding: 12px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--cream); background: var(--surface); }
.nav .btn { margin-top: 6px; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(201, 164, 92, .14), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(178, 58, 46, .10), transparent 70%);
  overflow: hidden;
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(3.6rem, 16vw, 7.5rem); }
.hero-sub { margin-top: 18px; max-width: 32rem; font-size: 1.08rem; color: var(--muted); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.open-status { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.open-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(178, 58, 46, .2); }
.open-status.is-open .dot { background: #4CAF6A; box-shadow: 0 0 0 4px rgba(76, 175, 106, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(76, 175, 106, 0); } }

/* Poste de barbería animado */
.hero-art { position: relative; justify-self: center; width: min(100%, 360px); height: 380px; }
.pole {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 92px; transform: translateX(-50%);
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(90deg, #3A342A, #6E6150 45%, #3A342A);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.pole-stripes {
  height: 100%; border-radius: 36px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35), transparent 35%, transparent 65%, rgba(0,0,0,.35)),
    repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--cream) 18px 36px, #24497A 36px 54px, var(--cream) 54px 72px);
  background-size: 100% 100%, 100% 203.6px;
  animation: pole 4s linear infinite;
}
@keyframes pole { to { background-position: 0 0, 0 203.6px; } }

.hero-badge, .hero-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.hero-badge { left: 0; top: 40px; padding: 14px 18px; display: grid; }
.badge-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: .9; }
.badge-txt { font-size: .8rem; color: var(--muted); }
.hero-card { right: 0; bottom: 48px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.hero-card .icon { color: var(--gold); fill: var(--gold); width: 26px; height: 26px; }
.hero-card div { display: grid; line-height: 1.2; }
.hero-card strong { font-size: 1.3rem; }
.hero-card span { font-size: .78rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.4rem, 9vw, 3.6rem); }
.section-head p:not(.kicker) { margin-top: 12px; color: var(--muted); }

/* Servicios */
.services { display: grid; gap: 14px; }
.service {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s var(--ease);
}
.service:hover { border-color: var(--gold); transform: translateY(-3px); }
.service.is-featured { border-color: rgba(201, 164, 92, .55); background: linear-gradient(180deg, rgba(201,164,92,.08), transparent 60%), var(--surface); }
.service .tag {
  position: absolute; top: -11px; right: 18px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold);
  font-size: .72rem; font-weight: 700;
}
.service-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.service p { color: var(--muted); font-size: .94rem; }
.service-bottom { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); }
.duration { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.duration .icon { width: 16px; height: 16px; }
.link { font-weight: 700; font-size: .9rem; color: var(--gold); }
.link:hover { color: var(--gold-strong); }

/* Ventajas */
.features { display: grid; gap: 28px; }
.feature .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
.feature p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* Equipo */
.team { display: grid; gap: 14px; }
.member {
  padding: 26px 22px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.avatar {
  width: 84px; height: 84px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-strong), #7D6232);
  color: var(--on-gold);
  font-family: var(--font-display); font-size: 2.6rem;
}
.member p { margin-top: 4px; color: var(--muted); font-size: .92rem; }
.years { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; color: var(--gold); }

/* Testimonios */
.reviews { display: grid; gap: 14px; }
.review { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars .icon { width: 16px; height: 16px; fill: var(--gold); }
.review blockquote { margin: 14px 0 12px; font-size: 1rem; }
.review figcaption { color: var(--muted); font-size: .88rem; font-weight: 700; }

/* Horario */
.schedule { display: grid; gap: 36px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-closed td { color: var(--red); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--cream); font-weight: 700; }
.today { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: .7rem; font-weight: 700; vertical-align: middle; }
.location {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.location-body { display: grid; gap: 14px; justify-items: start; padding: 22px 24px 24px; }
.location h3 { display: flex; align-items: center; gap: 8px; }
.location h3 .icon { color: var(--gold); }
.address { color: var(--muted); }
.location-info { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.location-info li { display: flex; align-items: center; gap: 8px; }
.location-info .icon { width: 16px; height: 16px; color: var(--gold); }
.location .note { margin-top: 0; }

/* Mini mapa ilustrado (sin servicios externos) */
.map {
  position: relative;
  height: 150px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.map-road { position: absolute; background: #3A342A; }
.map-road-h { left: 0; right: 0; top: 58%; height: 14px; }
.map-road-v { top: 0; bottom: 0; left: 38%; width: 12px; }
.map-block { position: absolute; border-radius: 4px; background: #2B2720; }
.b1 { left: 6%; top: 14%; width: 26%; height: 32%; }
.b2 { left: 46%; top: 12%; width: 20%; height: 34%; }
.b3 { left: 72%; top: 18%; width: 22%; height: 28%; }
.b4 { left: 48%; top: 74%; width: 30%; height: 18%; }
.map-pin {
  position: absolute; left: 41%; top: 56%;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
  animation: drop .8s var(--ease) both;
}
.map-pin .icon { width: 18px; height: 18px; color: var(--on-gold); transform: rotate(45deg); }
.map-pin::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: inherit; border: 2px solid var(--gold);
  opacity: 0; animation: ring 2.4s ease-out infinite 1s;
}
@keyframes drop { from { transform: translate(-50%, -160%) rotate(-45deg); opacity: 0; } }
@keyframes ring { from { opacity: .6; transform: scale(.8); } to { opacity: 0; transform: scale(1.6); } }

/* Reservas */
.booking { max-width: 760px; }
.form {
  display: grid; gap: 16px;
  padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
/* align-content: start evita que un campo se estire para igualar la fila */
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: .88rem; font-weight: 700; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s;
}
.field select:disabled { opacity: .55; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--red); }
.error { min-height: 1em; font-size: .8rem; color: #E0705F; }
.summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 10px;
  background: rgba(201, 164, 92, .08); border: 1px dashed rgba(201, 164, 92, .4);
}
.summary span { color: var(--muted); font-size: .9rem; }
.summary strong { color: var(--gold); }

/* Modal */
.modal {
  width: min(92vw, 420px);
  padding: 28px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); color: var(--cream); text-align: center;
}
.modal::backdrop { background: rgba(0, 0, 0, .7); }
.modal-icon {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 14px;
  border-radius: 50%; background: var(--gold); color: var(--on-gold);
}
.modal h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; }
.modal p { margin-top: 10px; color: var(--muted); }
.modal form { margin-top: 22px; }

/* Footer */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 10px; justify-items: center; text-align: center; color: var(--muted); font-size: .88rem; }
.footer a { color: var(--gold); text-decoration: underline; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal .7s var(--ease) both; }
@keyframes reveal {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .services, .team, .reviews { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .form { grid-template-columns: repeat(2, 1fr); padding: 32px; }
  .summary, .form > .btn { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav {
    position: static; display: flex; align-items: center; gap: 6px; padding: 0;
    background: none; border: 0; opacity: 1; visibility: visible; transform: none;
  }
  .nav .btn { margin: 0 0 0 10px; }
  .hero { padding: 88px 0 110px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
  .hero-art { height: 440px; }
  .services, .team, .reviews { grid-template-columns: repeat(3, 1fr); }
  .schedule { grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: stretch; }
  .section { padding: 110px 0; }
}

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