/* ---------- 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; }
}

/* ---------- Moustache Barber Club ---------- */
:root {
  --negro: #0F0F0F;
  --carbon: #1C1C1C;
  --hueso: #EEE9DF;
  --gris: #A8A8A8;
  --gris-osc: #4A4A4A;
  --azul: #4A84FF;
  --western: "Rye", "Rockwell", serif;
  --texto: "Work Sans", system-ui, sans-serif;
  --max: 1140px;
  --g: 20px;
  --pared: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --papel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' 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 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background: var(--negro) var(--pared); color: #F2F2F2; font: 400 1.0625rem/1.6 var(--texto); }
h1, h2, h3 { font-family: var(--western); font-weight: 400; line-height: 1; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }

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

/* Hero */
.hero { position: relative; min-height: min(100svh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.42); z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pared), linear-gradient(180deg, rgba(15,15,15,.3), rgba(15,15,15,.92) 75%); }
.hero__cont { padding: 90px var(--g) 46px; max-width: var(--max); margin: 0 auto; width: 100%; display: grid; gap: 14px; justify-items: center; text-align: center; }
.bigote { width: min(70vw, 340px); height: auto; color: #fff; }
.hero__nombre { display: grid; gap: 6px; }
.hero__linea { font-size: clamp(2.6rem, 13.5vw, 7rem); letter-spacing: .02em; }
.hero__chico { font-size: clamp(1.2rem, 5.6vw, 2rem); letter-spacing: .3em; margin-right: -.3em; }
.hero__lema { font: 700 .95rem/1.2 var(--texto); text-transform: uppercase; letter-spacing: .28em; color: var(--azul); }
.hero__sub { color: #D0D0D0; max-width: 30em; }
.hero__accion { display: grid; gap: 10px; width: 100%; max-width: 380px; margin-top: 6px; }
.hero__nota { color: var(--gris); font-size: .95rem; display: flex; gap: 8px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.hero__num { font: 400 1.6rem/1 var(--western); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .bigote { animation: rizar 1s cubic-bezier(.3,1.5,.5,1) both; transform-origin: 50% 40%; }
  .hero__linea { animation: sello .7s .25s cubic-bezier(.2,.8,.2,1) both; }
  .hero__chico, .hero__lema { animation: subir .6s .45s ease both; }
  .hero__sub, .hero__nota { animation: subir .6s .55s ease both; }
  .hero__accion { animation: subir .6s .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero__fondo { animation: luz 1.4s ease both; }
  @keyframes rizar { from { opacity: 0; transform: scaleX(.1) rotate(-8deg); } to { opacity: 1; transform: none; } }
  @keyframes sello { from { opacity: 0; transform: scale(1.25); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes luz { from { filter: grayscale(1) contrast(1.15) brightness(0); } }
}

/* La carta: papel gastado */
.carta { padding: 64px var(--g); }
.carta__papel { max-width: 620px; margin: 0 auto; background: var(--hueso) var(--papel); color: var(--negro); padding: 34px 24px 28px; text-align: center; position: relative;
  box-shadow: 0 30px 50px -30px rgba(0,0,0,.9); transform: rotate(-1deg);
  -webkit-mask: radial-gradient(circle 7px at 50% 0, #0000 98%, #000) top / 22px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) bottom / 22px 51% repeat-x;
  mask: radial-gradient(circle 7px at 50% 0, #0000 98%, #000) top / 22px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) bottom / 22px 51% repeat-x; }
.carta__titulo { font-size: clamp(2.6rem, 12vw, 3.8rem); }
.carta__bigote { width: 90px; height: 32px; margin: 10px auto 18px; display: block; color: var(--negro); }
.carta__lista { list-style: none; margin: 0; padding: 0; text-align: left; }
.plato { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed rgba(15,15,15,.3); }
.plato__nombre { font: 400 1.25rem/1.1 var(--western); }
.plato__puntos { flex: 1; border-bottom: 2px dotted rgba(15,15,15,.45); transform: translateY(4px); min-width: 16px; }
.consultar { white-space: nowrap; font: 700 .78rem/1 var(--texto); text-transform: uppercase; letter-spacing: .08em; color: var(--negro); text-decoration: none; border: 2px solid var(--negro); padding: 9px 10px; transition: background-color .2s ease, color .2s ease; }
.consultar:hover { background: var(--negro); color: #fff; }

/* Instagram */
.insta { max-width: var(--max); margin: 0 auto; padding: 32px var(--g) 64px; }
.insta__cab { display: grid; gap: 8px; margin-bottom: 20px; }
.insta__cab p { color: #CFCFCF; }
.insta__links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.insta__grilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.insta__grilla li { aspect-ratio: 3 / 4; overflow: hidden; background: var(--carbon); }
.insta__grilla img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.1); transition: filter .5s ease, transform .6s ease; }
.insta__grilla li:hover img { filter: none; transform: scale(1.04); }
@media (hover: none) { .insta__grilla img { filter: grayscale(.3); } }

/* El club */
.club { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 64px; }
.club .titulo { margin-bottom: 18px; }
.club__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.club__fotos figure { margin: 0; aspect-ratio: 3 / 4.4; overflow: hidden; }
.club__fotos img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }

/* 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; }
.visita__ref { display: block; color: var(--gris); font-size: .95rem; }
.horarios { width: 100%; border-collapse: collapse; }
.horarios th, .horarios td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--gris-osc); font-weight: 400; vertical-align: top; }
.horarios td { text-align: right; }
.horarios .hoy th, .horarios .hoy td { color: #fff; font-weight: 700; }
.hoy__marca { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--azul); color: var(--negro); padding: 2px 7px; margin-left: 4px; vertical-align: 2px; font-weight: 700; }
.abierto { color: var(--gris); font-size: .95rem; }
.abierto--si { color: #7BE0A1; font-weight: 700; }
.visita__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visita__acciones .boton { padding: 12px 8px; font-size: .85rem; letter-spacing: .06em; }
.visita__mapa { aspect-ratio: 4 / 3; background: var(--carbon); }
.visita__mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(.92) contrast(.9); }

.pie { border-top: 1px solid var(--gris-osc); text-align: center; padding: 44px var(--g) 110px; display: grid; gap: 4px; justify-items: center; color: var(--gris); }
.pie__bigote { width: 80px; height: 28px; color: #fff; }
.pie__marca { font: 400 1.3rem var(--western); color: #fff; }
.pie a { color: #fff; text-underline-offset: 4px; }
.pie__brito { margin-top: 14px; font-size: .85rem; }

.wa__boton { background: #fff; color: var(--negro); }
.wa__menu { border-radius: 0; }
.wa__menu a { border-radius: 0; background: var(--hueso); }
.wa__menu a:hover, .wa__menu a:focus-visible { background: #DDD6C8; }

@media (min-width: 820px) {
  :root { --g: 40px; }
  .hero__cont { padding-bottom: 72px; }
  .hero__accion { grid-auto-flow: column; max-width: none; width: auto; }
  .carta__papel { padding: 44px 48px 36px; }
  .insta__grilla { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .club__fotos { grid-template-columns: 1.4fr 1fr; }
  .club__fotos figure:first-child { aspect-ratio: 4 / 3.2; }
  .club__fotos figure { aspect-ratio: auto; height: 520px; }
  .visita { grid-template-columns: 1fr 1.3fr; }
  .visita__mapa { aspect-ratio: auto; min-height: 400px; }
  .pie { padding-bottom: 48px; }
}
