/* Navaja Barbería · demo de barbería */

/* Fuentes alojadas en el sitio (subconjunto latino, variables) */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/oswald-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --bg: #121110;
  --surface: #1C1A18;
  --surface-2: #26231F;
  --line: #36312B;
  --text: #F3ECE2;
  --muted: #B8AD9E;
  --gold: #D9A55B;
  --gold-dark: #C18F45;
  --on-gold: #1A1208;
  --red: #C2362B;
  --wa: #25D366;
  --radius: 16px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; line-height: 1.08; letter-spacing: .01em; text-transform: uppercase; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }

.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 8px var(--gutter); background: #000; color: #CFC5B8; font-size: .82rem; text-align: center; }
.demo-bar p { margin: 0; }
.demo-bar strong { color: #fff; }
.demo-bar a { color: var(--gold); font-weight: 700; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.2rem; border: 1.5px solid transparent; border-radius: 10px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { border-color: rgba(243, 236, 226, .35); color: var(--text); background: rgba(0, 0, 0, .15); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(18, 17, 16, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 10px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold); }
.logo-mark .icon { width: 20px; height: 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--head); font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.logo-text small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.menu-btn .i-close { display: none; }
.header.is-open .menu-btn .i-open { display: none; }
.header.is-open .menu-btn .i-close { display: block; }
.nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
.nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.nav .nav-cta { margin-top: 12px; border: 0; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: none; border: 0; opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .5rem .8rem; border: 0; border-radius: 8px; color: var(--muted); }
  .nav a:hover { color: var(--text); }
  .nav .nav-cta { margin: 0 0 0 8px; color: var(--on-gold); }
}

/* Hero */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(84vh, 720px); padding: 120px 0 48px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 17, 16, .25) 0%, rgba(18, 17, 16, .6) 45%, rgba(18, 17, 16, .96) 100%); }
.hero h1 { max-width: 13ch; margin-bottom: 1rem; font-size: clamp(2.6rem, 1.6rem + 5vw, 5.2rem); font-weight: 700; }
.hero h1 span { color: var(--gold); }
.hero .lead { max-width: 34em; margin: 0 0 1.75rem; font-size: clamp(1.02rem, 1rem + .3vw, 1.2rem); color: #E4DACB; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 459px) { .hero-ctas .btn { flex: 1 1 100%; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: #D8CDBE; font-size: .92rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .35rem; }
.hero-facts strong { font-family: var(--head); font-size: 1.25rem; color: var(--text); }
.hero-facts .icon { width: 1em; height: 1em; color: var(--gold); }

.status { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); font-size: .88rem; font-weight: 600; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9CA3AF; }
.status.is-open .status-dot { background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.status.is-closed .status-dot { background: #F87171; }

/* Secciones */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p:last-child { margin: .75rem 0 0; }
.section-head h2, .location h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.eyebrow { margin: 0 0 .6rem; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

/* Servicios */
.services { display: grid; gap: 12px; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(2, 1fr); gap: 14px 28px; } }
.service { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.service h3 { font-size: 1.2rem; letter-spacing: .03em; }
.service p { grid-column: 1; margin: 0; color: var(--muted); font-size: .92rem; }
.service-price { grid-row: 1; grid-column: 2; font-family: var(--head); font-size: 1.3rem; font-weight: 600; color: var(--gold); }
.service-book { grid-column: 2; justify-self: end; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--text); font-size: .82rem; font-weight: 700; text-decoration: none; }
.service-book:hover { border-color: var(--gold); color: var(--gold); }

/* Reserva */
.booking { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .booking { grid-template-columns: 1fr 340px; gap: 28px; } }
.booking-form { display: grid; gap: 14px; min-width: 0; }
.step { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step legend { display: flex; align-items: center; gap: .6rem; float: left; width: 100%; margin-bottom: 14px; padding: 0; font-family: var(--head); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; }
.step legend + * { clear: both; }
.step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-family: var(--body); font-size: .82rem; font-weight: 800; }

.select { position: relative; }
.select select { width: 100%; padding: .8rem 2.5rem .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); appearance: none; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.barber-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .barber-pick { grid-template-columns: repeat(4, 1fr); } }
.barber-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: center; transition: border-color .15s; }
.barber-opt:hover { border-color: var(--muted); }
.barber-opt[aria-checked="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.barber-opt img, .barber-opt .any { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.barber-opt .any { display: grid; place-items: center; background: var(--surface-2); color: var(--gold); }
.barber-opt strong { font-size: .92rem; }
.barber-opt small { color: var(--muted); font-size: .75rem; line-height: 1.3; }

.days-wrap { display: flex; align-items: center; gap: 8px; }
.days-nav { display: none; }
@media (min-width: 700px) { .days-nav { display: grid; } }
.days { display: flex; flex: 1; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.days::-webkit-scrollbar { display: none; }
.day { display: flex; flex: 0 0 68px; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; scroll-snap-align: start; }
.day small { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day strong { font-family: var(--head); font-size: 1.4rem; line-height: 1.1; }
.day span { font-size: .72rem; color: var(--muted); }
.day:hover:not(:disabled) { border-color: var(--muted); }
.day[aria-checked="true"] { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.day[aria-checked="true"] small, .day[aria-checked="true"] span { color: var(--on-gold); }
.day:disabled { opacity: .4; cursor: not-allowed; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { padding: .6rem .3rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .9rem; font-weight: 600; cursor: pointer; }
.slot:hover:not(:disabled) { border-color: var(--muted); }
.slot[aria-checked="true"] { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.slot:disabled { color: #6F665B; text-decoration: line-through; cursor: not-allowed; }
.slots-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }

.fields { display: grid; gap: 12px; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.field input { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 400; }
.field input::placeholder { color: #8C8273; }
.field input:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: #F87171; }

.summary { position: sticky; top: 88px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.summary h3 { margin-bottom: 14px; font-size: 1.3rem; }
.summary dl { display: grid; gap: 10px; margin: 0 0 18px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 1.05rem; }
.summary .total dd { font-family: var(--head); font-size: 1.35rem; color: var(--gold); }
.summary-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.form-error { margin: 0 0 12px; padding: .6rem .8rem; border-radius: 10px; background: rgba(248, 113, 113, .12); color: #FCA5A5; font-size: .88rem; }

/* Club */
.plans { display: grid; gap: 16px; max-width: 860px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan-featured { border-color: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 10%, var(--surface)), var(--surface)); }
.plan h3 { font-size: 1.4rem; }
.plan-badge { position: absolute; top: -13px; left: 22px; display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .25rem .7rem; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: .75rem; font-weight: 800; }
.plan-badge .icon { width: 1em; height: 1em; }
.plan-price { margin: 0; }
.plan-price strong { font-family: var(--head); font-size: 2.2rem; font-weight: 600; }
.plan-price span { color: var(--muted); }
.plan ul { display: grid; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; flex: 1; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; }
.plan li .icon { margin-top: .2em; color: var(--gold); }

/* Equipo */
.team { display: grid; gap: 16px; }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.member img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.25); }
.member div { padding: 16px 18px 20px; }
.member h3 { font-size: 1.3rem; }
.member p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* Opiniones */
.reviews { display: grid; gap: 16px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.stars { margin: 0 0 .5rem; color: var(--gold); letter-spacing: .1em; }
.review blockquote { margin: 0 0 .9rem; font-size: 1.02rem; }
.review figcaption { color: var(--muted); font-size: .88rem; }

/* Ubicación */
.location { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .location { grid-template-columns: 1fr 1fr; gap: 48px; } }
.location .muted { margin: .75rem 0 1.25rem; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hours { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hours h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: 12px; font-size: 1.2rem; }
.hours h3 .icon { color: var(--gold); }
.hours table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); font-weight: 700; }

/* Footer */
.footer { padding: 28px 0 96px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--gold); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .6); }
.wa-float .icon { width: 28px; height: 28px; }

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