/* ---------- Base común (se usa igual en todas las páginas) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 0; padding: 10px 14px; z-index: 100; background: #000; color: #fff; }
.saltar:focus { left: 8px; top: 8px; }
.form__error:empty { display: none; }
[hidden] { display: none !important; }

/* Botón flotante de WhatsApp con menú */
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 10px; transition: transform .3s ease, opacity .3s ease; }
.wa.oculto { transform: translateY(110px); opacity: 0; pointer-events: none; }
.wa__boton { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #1F8A4C; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .2s ease; }
.wa__boton:hover { transform: scale(1.06); }
.wa__boton:active { transform: scale(.95); }
.wa__boton .ico { width: 30px; height: 30px; }
.wa__menu { display: grid; gap: 6px; min-width: 230px; padding: 8px; border-radius: 16px; background: #fff; color: #1d1d1f; box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transform-origin: bottom right; transform: scale(.85) translateY(10px); opacity: 0; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s .22s; }
.wa.abierto .wa__menu { transform: none; opacity: 1; visibility: visible; transition: transform .22s ease, opacity .22s ease; }
.wa__menu p { font-size: .8125rem; color: #555; padding: 6px 10px 2px; }
.wa__menu a { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; background: #F1F4F2; }
.wa__menu a:hover, .wa__menu a:focus-visible { background: #DCF1E3; }

/* Movimiento al hacer scroll: solo si la persona no pidió reducirlo */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].visto { opacity: 1; transform: none; }
  .js [data-cascada] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-cascada].visto > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Barbería Houston ---------- */
:root {
  --negro: #151515;
  --grafito: #2A2A2A;
  --papel: #EEEEEC;
  --gris-claro: #D6D6D3;
  --gris: #626262;
  --blanco: #FFFFFF;
  --display: "Unbounded", "Arial Black", sans-serif;
  --texto: "DM Sans", system-ui, sans-serif;
  --max: 1160px;
  --g: 20px;
  --ruido: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background: var(--papel) var(--ruido); color: var(--negro); font: 400 1.0625rem/1.6 var(--texto); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--negro); outline-offset: 3px; }

.hb { display: inline-block; width: 30px; height: 24px; background: currentColor; -webkit-mask: url(img/hb.png) center / contain no-repeat; mask: url(img/hb.png) center / contain no-repeat; }
.cabecera { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--g); max-width: var(--max); margin: 0 auto; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .14em; }
.cabecera__ig { display: grid; place-items: center; width: 44px; height: 44px; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; border: 2px solid transparent;
  font: 700 .95rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: scale(.98); }
.boton--negro { background: var(--negro); color: #fff; }
.boton--negro:hover { background: var(--grafito); }
.boton--blanco { background: #fff; color: var(--negro); }
.boton--linea { border-color: var(--negro); color: var(--negro); }
.boton--linea:hover { background: var(--negro); color: #fff; }
.enlace { font-weight: 700; text-underline-offset: 5px; }
.titulo { font-size: clamp(2.4rem, 11vw, 4.6rem); }

/* Hero con el monograma gigante de fondo */
.hero { position: relative; overflow: hidden; max-width: var(--max); margin: 0 auto; padding: 18px var(--g) 48px; display: grid; gap: 26px; }
.hero__marca { position: absolute; z-index: -1; right: -18%; top: 10px; width: 110%; aspect-ratio: 1232 / 960; background: var(--gris-claro); -webkit-mask: url(img/hb.png) center / contain no-repeat; mask: url(img/hb.png) center / contain no-repeat; }
.hero__texto { display: grid; gap: 16px; justify-items: start; }
.hero__nombre { font: 700 .85rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.hero__titulo { font-size: clamp(2.3rem, 10.5vw, 4.4rem); line-height: .98; }
.hero__sub { color: var(--grafito); max-width: 30em; }
.hero__texto .boton { width: 100%; }
.hero__nota { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: .95rem; color: var(--gris); }
.hero__num { font: 700 1.5rem/1 var(--display); color: var(--negro); }
.hero__foto { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; filter: grayscale(1) contrast(1.05); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .hero__marca { animation: marca 1.2s cubic-bezier(.2,.7,.2,1) both; }
  .hero__nombre { animation: subir .6s .1s ease both; }
  .hero__titulo { animation: subir .7s .2s cubic-bezier(.2,.7,.2,1) both; }
  .hero__sub, .hero__nota { animation: subir .6s .35s ease both; }
  .hero__texto .boton { animation: subir .6s .5s cubic-bezier(.2,.7,.2,1) both; }
  .hero__foto { animation: cortina .9s .3s cubic-bezier(.7,0,.2,1) both; }
  @keyframes marca { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }
  @keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes cortina { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
}

/* Franja de cejas que corre */
.cejas { background: var(--negro); color: #fff; overflow: hidden; padding: 16px 0; }
.cejas__pista { display: flex; gap: 48px; width: max-content; }
.cejas__pista span { font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.cejas__pista span::after { content: ""; width: 26px; height: 20px; background: currentColor; -webkit-mask: url(img/hb.png) center / contain no-repeat; mask: url(img/hb.png) center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .cejas__pista { animation: correr 26s linear infinite; }
  @keyframes correr { to { transform: translateX(-50%); } }
}

/* Servicios */
.servicios { max-width: var(--max); margin: 0 auto; padding: 64px var(--g) 56px; }
.servicios .titulo { margin-bottom: 18px; }
.servicios__lista { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--negro); }
.servicio { display: grid; grid-template-columns: 1fr; gap: 12px; justify-items: start; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--gris-claro); }
.servicio__nombre { font-size: clamp(1.8rem, 8vw, 2.6rem); margin-bottom: 6px; }
.servicio__texto p { color: var(--gris); max-width: 30em; }
.consultar { white-space: nowrap; font: 700 .78rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--negro); border: 2px solid var(--negro); padding: 12px 14px; transition: background-color .2s ease, color .2s ease; }
.consultar:hover { background: var(--negro); color: #fff; }
.servicios__cejas { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }

/* Frases */
.frase { background: var(--negro); color: #fff; padding: 64px var(--g); }
.frase blockquote, .frase-2 { margin: 0 auto; max-width: 900px; }
.frase p { font: 500 clamp(1.5rem, 6.4vw, 2.6rem)/1.2 var(--display); text-transform: none; letter-spacing: -.01em; }
.frase-2 { margin-top: 40px; padding-left: 18px; border-left: 4px solid var(--negro); }
.frase-2 p { font: 500 clamp(1.25rem, 5vw, 1.9rem)/1.25 var(--display); }

/* Trabajos */
.trabajos { max-width: var(--max); margin: 0 auto; padding: 64px var(--g); }
.trabajos__cab { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.grilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grilla li { aspect-ratio: 3 / 4; overflow: hidden; background: var(--gris-claro); }
.grilla img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s ease, transform .6s ease; }
.grilla li:hover img, .grilla li:focus-within img { filter: none; transform: scale(1.04); }
@media (hover: none) { .grilla img { filter: none; } }

/* Membresía y pagos */
.membresia { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 64px; display: grid; gap: 32px; }
.tarjeta-m { position: relative; overflow: hidden; background: var(--negro); color: #fff; padding: 30px 22px; display: grid; gap: 14px; justify-items: start; aspect-ratio: auto; border-radius: 16px; }
.tarjeta-m__hb { position: absolute; right: -40px; bottom: -30px; width: 220px; height: 172px; background: var(--grafito); -webkit-mask: url(img/hb.png) center / contain no-repeat; mask: url(img/hb.png) center / contain no-repeat; transition: transform .6s ease; }
.tarjeta-m:hover .tarjeta-m__hb { transform: rotate(-6deg) scale(1.05); }
.tarjeta-m__titulo { font-size: clamp(1.8rem, 8vw, 2.6rem); position: relative; }
.tarjeta-m p, .tarjeta-m .boton { position: relative; }
.tarjeta-m p { color: #CFCFCF; max-width: 26em; }
.pagos__titulo { font-size: 1.4rem; margin-bottom: 12px; }
.pagos__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pagos__lista li { padding: 10px 16px; border: 2px solid var(--negro); font-weight: 700; background: var(--blanco); }

/* Visita */
.visita { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 72px; display: grid; gap: 24px; }
.visita__info { display: grid; gap: 16px; align-content: start; }
address { font-style: normal; font-size: 1.1rem; font-weight: 500; }
.horarios { width: 100%; border-collapse: collapse; }
.horarios th, .horarios td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--gris-claro); font-weight: 500; vertical-align: top; }
.horarios td { text-align: right; }
.horarios .hoy th, .horarios .hoy td { font-weight: 700; }
.hoy__marca { font: 700 .62rem/1 var(--display); text-transform: uppercase; background: var(--negro); color: #fff; padding: 3px 7px; margin-left: 4px; vertical-align: 3px; }
.abierto { color: var(--gris); font-size: .95rem; }
.abierto--si { color: #1F6B3E; font-weight: 700; }
.visita__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visita__acciones .boton { padding: 12px 8px; font-size: .82rem; }
.visita__mapa { aspect-ratio: 4 / 3; background: var(--gris-claro); }
.visita__mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1); }

.pie { background: var(--negro); color: #BDBDBD; text-align: center; padding: 48px var(--g) 110px; display: grid; gap: 4px; justify-items: center; }
.hb--grande { width: 64px; height: 50px; color: #fff; margin-bottom: 10px; }
.pie__marca { font: 700 1rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.pie a { color: #fff; text-underline-offset: 4px; }
.pie__brito { margin-top: 14px; font-size: .85rem; }

.wa__boton { background: var(--negro); }
.wa__menu { border-radius: 0; }
.wa__menu a { border-radius: 0; background: var(--papel); }
.wa__menu a:hover, .wa__menu a:focus-visible { background: var(--gris-claro); }

@media (min-width: 820px) {
  :root { --g: 40px; }
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; padding-top: 32px; padding-bottom: 72px; }
  .hero__marca { width: 70%; right: -6%; top: 40px; }
  .hero__texto .boton { width: auto; }
  .servicio { grid-template-columns: 1fr 1.2fr auto; gap: 32px; justify-items: stretch; }
  .servicio__nombre { margin: 0; }
  .servicio__texto { display: contents; }
  .grilla { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .membresia { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 56px; }
  .visita { grid-template-columns: 1fr 1.3fr; }
  .visita__mapa { aspect-ratio: auto; min-height: 400px; }
  .pie { padding-bottom: 48px; }
}
