/* =========================================================
   Albert Barber Shop — estilo "rótulo de barbería"
   Azul poste, rojo poste, blanco y piso de cuadros.
   ========================================================= */
:root {
  --navy: #0F2A5C;
  --navy-2: #0A1F47;
  --blue: #1F4FBF;
  --red: #D7263D;
  --red-dark: #A3172B;
  --ink: #0A1630;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --muted: #5B6478;
  --muted-light: #B9C3DC;

  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(92%, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; margin-top: 2.5rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Tipografía ---------- */
.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.05;
  color: var(--navy);
  text-shadow: 3px 3px 0 rgba(215, 38, 61, .9);
  margin-bottom: .6rem;
}
.title--light { color: var(--white); text-shadow: 3px 3px 0 var(--red); }
.sub { color: var(--muted); margin-bottom: 2.5rem; max-width: 60ch; }
.sub--light { color: var(--muted-light); }

/* ---------- Botones (sombra de rótulo) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 800; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  padding: .95rem 1.6rem;
  border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btn--ink { background: var(--navy); color: #fff; }
.btn--line { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 var(--red); }
.btn--line:hover { box-shadow: 6px 6px 0 var(--red); }
.btn--sm { padding: .55rem 1.1rem; font-size: .92rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--full { width: 100%; }

/* ---------- Barra de progreso ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 70;
  transform-origin: 0 50%; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--red) 0 18px, #fff 18px 26px, var(--blue) 26px 44px, #fff 44px 52px);
}

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: var(--navy); box-shadow: 0 4px 0 var(--red); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand__pole {
  width: 14px; height: 38px; border-radius: 7px; border: 2px solid #fff;
  background: repeating-linear-gradient(135deg, var(--red) 0 6px, #fff 6px 12px, var(--blue) 12px 18px, #fff 18px 24px);
  background-size: 100% 34px; animation: spin-pole 1.8s linear infinite;
}
.brand__name { font-family: var(--display); font-size: 1.6rem; line-height: .9; display: flex; flex-direction: column; color: #fff; }
.brand__name small { font-family: var(--body); font-weight: 700; font-size: .7rem; letter-spacing: .12em; color: var(--muted-light); margin-top: .25rem; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav__links a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(31, 79, 191, .55), transparent 60%),
    var(--navy);
  color: #fff;
  padding-top: 76px;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hero.has-video .hero__video { opacity: .35; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem; padding: 3rem 0 5rem; }

.live { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); padding: .4rem .9rem; border-radius: 999px; font-weight: 600; font-size: .92rem; margin-bottom: 1.6rem; }
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-light); }
.live.is-open .live__dot { background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 2s infinite; }
.live.is-closed .live__dot { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* El rótulo: la pieza memorable */
.sign { font-family: var(--display); font-weight: 400; line-height: .9; margin-bottom: 1.6rem; }
.sign__line { display: block; }
.sign__line--1 {
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  color: #fff;
  text-shadow: 4px 4px 0 var(--red), 8px 8px 0 var(--ink);
  animation: stamp .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.sign__line--2 {
  font-size: clamp(1.9rem, 5.2vw, 3.8rem);
  color: var(--white);
  -webkit-text-stroke: 0;
  background: var(--red);
  display: inline-block;
  padding: .15em .35em .1em;
  margin-top: .25em;
  transform: rotate(-2deg);
  box-shadow: 6px 6px 0 var(--ink);
  animation: stamp .7s .18s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes stamp { from { opacity: 0; transform: scale(1.25) rotate(-2deg); } }
.hero__lead { font-size: 1.2rem; color: var(--muted-light); max-width: 46ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Poste de barbero 3D */
.hero__pole { display: flex; justify-content: center; }
.bigpole { display: flex; flex-direction: column; align-items: center; filter: drop-shadow(10px 14px 0 rgba(10, 22, 48, .6)); }
.bigpole__cap { width: 120px; height: 34px; background: linear-gradient(90deg, #8a93a8, #f4f6fb 35%, #c9cfdd 60%, #6f788f); border: 3px solid var(--ink); }
.bigpole__cap--top { border-radius: 60px 60px 8px 8px; height: 46px; }
.bigpole__cap--bottom { border-radius: 8px 8px 30px 30px; }
.bigpole__glass {
  position: relative; width: 96px; height: clamp(300px, 48vh, 440px);
  border-inline: 3px solid var(--ink); overflow: hidden; background: #fff;
}
.bigpole__stripes {
  position: absolute; inset: -200px 0 0 0;
  background: repeating-linear-gradient(-30deg, var(--red) 0 28px, #fff 28px 46px, var(--blue) 46px 74px, #fff 74px 92px);
  animation: spin-big 3s linear infinite;
}
.bigpole__glass::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,22,48,.45), rgba(255,255,255,.0) 30%, rgba(255,255,255,.55) 42%, rgba(255,255,255,0) 55%, rgba(10,22,48,.5));
}
@keyframes spin-big { to { transform: translateY(184px); } }
@keyframes spin-pole { to { background-position: 0 34px; } }

/* Piso de cuadros */
.checker {
  position: relative; height: 36px; width: 100%;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 36px 36px;
}
.checker--thin { height: 18px; background-size: 18px 18px; }

/* ---------- Cinta ---------- */
.ribbon { background: var(--red); color: #fff; overflow: hidden; border-block: 3px solid var(--ink); }
.ribbon__track { display: flex; width: max-content; animation: ribbon 26s linear infinite; }
.ribbon span { font-family: var(--display); font-size: 1.6rem; padding: .7rem 0; white-space: nowrap; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Bloques ---------- */
.block { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.block--paper { background: var(--paper); }
.block--navy { background: var(--navy); color: #fff; }
.block--blue { background: var(--blue); color: #fff; }

/* ---------- Tablero de precios ---------- */
.board {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--navy);
  padding: 2.2rem 2.6rem;
}
.board__list { list-style: none; }
.board__list li { display: flex; align-items: baseline; gap: .6rem; padding: 1.1rem 0; border-bottom: 2px dashed #D8DCE6; }
.board__list li:last-child { border-bottom: 0; }
.board__name { font-weight: 800; font-size: 1.15rem; display: flex; flex-direction: column; }
.board__name small { font-weight: 400; font-size: .9rem; color: var(--muted); }
.board__dots { flex: 1; border-bottom: 3px dotted var(--navy); transform: translateY(-.35rem); min-width: 1rem; }
.board__price { font-family: var(--display); font-size: 1.4rem; color: var(--red); }

/* ---------- Placas (contadores) ---------- */
.plates { background: var(--ink); padding: 3.5rem 0; }
.plates__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.plate {
  background: var(--navy); border: 2px solid rgba(255,255,255,.2); border-radius: var(--r);
  padding: 1.6rem 1rem; text-align: center; color: #fff;
}
.plate__num { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.1; text-shadow: 3px 3px 0 var(--red); font-variant-numeric: tabular-nums; }
.plate__label { color: var(--muted-light); font-weight: 600; }

/* ---------- Antes / después ---------- */
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 var(--red); user-select: none; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba__before { background-image: url("img/antes.jpg"), linear-gradient(135deg, #a4abbb, #5b6478); }
.ba__after { background-image: url("img/despues.jpg"), linear-gradient(135deg, var(--blue), var(--navy)); clip-path: inset(0 0 0 var(--pos)); }
.ba__tag { position: absolute; top: 1rem; left: 1rem; background: var(--ink); color: #fff; padding: .3rem .9rem; border-radius: var(--r); font-weight: 800; font-size: .9rem; }
.ba__tag--after { left: auto; right: 1rem; background: var(--red); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:has(.ba__range:focus-visible) .ba__handle span { outline: 3px solid var(--red); outline-offset: 3px; }
.ba.animating .ba__after { transition: clip-path .45s ease; }
.ba.animating .ba__handle { transition: left .45s ease; }

/* ---------- Quiz ---------- */
.quiz { background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--red); padding: 2rem; }
.quiz__progress { height: 10px; background: #E6E9F0; border-radius: 5px; overflow: hidden; margin-bottom: 1.8rem; }
.quiz__progress span { display: block; height: 100%; width: 0; transition: width .4s;
  background: repeating-linear-gradient(135deg, var(--red) 0 10px, #fff 10px 14px, var(--blue) 14px 24px, #fff 24px 28px); }
.quiz__step { animation: slide-in .35s ease both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } }
.quiz__count { color: var(--muted); font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.quiz__q { font-family: var(--display); font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--navy); line-height: 1.15; margin-bottom: 1.4rem; }
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.quiz__opt {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 1rem 1.1rem; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .12s;
}
.quiz__opt:hover, .quiz__opt:focus-visible { background: #FFE9EC; transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); }
.quiz__opt b { display: block; font-size: 1.05rem; }
.quiz__opt small { color: var(--muted); }
.quiz__result { text-align: center; }
.quiz__result h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.05; color: var(--navy); text-shadow: 3px 3px 0 var(--red); margin: .3rem 0 .9rem; }
.quiz__result p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.6rem; }
.quiz__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.quiz__actions .btn--line { color: var(--ink); border-color: var(--ink); }

/* ---------- Galería Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.ig-post { background: #fff; border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; height: 560px; box-shadow: 6px 6px 0 var(--navy); }
.ig-post:nth-child(even) { box-shadow: 6px 6px 0 var(--red); }
.ig-post iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Albert ---------- */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: center; }
.about__photo {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 0 0 8px var(--red), 12px 12px 0 8px var(--ink);
  background: var(--navy); display: grid; place-items: center;
  font-family: var(--display); font-size: 7rem; color: #fff;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text { font-size: 1.2rem; max-width: 52ch; margin: .6rem 0 2rem; color: #E6ECFA; }

/* ---------- Horario ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.hours { list-style: none; background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--navy); overflow: hidden; margin-top: 1.9rem; }
.hours li { display: flex; justify-content: space-between; padding: .85rem 1.3rem; border-bottom: 1px solid #E6E9F0; font-weight: 600; }
.hours li:last-child { border-bottom: 0; }
.hours li.closed span:last-child { color: var(--red); font-weight: 800; }
.hours li.today { background: var(--navy); color: #fff; }
.hours li.today span:first-child::after { content: " (hoy)"; color: var(--muted-light); font-weight: 400; }
.map { border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 8px 8px 0 var(--red); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Formulario tipo ticket ---------- */
.ticket { background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 10px 10px 0 var(--red); }
.ticket__checker { height: 22px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 22px 22px; border-bottom: 3px solid var(--ink); }
.ticket__body { padding: 2rem; display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; font-weight: 700; font-size: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r); padding: .85rem 1rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--red); }
.field .invalid { border-color: var(--red); background: #FFF0F2; }
.form-error { color: var(--red-dark); font-weight: 700; min-height: 1.2em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-2); color: #fff; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2.5rem 0 3rem; }
.brand__name--foot { font-size: 1.5rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-weight: 700; text-decoration-color: var(--red); text-underline-offset: 5px; }
.footer__copy { color: var(--muted-light); font-size: .9rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 65;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s;
}
.wa-float:hover { transform: translate(-2px, -2px) rotate(-6deg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-bottom: 3.5rem; }
  .hero__pole { position: absolute; top: 50%; transform: translateY(-50%) scale(.5); transform-origin: right center; opacity: .16; right: -30px; pointer-events: none; }
  .board { grid-template-columns: 1fr; padding: 1.4rem 1.4rem; }
  .plates__grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .about__photo { width: 220px; margin: 0 auto; }
  .about__text { margin-inline: auto; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav { background: var(--navy); }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 1.4rem;
    background: var(--navy); padding: 2rem 0 2.4rem; border-bottom: 4px solid var(--red);
    transform: translateY(-130%); transition: transform .3s; visibility: hidden;
  }
  .nav__links.open { transform: none; visibility: visible; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .ticket__body, .quiz { padding: 1.4rem; }
  .board__list li { flex-wrap: wrap; }
  .ig-post { height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__video { display: none; }
}
.board__price--ask { font-family: var(--body); font-weight: 800; font-size: 1rem; color: var(--navy); }
