/* ==========================================================
   Barber&Rock — Pablo Finos
   Tema oscuro con acentos naranja/rojo
   ========================================================== */

:root {
  --ink: #0d0a08;          /* fondo principal, negro cálido */
  --panel: #171009;        /* paneles / tarjetas */
  --crema: #f3e8d8;        /* texto principal */
  --humo: #a89a8a;         /* texto secundario */
  --naranja: #ff5f1f;      /* acento principal */
  --rojo: #b3231f;         /* acento secundario */
  --linea: rgba(243, 232, 216, 0.12);

  --display: "Alfa Slab One", serif;
  --body: "Barlow", system-ui, sans-serif;
  --label: "Barlow Condensed", "Barlow", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--crema);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--naranja); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(13, 10, 8, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}

.brand {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--crema);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.amp { color: var(--naranja); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crema);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--naranja); }

.nav-cta {
  padding: 8px 16px;
  border: 2px solid var(--naranja);
  border-radius: 4px;
  color: var(--naranja) !important;
}

.nav-cta:hover { background: var(--naranja); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--crema);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 120px;
  overflow: hidden;
  background: var(--ink);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--humo);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  font-size: clamp(4rem, 15vw, 11rem);
  text-transform: uppercase;
}

.hero-title .line { display: block; }

.line-amp { line-height: 0.6; }

.amp-big {
  display: inline-block;
  color: var(--naranja);
  font-size: 0.55em;
  transform: rotate(-8deg);
  text-shadow: 4px 4px 0 var(--rojo);
}

.hero-sub {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-top: 22px;
}

.hero-copy {
  max-width: 420px;
  color: var(--humo);
  margin: 18px auto 32px;
}

/* franjas diagonales — firma visual (poste de barbería / cinta de escenario) */
.stripes,
.divider {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--naranja) 0 18px,
    var(--ink) 18px 26px,
    var(--rojo) 26px 44px,
    var(--ink) 44px 52px
  );
}

.stripes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--label);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--naranja);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--rojo);
}

.btn-primary:hover { background: #ff7a42; }

.btn-outline {
  border: 2px solid var(--crema);
  color: var(--crema);
}

.btn-outline:hover { border-color: var(--naranja); color: var(--naranja); }

/* ---------- Secciones ---------- */

.section { padding: 90px 24px; }

.wrap { max-width: 1060px; margin: 0 auto; }

.wrap-narrow { max-width: 720px; }

.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.section p + p { margin-top: 16px; }

/* ---------- Servicios ---------- */

.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.service {
  background: var(--panel);
  border: 1px solid var(--linea);
  border-top: 3px solid var(--naranja);
  border-radius: 6px;
  padding: 26px 22px;
}

.service h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service p { color: var(--humo); font-size: 0.98rem; }

.service .price {
  margin-top: 14px;
  font-family: var(--label);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--naranja);
}

.note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--humo);
}

/* ---------- Galería ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.gallery figure {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--linea);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery figure:hover img { transform: scale(1.03); }

/* ---------- Ubicación ---------- */

.address {
  font-family: var(--label);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.map-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--linea);
}

.map-frame iframe { display: block; filter: grayscale(0.2); }

/* ---------- Horarios ---------- */

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: 16px 8px;
  border-bottom: 1px solid var(--linea);
}

.hours th {
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hours td { color: var(--crema); }

.hours .sep { color: var(--naranja); padding: 0 6px; }

.hours .closed { color: var(--rojo); font-weight: 600; }

/* ---------- Contacto ---------- */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--linea);
  padding: 44px 24px;
  text-align: center;
  color: var(--humo);
}

.foot-brand {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--crema);
  margin-bottom: 8px;
}

.site-footer a { color: var(--crema); text-decoration: none; }

.site-footer a:hover { color: var(--naranja); }

.foot-small { margin-top: 12px; font-size: 0.85rem; }

/* ---------- Animación de aparición ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery img { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    background: rgba(13, 10, 8, 0.98);
    border-bottom: 1px solid var(--linea);
  }

  .site-nav.open { display: flex; }

  .section { padding: 64px 20px; }
}

/* foco visible para teclado */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: 3px;
}
