/* ==========================================================================
   NORTE BARBERS — hoja de estilos
   Estudio: Kosta · Proyecto conceptual de portfolio
   ========================================================================== */

:root {
  --bg: #141311;
  --bg-raised: #1c1a17;
  --bg-raised-2: #221f1b;
  --off-white: #edeae2;
  --off-white-soft: rgba(237, 234, 226, 0.72);
  --grey: #8b8680;
  --rust: #c2531f;
  --rust-deep: #9c4319;
  --line: rgba(237, 234, 226, 0.14);
  --line-strong: rgba(237, 234, 226, 0.28);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.22, 1, 0.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; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--off-white);
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.demo-flag {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 500;
  font-size: 11px;
  color: var(--bg);
  background: var(--off-white);
  padding: 6px 12px;
  border-radius: 2px;
  font-family: var(--font-body);
  pointer-events: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn-accent { background: var(--rust); color: var(--off-white); }
.btn-accent:hover { background: var(--rust-deep); }

.btn-outline { background: transparent; color: var(--off-white); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--off-white); }

.btn-dark { background: var(--bg); color: var(--off-white); }
.btn-dark:hover { background: var(--rust); }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(20, 19, 17, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 19, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 36px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--off-white);
  margin-right: auto;
  display: flex;
  gap: 6px;
}
.wordmark span { color: var(--rust); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--off-white-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover { color: var(--off-white); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { padding: 11px 22px; font-size: 12.5px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 310;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- mobile fullscreen nav ---------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 290;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--gutter);
  gap: 40px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav nav { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  text-transform: uppercase;
  color: var(--off-white);
}
.mobile-nav-cta { align-self: flex-start; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.08); }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,13,11,0.55) 0%, rgba(14,13,11,0.15) 32%, rgba(14,13,11,0.85) 100%);
}

.hero-side {
  position: absolute;
  right: var(--gutter);
  top: 130px;
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--off-white-soft);
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter) 100px;
}

.hero-title { font-size: clamp(52px, 11vw, 148px); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 0.8s var(--ease) forwards;
}
.reveal-line:nth-child(2) span { animation-delay: 0.1s; }
.reveal-line:nth-child(3) span { animation-delay: 0.2s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  font-size: 17px;
  color: var(--off-white-soft);
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ==========================================================================
   SECTION SHARED
   ========================================================================== */

main > section { padding: clamp(80px, 11vw, 150px) var(--gutter); }

.section-head { max-width: var(--container); margin: 0 auto clamp(44px, 6vw, 76px); }
.section-head h2 { font-size: clamp(38px, 5.5vw, 64px); }

/* ==========================================================================
   MANIFIESTO
   ========================================================================== */

.manifiesto { background: var(--bg-raised); }

.manifiesto-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.manifiesto-text h2 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 24px; }
.manifiesto-text p { color: var(--off-white-soft); font-size: 17px; max-width: 42ch; }

.manifiesto-image img { width: 100%; height: clamp(320px, 36vw, 480px); object-fit: cover; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */

.servicios { background: var(--bg); position: relative; }

.servicios-list {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  border-top: 1px solid var(--line);
}

.servicio-row {
  display: grid;
  grid-template-columns: 2.4fr 3fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding-left 0.4s var(--ease), border-color 0.3s var(--ease);
}

.servicio-row:hover {
  padding-left: 20px;
  border-bottom-color: var(--line-strong);
}

.servicio-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.servicio-row:hover .servicio-name { color: var(--rust); }

.servicio-desc { color: var(--grey); font-size: 14.5px; max-width: 44ch; }

.servicio-price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--off-white);
  justify-self: end;
}

.servicio-preview {
  position: fixed;
  width: 220px;
  height: 280px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease;
  border: 1px solid var(--line-strong);
}
.servicio-preview.is-visible { opacity: 1; }
.servicio-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   BOOKING
   ========================================================================== */

.booking { background: var(--bg-raised); }

.booking-form {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.booking-label {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-bottom: 12px;
}

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--off-white-soft);
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pill:hover { border-color: var(--off-white); color: var(--off-white); }
.pill.is-active { background: var(--rust); border-color: var(--rust); color: var(--off-white); }

.booking-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 2px;
  transition: border-color 0.3s var(--ease);
}
input::placeholder { color: var(--grey); }
input:focus { outline: none; border-color: var(--rust); }

.booking-submit { align-self: flex-start; margin-top: 6px; }

.booking-confirm {
  margin-top: 8px;
  padding: 18px 20px;
  background: rgba(194, 83, 31, 0.1);
  border-left: 2px solid var(--rust);
  font-size: 14px;
  color: var(--off-white-soft);
}

.booking-whatsapp {
  max-width: 760px;
  margin: 46px auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.booking-whatsapp p { color: var(--grey); font-size: 14.5px; }

/* ==========================================================================
   LA BARBERÍA
   ========================================================================== */

.barberia { background: var(--bg); }

.barberia-intro { max-width: var(--container); margin: 0 auto 50px; }
.barberia-intro h2 { font-size: clamp(34px, 5vw, 56px); }

.barberia-magazine {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}
.mag-a { grid-column: 1 / 4; grid-row: 1 / 3; width: 100%; height: 100%; object-fit: cover; }
.mag-b { grid-column: 4 / 7; grid-row: 1 / 2; width: 100%; height: 100%; object-fit: cover; }
.mag-c { grid-column: 4 / 7; grid-row: 2 / 3; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   EQUIPO
   ========================================================================== */

.equipo { background: var(--bg-raised); }

.equipo-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.equipo-photo { aspect-ratio: 3/4; overflow: hidden; }
.equipo-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); transition: filter 0.4s var(--ease); }
.equipo-card:hover .equipo-photo img { filter: grayscale(0); }

.equipo-name {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  margin-top: 20px;
}
.equipo-role { color: var(--rust); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
.equipo-quote { color: var(--grey); font-size: 14.5px; margin-top: 12px; max-width: 32ch; }

/* ==========================================================================
   GALERÍA
   ========================================================================== */

.galeria { background: var(--bg); }

.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.gallery-item { position: relative; padding: 0; border: none; background: none; cursor: pointer; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); transition: transform 0.6s var(--ease), filter 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0); }

.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }

/* ==========================================================================
   INSTAGRAM
   ========================================================================== */

.instagram { background: var(--bg-raised); }

.instagram-head { max-width: var(--container); margin: 0 auto 40px; }
.instagram-head h2 { font-size: clamp(34px, 5vw, 56px); }
.instagram-head p { margin-top: 12px; color: var(--rust); font-size: 15px; }
.instagram-note { color: var(--grey); font-style: normal; }

.instagram-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.instagram-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(0.3); transition: filter 0.3s var(--ease), transform 0.4s var(--ease); }
.instagram-grid img:hover { filter: grayscale(0); transform: scale(1.03); }

/* ==========================================================================
   UBICACIÓN
   ========================================================================== */

.ubicacion { background: var(--bg); }

.ubicacion-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
}

.ubicacion-map {
  width: 100%;
  height: clamp(360px, 34vw, 460px);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ubicacion-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.6) invert(0.92) contrast(0.9); }

.ubicacion-info .detail-title {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--off-white);
}
.ubicacion-info p:not(.detail-title) { color: var(--off-white-soft); }
.ubicacion-hours { margin-top: 22px; margin-bottom: 22px; }
.ubicacion-info .btn { margin-top: 12px; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.cta-final { background: var(--off-white); color: var(--bg); text-align: center; }
.cta-final-inner { max-width: 760px; margin: 0 auto; }
.cta-final h2 { color: var(--bg); font-size: clamp(44px, 8vw, 84px); margin-bottom: 40px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: var(--bg); padding: 56px var(--gutter) 28px; border-top: 1px solid var(--line); }

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer-wordmark { font-size: 20px; margin-bottom: 10px; }
.footer-brand p:not(.footer-wordmark) { color: var(--grey); }

.footer-links, .footer-legal { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--off-white-soft); }
.footer-links a:hover, .footer-legal a:hover { color: var(--off-white); }

.footer-note { max-width: var(--container); margin: 22px auto 0; font-size: 12px; color: var(--grey); text-align: center; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10, 9, 8, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lightbox-close {
  position: absolute; top: 26px; right: 34px;
  background: none; border: none; color: var(--off-white);
  font-size: 34px; line-height: 1; cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .manifiesto-grid { grid-template-columns: 1fr; }
  .manifiesto-image img { height: 300px; }

  .servicio-row { grid-template-columns: 1fr; gap: 6px; }
  .servicio-price { justify-self: start; }
  .servicio-preview { display: none; }

  .booking-field-row { grid-template-columns: 1fr; }

  .barberia-magazine { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .mag-a { grid-column: 1 / 3; grid-row: 1 / 2; }
  .mag-b { grid-column: 1 / 2; grid-row: 2 / 3; }
  .mag-c { grid-column: 2 / 3; grid-row: 2 / 3; }

  .equipo-grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .g-wide { grid-column: span 2; }

  .instagram-grid { grid-template-columns: repeat(3, 1fr); }

  .ubicacion-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 560px) {
  .hero-side { display: none; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .servicio-desc { max-width: none; }
}
