/* ============================================
   RITUAL BARBER — Design tokens
============================================ */
:root{
  --black:        #0B0B0C;
  --black-soft:   #141414;
  --white:        #F2F0EA;
  --stone:        #8B8B85;
  --line:         #2A2A28;
  --brass:        #F2F0EA;   /* accent = blanco puro, a juego con el logo */
  --brass-dim:    #c9c7c0;

  --font-display: "Poppins", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --container: 1180px;
  --nav-h: 84px;

  --ease: cubic-bezier(.22,1,.36,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1.2rem;
}
.eyebrow--center{ text-align: center; }
.eyebrow--light{ color: var(--stone); }

.body-lg{ font-size: 1.15rem; color: var(--white); opacity: 0.92; max-width: 46ch; }
.body{ color: var(--stone); max-width: 52ch; }
.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================
   Buttons
============================================ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn--primary{
  background: var(--brass);
  color: var(--black);
}
.btn--primary:hover{
  background: transparent;
  color: var(--brass);
  transform: translateY(-2px);
}
.btn--ghost{
  color: var(--white);
  border-color: var(--line);
}
.btn--ghost:hover{
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
}
.btn--lg{
  padding: 1.2rem 2.8rem;
  font-size: 0.95rem;
}

/* ============================================
   Nav
============================================ */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(11,11,12,0.9), rgba(11,11,12,0));
  transition: background 0.4s var(--ease), height 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.is-scrolled{
  height: 64px;
  background: rgba(11,11,12,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand{
  display: flex;
  align-items: center;
}
.nav__logo{
  height: 38px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease);
}
.nav.is-scrolled .nav__logo{ height: 32px; }
.nav__links{
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__links a{
  position: relative;
  padding: 0.3rem 0;
  color: var(--white);
  opacity: 0.85;
}
.nav__links a:not(.nav__cta)::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after{ width: 100%; }
.nav__links a:hover{ opacity: 1; }
.nav__cta{
  border: 1px solid var(--brass);
  color: var(--brass) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
}
.nav__cta:hover{ background: var(--brass); color: var(--black) !important; }

.nav__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span{
  height: 1px;
  background: var(--white);
  width: 100%;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============================================
   Hero
============================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 1.5rem;
}
.hero__grain{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(184,163,105,0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}
.hero__content{ position: relative; z-index: 1; }
.hero__eyebrow{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}
.hero__logo-wrap{
  overflow: hidden;
}
.hero__logo{
  width: min(640px, 78vw);
  height: auto;
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  animation: logoReveal 1.1s var(--ease) forwards;
  animation-delay: 0.15s;
}
@keyframes logoReveal{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.hero__tagline{
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--stone);
}
.hero__actions{
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.reveal-line{
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: 0.6s;
}
.reveal-line--delay{ animation-delay: 0.8s; }
.reveal-line--delay2{ animation-delay: 1s; }
@keyframes fadeUp{ to{ opacity: 1; transform: translateY(0); } }

.hero__scroll{
  position: absolute;
  bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: 1.2s;
}
.hero__scroll-line{
  width: 1px; height: 40px;
  background: linear-gradient(var(--brass), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse{
  0%,100%{ transform: scaleY(1); opacity: 0.5; }
  50%{ transform: scaleY(0.6); opacity: 1; }
}

/* ============================================
   Sections — shared
============================================ */
.section{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8rem 1.5rem;
}
.section--dark{
  max-width: none;
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark > *:not(.filmstrip){ max-width: var(--container); margin-left: auto; margin-right: auto; }
.section__title{
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-align: center;
  margin-bottom: 1rem;
}

/* fade divider between sections */
.section::before{
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(70%, 640px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 30%, var(--line) 70%, transparent);
}
.section:first-of-type::before{ display: none; }

/* ============================================
   Split layout (Nosotros / Ubicación)
============================================ */
.section--split{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}
.section--split-rev{
  grid-template-columns: 1.15fr 1fr;
}
.section--split-rev .split__text{ order: 1; }
.section--split-rev .split__media{ order: 2; }

.split__text h2{ font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.4rem; }
.split__text .body-lg{ margin-bottom: 1rem; }
.split__text .body{ margin-bottom: 0; }

.stat-row{
  display: flex;
  gap: 2.4rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat{ display: flex; flex-direction: column; }
.stat__num{ font-family: var(--font-display); font-size: 2rem; color: var(--brass); }
.stat__label{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }

.info-block{ margin-bottom: 1.8rem; }
.info-block h3{ font-size: 1.05rem; color: var(--brass); margin-bottom: 0.4rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.info-block p{ color: var(--stone); margin: 0; }

/* ============================================
   Placeholder media blocks (swap for real photos)
============================================ */
.ph{
  position: relative;
  background:
    linear-gradient(135deg, #1b1b1a 0%, #0f0f0f 60%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph::after{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(184,163,105,0.035) 0 2px, transparent 2px 12px);
}
.ph__label{
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  background: rgba(11,11,12,0.5);
}
.ph--portrait{ aspect-ratio: 4/5; width: 100%; border-radius: 2px; }
.ph--square{ aspect-ratio: 1/1; border-radius: 2px; }
.ph--wide{ aspect-ratio: 3/4; min-width: 260px; border-radius: 2px; }
.ph--map{ aspect-ratio: 4/3; width: 100%; border-radius: 2px; }

.map-embed{
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(0.35) contrast(1.05);
}
.map-embed iframe{ width: 100%; height: 100%; }

/* razor-wipe reveal for media */
.reveal-wipe{
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
}
.reveal-wipe.is-visible{ clip-path: inset(0 0 0 0); }

/* ============================================
   Gallery grid
============================================ */
.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}
.gallery .ph{ transition: transform 0.5s var(--ease); }
.gallery .ph:hover{ transform: translateY(-4px); }

/* ============================================
   Menu / services
============================================ */
.section--menu{ max-width: 820px; }
.menu-list{ margin-top: 3rem; }
.menu-item{
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-item__name{
  font-family: var(--font-display);
  font-size: 1.3rem;
  white-space: nowrap;
}
.menu-item__name em{ font-style: italic; color: var(--stone); font-size: 0.95rem; }
.menu-item__dots{
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-6px);
}
.menu-item__price{
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 1.05rem;
  white-space: nowrap;
}
.menu-note{
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone);
  text-align: center;
  opacity: 0.7;
}

/* ============================================
   Filmstrip (horizontal scroll)
============================================ */
.filmstrip{
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 3rem 1.5rem 1rem;
  scroll-snap-type: x mandatory;
  max-width: var(--container);
  margin: 0 auto;
}
.filmstrip .ph{ scroll-snap-align: start; flex: 0 0 340px; }
.filmstrip::-webkit-scrollbar{ height: 4px; }
.filmstrip::-webkit-scrollbar-thumb{ background: var(--line); }

/* ============================================
   CTA
============================================ */
.cta{
  position: relative;
  background: var(--white);
  color: var(--black);
  text-align: center;
  padding: 7rem 1.5rem;
  overflow: hidden;
}
.cta__grain{
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(11,11,12,0.04) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.cta__title{
  position: relative;
  color: var(--black);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 2.4rem;
  line-height: 1.05;
}
.cta .btn--primary{
  position: relative;
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.cta .btn--primary:hover{
  background: transparent;
  color: var(--black);
}
.cta__note{
  position: relative;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(11,11,12,0.65);
}

/* ============================================
   Footer
============================================ */
.footer{
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer__brand{
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: center;
}
.footer__logo{ height: 52px; width: auto; }

.footer__links{
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-bottom: 1.8rem;
}
.footer__links a:hover{ color: var(--brass); }

.footer__social{
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.social-icon{
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--stone);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-icon svg{ width: 18px; height: 18px; }
.social-icon:hover{
  color: var(--black);
  background: var(--brass);
  border-color: var(--brass);
  transform: translateY(-2px);
}
.footer__legal{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--stone);
  opacity: 0.6;
  margin: 0;
}

/* ============================================
   Scroll reveal (generic)
============================================ */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
============================================ */
@media (max-width: 900px){
  .section--split, .section--split-rev{
    grid-template-columns: 1fr;
  }
  .section--split-rev .split__text, .section--split-rev .split__media{ order: initial; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .stat-row{ flex-wrap: wrap; gap: 1.6rem; }
}

@media (max-width: 760px){
  .nav__links{
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11,11,12,0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav__links.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links a{ padding: 0.9rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child{ border-bottom: none; }
  .nav__cta{ margin-top: 0.6rem; text-align: center; }
  .nav__toggle{ display: flex; }

  .menu-item__name{ font-size: 1.1rem; white-space: normal; }
}

/* ============================================
   Scroll progress bar
============================================ */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--brass);
  z-index: 300;
  transition: width 0.1s linear;
}

/* ============================================
   WhatsApp floating button
============================================ */
.whatsapp-float{
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #0B0B0C;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s var(--ease);
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg{ width: 28px; height: 28px; }
.whatsapp-float:hover{ transform: scale(1.08); }
@keyframes floatPulse{
  0%,100%{ box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50%{ box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 0 10px rgba(37,211,102,0); }
}

/* ============================================
   Back to top
============================================ */
.back-to-top{
  position: fixed;
  left: 1.4rem;
  bottom: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--black-soft);
  border: 1px solid var(--line);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.back-to-top svg{ width: 20px; height: 20px; }
.back-to-top.is-visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover{ border-color: var(--brass); color: var(--brass); }

/* ============================================
   Testimonials
============================================ */
.section--testimonials{ max-width: 760px; }
.testi{
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 3rem;
}
.testi__track{
  position: relative;
  flex: 1;
  min-height: 220px;
}
.testi__slide{
  position: absolute;
  inset: 0;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.testi__slide.is-active{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.testi__stars{
  color: var(--brass);
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.testi__quote{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 1.2rem;
}
.testi__author{
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.testi__arrow{
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.testi__arrow svg{ width: 18px; height: 18px; }
.testi__arrow:hover{ border-color: var(--brass); color: var(--brass); }

.testi__dots{
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.testi__dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.testi__dot.is-active{ background: var(--brass); }

@media (max-width: 640px){
  .testi{ gap: 0.8rem; }
  .testi__quote{ font-size: 1.1rem; }
}

/* ============================================
   Skip link (accesibilidad)
============================================ */
.skip-link{
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 999;
  background: var(--white);
  color: var(--black);
  padding: 0.8rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus{
  top: 1rem;
}

/* ============================================
   Ticker / marquee infinito
============================================ */
.ticker{
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
  padding: 1rem 0;
  white-space: nowrap;
}
.ticker__track{
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  animation: tickerScroll 22s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.ticker__dot{ color: var(--brass); }
@keyframes tickerScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.ticker:hover .ticker__track{ animation-play-state: paused; }

/* ============================================
   Nav — indicador de sección activa (scroll spy)
============================================ */
.nav__links a.is-active{
  color: var(--brass);
  opacity: 1;
}
.nav__links a.is-active::after{ width: 100%; }

/* ============================================
   Tilt 3D en fotos
============================================ */
.split__media .ph, .filmstrip .ph{
  perspective: 900px;
}
.split__media .ph img, .filmstrip .ph img{
  transition: transform 0.25s ease-out;
  transform-origin: center;
}

/* ============================================
   Botones magnéticos (el transform lo pone JS inline)
============================================ */
.btn{ will-change: transform; }

/* ============================================
   Slider antes/después
============================================ */
.ba{
  position: relative;
  max-width: 420px;
  margin: 3rem auto 0;
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: ew-resize;
  user-select: none;
}
.ba__after, .ba__before{
  position: absolute;
  inset: 0;
}
.ba__after .ph, .ba__before .ph{
  width: 100%; height: 100%;
  border: none;
  border-radius: 0;
}
.ba__before{
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--white);
}
.ba__before .ph{
  width: var(--ba-width, 100vw);
  max-width: none;
}
.ba__handle{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.ba__handle svg{ width: 20px; height: 20px; }
.ba__range{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

/* ============================================
   Página 404
============================================ */
.error-page{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.6rem;
}
.error-page__logo{ width: min(280px, 60vw); height: auto; opacity: 0.9; }
.error-page__code{
  font-family: var(--font-mono);
  color: var(--brass);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.error-page__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.error-page__text{ color: var(--stone); max-width: 44ch; }