/* ═══════════════════════════════════════════════
   BARBERÍA THE WEST — Morón
   Editorial dark · negro profundo + cromo + rojo/azul barber
   ═══════════════════════════════════════════════ */

:root {
  --ink: #0a0a0c;            /* fondo principal */
  --ink-2: #101014;          /* superficie */
  --ink-3: #17171d;          /* superficie elevada */
  --bone: #ece9e2;           /* texto principal */
  --bone-dim: #a9a59c;       /* texto secundario */
  --red: #e63b47;            /* rojo barber */
  --blue: #5a86d4;           /* azul barber */
  --chrome: #c9ccd4;         /* plata / cromo */
  --wsp: #22c05c;
  --line: rgba(236, 233, 226, .1);
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ── Reveal base (JS anima; CSS garantiza visibilidad) ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.9,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
/* Sin JS, todo visible */
.no-js .reveal { opacity: 1; transform: none; }

/* ═══════════ BOTONES ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: .8em 1.5em; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn--wsp {
  background: var(--wsp); color: #06130a;
  box-shadow: 0 8px 28px rgba(34, 192, 92, .28);
}
.btn--wsp:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34, 192, 92, .42); }
.btn--big { font-size: 1.05rem; padding: .95em 1.8em; }
.btn--ghost {
  border-color: var(--line); color: var(--bone);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--chrome); transform: translateY(-2px); }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(rgba(10,10,12,.92), rgba(10,10,12,.55) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__brand { display: flex; align-items: center; gap: .8rem; }
.nav__logo {
  width: clamp(64px, 7vw, 96px); height: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.6));
  transition: transform .4s ease;
}
.nav__brand:hover .nav__logo { transform: rotate(-6deg) scale(1.04); }
.nav__name {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .08em;
  color: var(--bone);
}
.nav__links { display: flex; gap: 2rem; font-weight: 600; font-size: .92rem; color: var(--bone-dim); }
.nav__links a { position: relative; transition: color .25s ease; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transition: width .3s ease;
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { width: 100%; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__name { display: none; }
  .nav__cta { font-size: .85rem; padding: .7em 1.2em; }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(7rem, 14vh, 10rem) clamp(1.2rem, 5vw, 4rem) 4rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
  /* niebla radial sutil */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 75% 40%, rgba(90, 134, 212, .10), transparent 65%),
    radial-gradient(50% 45% at 20% 75%, rgba(230, 59, 71, .07), transparent 60%);
}
.hero__ghost {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(12rem, 34vw, 30rem);
  line-height: 1; letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(236, 233, 226, .07);
  user-select: none;
}
.hero__pole {
  position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 14px,
    #f2f0ea 14px 28px,
    var(--blue) 28px 42px,
    #f2f0ea 42px 56px
  );
  background-size: 100% 160px;
  animation: pole-slide 4s linear infinite;
  opacity: .85;
}
@keyframes pole-slide { to { background-position: 0 160px; } }

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: clamp(2rem, 6vw, 5rem);
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.hero__kicker {
  font-size: .85rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone-dim); margin-bottom: 1.2rem;
}
.hero__kicker::before {
  content: ""; display: inline-block; width: 34px; height: 2px; margin-right: .8em;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.6rem, 13vw, 10.5rem);
  line-height: .88; letter-spacing: .015em;
  text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; }
.hero__line--accent > span {
  background: linear-gradient(100deg, var(--bone) 20%, var(--chrome) 45%, #8f96a3 65%, var(--bone) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  max-width: 42ch; color: var(--bone-dim); font-size: 1.06rem; margin-bottom: 2rem;
}
.hero__actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hero__phone { font-weight: 700; letter-spacing: .04em; color: var(--chrome); font-size: .98rem; }
.hero__addr { color: var(--bone-dim); font-size: .92rem; letter-spacing: .06em; }

/* ── Figura de Leo (PNG recortado, fundida al fondo) ── */
.hero__figure {
  position: relative; justify-self: center;
  width: min(309px, 62vw);
  transform-style: preserve-3d; perspective: 900px;
}
.hero__photo-wrap {
  position: relative; z-index: 1;
}
.hero__photo-wrap::before {
  /* resplandor suave detrás, funde la silueta con el negro */
  content: ""; position: absolute; inset: -18% -30%;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(90, 134, 212, .16), transparent 70%),
    radial-gradient(45% 40% at 42% 65%, rgba(230, 59, 71, .10), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.hero__photo {
  position: relative;
  width: 100%; height: auto;
  filter: contrast(1.06) saturate(1.04)
          drop-shadow(0 24px 50px rgba(0, 0, 0, .55));
  /* fundido hacia el fondo en la base y laterales inferiores */
  -webkit-mask-image: linear-gradient(#000 62%, transparent 97%);
          mask-image: linear-gradient(#000 62%, transparent 97%);
}
.hero__tag {
  position: absolute; z-index: 2; left: 50%; bottom: .2rem; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--ink-3); border: 1px solid var(--line);
  color: var(--bone); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .55em 1.2em; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.hero__scrollhint {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: 22px; height: 36px; border: 2px solid rgba(236,233,226,.25); border-radius: 12px;
}
.hero__scrollhint span {
  position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--bone-dim);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translateY(10px); opacity: .2; } }

@media (max-width: 900px) {
  .hero { padding-top: 7.5rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__kicker::before { display: none; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__figure { margin-top: 1.5rem; width: min(244px, 58vw); }
  .hero__ghost { right: 50%; transform: translate(50%, -50%); font-size: 42vw; }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding: 1rem 0;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bone-dim);
  animation: marquee 22s linear infinite;
  will-change: transform;
}
.marquee__track i { font-style: normal; color: var(--red); font-size: 1.1rem; }
.marquee__track span:nth-child(4n+3) { color: var(--chrome); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ SECCIONES ═══════════ */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.2rem, 5vw, 4rem); }
.section__head { max-width: 1100px; margin: 0 auto 3rem; }
.section__kicker {
  font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: .6rem;
}
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Servicios ── */
.servicios__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem;
}
.svc {
  position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.8rem 1.5rem 1.6rem;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.svc::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(var(--red), var(--blue));
  opacity: 0; transition: opacity .35s ease;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(201,204,212,.3); background: var(--ink-3); }
.svc:hover::before { opacity: 1; }

/* Tarjetas con foto de fondo + velo oscuro para legibilidad */
.svc--img > * { position: relative; z-index: 2; }
.svc--img::before { z-index: 3; }
.svc--img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center 30%;
  opacity: .55;
  transition: opacity .4s ease, transform .7s cubic-bezier(.22,.9,.3,1);
}
.svc--img {
  /* velo: oscurece la foto para que el texto respire */
  background:
    linear-gradient(rgba(10, 10, 12, .55) 0%, rgba(10, 10, 12, .8) 55%, rgba(10, 10, 12, .92) 100%),
    var(--ink-2);
}
.svc--img h3, .svc--img p { text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.svc--img p { color: #c4c0b7; }
.svc--img .svc__num { -webkit-text-stroke-color: rgba(236,233,226,.45); }
.svc--img:hover::after { opacity: .68; transform: scale(1.06); }
.svc--fade::after { background-image: linear-gradient(rgba(10,10,12,.15) 30%, rgba(10,10,12,.72)), url("assets/img/corte-fade.jpg"); }
.svc--color::after { background-image: linear-gradient(rgba(10,10,12,.15) 30%, rgba(10,10,12,.72)), url("assets/img/color-platinado.jpg"); }
.svc--freestyle::after { background-image: linear-gradient(rgba(10,10,12,.15) 30%, rgba(10,10,12,.72)), url("assets/img/disenos-freestyle.jpg"); }
.svc--barba::after { background-image: linear-gradient(rgba(10,10,12,.15) 30%, rgba(10,10,12,.72)), url("assets/img/barba-perfilado.jpg"); }
.svc__num {
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(236,233,226,.25);
  display: block; margin-bottom: 1rem;
}
.svc h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .5rem; letter-spacing: .01em; }
.svc p { color: var(--bone-dim); font-size: .93rem; }
.servicios__note { max-width: 1100px; margin: 2.2rem auto 0; color: var(--bone-dim); font-size: .95rem; }
.servicios__note a { color: var(--wsp); font-weight: 700; border-bottom: 1px solid rgba(34,192,92,.4); }

/* ── Galería: carrusel continuo ── */
.galeria { background: var(--ink-2); border-block: 1px solid var(--line); }
.galeria__carousel {
  overflow: hidden;
  margin-inline: calc(-1 * clamp(1.2rem, 5vw, 4rem)); /* sangra a los bordes */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.galeria__track {
  display: flex; gap: 1.1rem; width: max-content;
  padding-block: .4rem;
  animation: carousel 36s linear infinite;
  will-change: transform;
}
.galeria__carousel:hover .galeria__track { animation-play-state: paused; }
@keyframes carousel { to { transform: translateX(calc(-50% - .55rem)); } }
.shot {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  width: clamp(220px, 24vw, 300px); flex-shrink: 0;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.9,.3,1), filter .6s ease;
  filter: saturate(.95);
}
.shot:hover img { transform: scale(1.06); filter: saturate(1.1); }
.shot figcaption {
  position: absolute; left: .9rem; bottom: .9rem; z-index: 2;
  background: rgba(10,10,12,.78); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .45em 1em;
}
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 60%, rgba(10,10,12,.55));
  opacity: .8; transition: opacity .4s ease;
}
.shot:hover::after { opacity: .4; }

/* ── Turnera ── */
.turnos__hours { color: var(--bone-dim); margin-top: .7rem; letter-spacing: .04em; }
.turnera {
  max-width: 760px; margin: 0 auto;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.turnera__label {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  font-weight: 800; letter-spacing: .02em; margin-bottom: 1.1rem;
}
.turnera__label b {
  display: grid; place-items: center; width: 1.7em; height: 1.7em;
  border-radius: 50%; font-family: var(--font-display); font-weight: 400;
  background: linear-gradient(135deg, var(--red), var(--blue)); color: #fff; font-size: .95em;
}
.turnera__back {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--bone-dim); font: 600 .85rem var(--font-body);
}
.turnera__back:hover { color: var(--bone); }
.turnera__chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.tchip {
  cursor: pointer; font: 700 .95rem var(--font-body);
  display: inline-flex; flex-direction: column; align-items: center; gap: .1em;
  background: var(--ink-3); color: var(--bone);
  border: 1px solid var(--line); border-radius: 14px;
  padding: .7em 1.1em;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.tchip small { font-weight: 600; font-size: .74rem; color: var(--bone-dim); }
.tchip:hover { border-color: var(--chrome); transform: translateY(-2px); }
.tchip.is-sel { border-color: var(--wsp); background: rgba(34, 192, 92, .12); }
.tchip--hora { min-width: 4.6em; align-items: center; }
.turnera__estado { color: var(--bone-dim); font-size: .92rem; margin-bottom: 1rem; }
.turnera__resumen {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px;
  padding: .8em 1.1em; margin-bottom: 1.1rem; font-size: .98rem;
}
.turnera__form { display: grid; gap: .8rem; max-width: 420px; }
.turnera__form input {
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--line); border-radius: 12px;
  font: 600 1rem var(--font-body);
  padding: .85em 1.1em; outline: none;
  transition: border-color .2s ease;
}
.turnera__form input::placeholder { color: rgba(169, 165, 156, .6); }
.turnera__form input:focus { border-color: var(--wsp); }
.turnera__confirmar { justify-content: center; }
.turnera__confirmar:disabled { opacity: .6; cursor: wait; transform: none; }
.turnera__error { color: #ff8a93; font-size: .92rem; font-weight: 600; }
.turnera__done { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.turnera__done[hidden], .turnera__step[hidden], .turnera__estado[hidden], .turnera__error[hidden] { display: none; }
.turnera__done-icon { font-size: 2.6rem; line-height: 1; }
.turnera__done h3 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 2rem; letter-spacing: .03em;
}
.turnera__done p { color: var(--bone-dim); max-width: 46ch; }

/* ── Ubicación ── */
.ubicacion { display: grid; place-items: center; }
.ubicacion__card {
  position: relative; text-align: center; overflow: hidden;
  max-width: 640px; width: 100%;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(90,134,212,.10), transparent 55%),
    var(--ink-2);
  border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
}
.ubicacion__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #f2f0ea 12px 24px, var(--blue) 24px 36px, #f2f0ea 36px 48px);
  opacity: .8;
}
.ubicacion__logo { width: clamp(110px, 15vw, 150px); height: auto; margin: 0 auto 1.4rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.ubicacion__card h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; margin-bottom: .8rem;
}
.ubicacion__addr { color: var(--bone-dim); font-size: 1.05rem; margin-bottom: 1.8rem; }
.ubicacion__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ubicacion__phone { color: var(--chrome); font-weight: 700; letter-spacing: .05em; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.6rem clamp(1.2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--bone-dim); font-size: .88rem;
}
.footer a { font-weight: 700; color: var(--bone); }
.footer a:hover { color: var(--chrome); }

/* ═══════════ WHATSAPP FLOTANTE ═══════════ */
.fab-wsp {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wsp); color: #06130a;
  box-shadow: 0 10px 30px rgba(34,192,92,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fab-wsp:hover { transform: scale(1.08); box-shadow: 0 14px 38px rgba(34,192,92,.55); }
