/* ── CUSTOM FONTS ── */
@font-face {
  font-family: 'BebasNeue';
  src: url('BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thomsan';
  src: url('Thomsan.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── TYPOGRAPHIC SCALE ─────────────────────────────────────────────
   T1 — Hero display  : BebasNeue, clamp(52px → 80px)
   T2 — Section title : BebasNeue, clamp(38px → 54px)
   T3 — Card title    : BebasNeue, 28px
   B1 — Body          : Thomsan,   16px
   B2 — UI / small    : Thomsan,   13px
   ──────────────────────────────────────────────────────────────── */

:root {
  --bg: #090909;
  --surface: #111111;
  --surface2: #1A1A1A;
  --white: #FFFFFF;
  --off-white: #E8E8E8;
  --gray: #606060;
  --gray-light: #A0A0A0;
  --border: rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.18);
  --t: 0.3s ease;

  /* Type scale */
  --t1: clamp(52px, 7vw, 80px);
  --t2: clamp(38px, 5vw, 54px);
  --t3: 28px;
  --b1: 18px;
  --b2: 14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; } /* iOS landscape fix */

img, video { max-width: 100%; height: auto; } /* prevent media overflow */

body {
  background: url('images/backgrounds/FONDO-GENERAL.jpg') center/cover fixed;
  background-color: var(--bg);
  color: var(--off-white);
  font-family: 'Thomsan', 'Inter', sans-serif;
  font-size: var(--b1);
  line-height: 1.6;
  overflow-x: hidden;
}

/* All headings inherit BebasNeue — size set per context */
h1, h2, h3 {
  font-family: 'BebasNeue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 20px 0; border-bottom: 0px solid rgba(255,255,255,0.18); }

/* ── B2: section label ── */
.sec-label {
  display: block;
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 14px;
}

/* ── T2: section title ── */
.sec-title {
  font-size: var(--t2);
}

.catalog-title {
  font-size: clamp(26px, 3.5vw, 42px);
}

.sec-bar {
  width: 40px;
  height: 1px;
  background: var(--white);
  margin-top: 20px;
  opacity: 0.4;
}

.sec-head { margin-bottom: 20px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-bar { margin-left: auto; margin-right: auto; }

/* ── BUTTONS — B2 ── */
.btn {
  display: inline-block;
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 34px;
  transition: all var(--t);
  cursor: pointer;
  border: none;
}

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

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

.btn-nav {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 22px;
  transition: all var(--t);
}
.btn-nav:hover { background: var(--white); color: var(--bg); }

/* ── NAVBAR ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 4px 0;
  background: rgba(9,9,9,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, background 0.3s ease;
}
.nav.nav-hidden { transform: translateY(-110%); }
.nav.scrolled   { background: rgba(9,9,9,1); box-shadow: 0 2px 16px rgba(0,0,0,0.6); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 95px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 34px;
  align-items: center;
}

/* B2 for nav links */
.nav-links a {
  font-family: 'Thomsan', sans-serif;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--t);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

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

.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: all var(--t);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  background: #090909;
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

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

/* B1 for drawer links */
.nav-drawer a {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 103px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45) grayscale(0.2);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }

/* ── Hero video ── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 30%, rgba(9,9,9,0.65) 100%),
    linear-gradient(to bottom, rgba(9,9,9,0.25) 0%, rgba(9,9,9,0.55) 100%);
}

.hero-fade-bottom {
  display: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-media { display: none; }

/* T1: hero heading */
.hero h1 {
  font-size: var(--t1);
  color: var(--white);
}

/* B1: hero badge — important callout */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 11px 26px;
  margin-top: 26px;
  margin-bottom: 32px;
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

/* B1: hero sub */
.hero-sub {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 42px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── WHY — Carousel ── */
.why {
  background: rgba(0,0,0,0.55);
}

.why .container {
  max-width: 1500px;
}

.why .sec-head {
  margin-bottom: 56px;
}

/* Imagen encima, cards la solapan por abajo */
.why-top-img {
  width: 100%;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

/* Tira de 4 imágenes — desktop/tablet */
.why-img-strip {
  display: flex;
  gap: 3px;
  width: 100%;
  overflow: hidden;
}

.why-img-strip img {
  flex: 1;
  width: 25%;
  height: auto;
  display: block;
}

/* Slideshow celular — oculto por defecto, visible en ≤600px */
.why-img-slides {
  display: none;
  position: relative;
  width: 100%;
}

/* Primera imagen en flujo normal para dar altura al contenedor */
.why-img-slides .why-slide-spacer {
  display: block;
  width: 100%;
  height: auto;
  visibility: hidden;
}

.why-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.why-slide.active { opacity: 1; }

.why-slide.active { opacity: 1; }

.why-carousel-wrap {
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.why-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.why-arrow {
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}
.why-arrow:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
.why-arrow svg { width: 22px; height: 22px; }

.why-carousel { flex: 1; overflow: hidden; }

.why-track {
  display: flex;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.why-card {
  flex: 0 0 calc(33.333% - 12px);
  text-align: center;
  padding: 52px 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t), background var(--t);
}
.why-card:hover { border-color: rgba(255,255,255,0.14); background: #161616; }

.why-icon-ring {
  width: 68px; height: 68px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  transition: border-color var(--t);
}
.why-card:hover .why-icon-ring { border-color: rgba(255,255,255,0.4); }

.wico {
  width: 30px; height: 30px;
  stroke: rgba(255,255,255,0.6);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke var(--t);
}
.why-card:hover .wico { stroke: var(--white); }

/* T3: why card title */
.why-card h3 { font-size: var(--t3); margin-bottom: 12px; }

/* B1: why card body */
.why-card p {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  color: var(--gray-light);
  line-height: 1.8;
}

/* ── RESULTS ── */
.results {
  background: rgba(0,0,0,0.55);
}

.ba-wrapper { display: flex; flex-direction: column; gap: 32px; position: relative; }

/* Navegación carrusel BA — oculta en desktop */
.ba-carousel-nav { display: none; }

.ba-hint-toast {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* B2: hint label */
.ba-hint-label {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.55);
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}

.ba-hint-arrow {
  width: 28px; height: 28px;
  color: var(--white);
  animation: hintBounce 1s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.ba-hint-toast.show { opacity: 1; visibility: visible; }
.ba-hint-toast.fade { opacity: 0; visibility: hidden; }
.results .container { max-width: 1600px; padding: 0 24px; }
.results .sec-head { margin-bottom: 16px; }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

@media (min-width: 1280px) { .ba-slider { aspect-ratio: 4 / 7; } }
@media (min-width: 1280px) { .cat-card { flex: 0 0 calc(25% - 11px); } }
@media (min-width: 1280px) { .why-card { flex: 0 0 calc(33.333% - 12px); } }
@media (max-width: 900px)  { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .ba-grid { grid-template-columns: 1fr; } }

.ba-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 5;
  cursor: col-resize;
  user-select: none;
  background: var(--surface2);
}

.ba-before, .ba-after { position: absolute; inset: 0; }

.ba-before img, .ba-after img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}

.ba-before { clip-path: inset(0 50% 0 0); z-index: 1; }

.ba-handle {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none; z-index: 3;
}

.ba-handle::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 100%;
  background: rgba(255,255,255,0.85);
}

.ba-handle svg {
  width: 38px; height: 38px;
  background: var(--white);
  border-radius: 50%;
  padding: 9px; fill: var(--bg);
  box-shadow: 0 2px 14px rgba(0,0,0,0.55);
  position: relative; z-index: 4;
}

.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: col-resize;
  z-index: 5; margin: 0;
}

.ba-labels {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 14px;
  pointer-events: none; z-index: 4;
}

/* B2: before/after labels */
.ba-before-label, .ba-after-label {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── BARBERS ── */
.barbers {
  background: rgba(0,0,0,0.55);
  position: relative;
  padding: 56px 0;
}

.barbers .container {
  max-width: 1500px;
}

.barbers .container { position: relative; z-index: 1; }

.barbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.barber-card {
  text-align: left;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--t);
}
.barber-card:hover { border-color: rgba(255,255,255,0.18); }

.barber-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.barber-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.barber-card:hover .barber-img img { transform: scale(1.04); }

.barber-info {
  padding: 22px 24px 26px;
}

/* T3: barber name */
.barber-card h3 { font-size: var(--t3); margin-bottom: 8px; }

/* B2: barber role */
.barber-role {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 16px;
}

/* T3: barber rating (number should match card title scale) */
.barber-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'BebasNeue', sans-serif;
  font-size: var(--t3);
  letter-spacing: 0.04em;
  color: var(--white);
}

.barber-rating svg { width: 18px; height: 18px; fill: var(--white); }

/* ── SERVICIOS ── */
.services {
  background: rgba(0,0,0,0.55);
}

.services .container {
  max-width: 1500px;
}

.services-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 44px;
}

.svc-arrow {
  width: 56px; height: 56px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}
.svc-arrow:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
.svc-arrow svg { width: 24px; height: 24px; }

.services-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* B2: filter buttons */
.filter-btn {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--t);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* ── SERVICE CARDS ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.svc-card {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}
.svc-card:hover { border-color: rgba(255,255,255,0.14); background: #161616; }
.svc-card.hidden { display: none; }

.svc-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* B2: service badges */
.svc-badge {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 11px;
  border: 1px solid var(--border-hi);
  color: var(--gray-light);
}

.svc-popular { background: var(--white); color: var(--bg); border-color: var(--white); }

.svc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

/* T3: service card title */
.svc-card h3 {
  font-size: var(--t3);
  line-height: 1.15;
  flex: 1;
}

/* T3: service price (same weight as title) */
.svc-price {
  font-family: 'BebasNeue', sans-serif;
  font-size: var(--t3);
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* B2: duration */
.svc-duration {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.08em;
  color: var(--gray);
  display: flex; align-items: center; gap: 6px;
}

.svc-duration svg {
  width: 15px; height: 15px;
  stroke: var(--gray); fill: none;
  stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* B2: reserve button */
.svc-reserve {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--border);
  padding: 8px 16px;
  transition: all var(--t);
  white-space: nowrap;
}
.svc-card:hover .svc-reserve { color: var(--white); border-color: rgba(255,255,255,0.28); }

/* ── SERVICE PAGE NAV ── */
.svc-page-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.svc-page-nav.visible { display: flex; }

.svc-page-btn {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}
.svc-page-btn:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
.svc-page-btn svg { width: 20px; height: 20px; }

/* B2: page info */
.svc-page-info {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.14em;
  color: var(--gray-light);
  min-width: 40px;
  text-align: center;
}

/* ── CATALOG / PRODUCTS ── */
.catalog {
  background: rgba(0,0,0,0.55);
}

.catalog .container {
  max-width: 1500px;
}

.cat-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cat-arrow {
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}
.cat-arrow:hover { background: var(--white); color: var(--bg); border-color: var(--white); }
.cat-arrow svg { width: 22px; height: 22px; }

.cat-carousel { flex: 1; overflow: hidden; }

.cat-track {
  display: flex;
  gap: 14px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.cat-card {
  flex: 0 0 calc(33.333% - 10px);
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: border-color var(--t);
}
.cat-card:hover { border-color: rgba(255,255,255,0.18); }

.cat-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface2);
}

.cat-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-img img { transform: scale(1.04); }

.cat-info {
  padding: 18px 16px 20px;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}

/* T3: product brand name — prominent */
.cat-brand {
  font-family: 'BebasNeue', sans-serif;
  font-size: var(--t3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

/* B2: product type descriptor */
.cat-name {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.08em;
  color: var(--gray-light);
  line-height: 1.4;
}

/* ── PRODUCT MODAL ── */
.prod-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.prod-modal-overlay.open { opacity: 1; pointer-events: all; }

.prod-modal-box {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  max-width: 900px; width: 100%;
  display: grid;
  grid-template-columns: 420px 1fr;
  overflow: hidden;
  position: relative;
  transform: scale(0.93);
  transition: transform 0.3s ease;
}
.prod-modal-overlay.open .prod-modal-box { transform: scale(1); }

.prod-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(255,255,255,0.07);
  border: none;
  color: var(--white);
  font-size: var(--b2);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer; z-index: 10;
  transition: background var(--t);
  display: flex; align-items: center; justify-content: center;
}
.prod-modal-close:hover { background: rgba(255,255,255,0.16); }

.prod-modal-img {
  aspect-ratio: 3 / 4;
  background: var(--surface2);
  overflow: hidden;
}
.prod-modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prod-modal-info {
  padding: 48px 40px 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
}

/* B2: modal type label */
.prod-modal-type {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 14px;
}

/* T2: modal product name */
.prod-modal-name {
  font-family: 'BebasNeue', sans-serif;
  font-size: var(--t2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
  padding-right: 24px;
}

/* B1: modal description */
.prod-modal-desc {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  color: var(--gray-light);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .prod-modal-box { grid-template-columns: 320px 1fr; max-width: 680px; }
}
@media (max-width: 600px) {
  .prod-modal-box { grid-template-columns: 1fr; max-width: 95vw; }
  .prod-modal-img { aspect-ratio: 4/3; }
  .prod-modal-info { padding: 24px 22px; }
}

/* ── LOYALTY ── */
.loyalty {
  background: rgba(0,0,0,0.55);
}

.loyalty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.loyalty-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loyalty-video-wrap {
  position: relative;
  max-width: 360px; width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--surface2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 64px rgba(0,0,0,0.7),
    0 8px 24px rgba(0,0,0,0.5);
}

.loyalty-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  object-position: top center;
  display: block;
}


/* Overlay de miniatura */
.loyalty-vid-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0,0,0,0.52);
  cursor: pointer;
  transition: background 0.3s ease;
}
.loyalty-vid-overlay:hover { background: rgba(0,0,0,0.38); }
.loyalty-vid-overlay.hidden { display: none; }

/* Botón de play */
.loyalty-play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.loyalty-play-btn svg {
  width: 28px; height: 28px;
  margin-left: 4px;
}
.loyalty-vid-overlay:hover .loyalty-play-btn {
  background: rgba(255,255,255,0.22);
  border-color: var(--white);
  transform: scale(1.08);
}

/* Texto del overlay */
.loyalty-vid-label {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0 24px;
  line-height: 1.6;
  margin: 0;
}

.loyalty-content .sec-label { margin-bottom: 12px; }

/* T2: loyalty heading */
.loyalty-content h2 {
  font-size: var(--t2);
  margin-bottom: 18px;
}

/* B1: loyalty body */
.loyalty-content p {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 420px;
}

.loyalty-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.loyalty-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* B2: step number */
.loyalty-step-num {
  font-family: 'BebasNeue', sans-serif;
  font-size: 16px;
  color: var(--bg);
  background: var(--white);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* B1: step text */
.loyalty-step p {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  color: var(--gray-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ── CTA ── */
.cta {
  background: rgba(0,0,0,0.55);
  text-align: center;
  padding: 100px 0;
}

/* T2: CTA heading */
.cta h2 {
  font-size: var(--t2);
  margin-bottom: 12px;
  color: var(--white);
}
.cta h2 em { font-style: normal; color: var(--off-white); }

/* B1: CTA sub */
.cta p {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  color: var(--gray-light);
  margin-bottom: 40px;
}

.btn-dark {
  display: inline-block;
  background: var(--white);
  color: var(--bg);
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 34px;
  transition: all var(--t);
}
.btn-dark:hover { background: var(--off-white); }

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* T3: footer logo */
.footer-logo {
  font-family: 'BebasNeue', sans-serif;
  font-size: var(--t3);
  color: var(--white);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* B1: footer tagline */
.footer-tag {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b1);
  color: var(--gray);
  line-height: 1.85;
}

/* B2: footer column heading */
.footer-col h4 {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}

/* B2: footer column text */
.footer-col p,
.footer-col a {
  display: block;
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  color: var(--gray);
  line-height: 2;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* B2: footer bottom text */
.footer-bottom p {
  font-family: 'Thomsan', sans-serif;
  font-size: var(--b2);
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
}

/* ── FLOAT BUTTON ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 800;
  width: 52px; height: 52px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  transition: all var(--t);
}
.wa-float:hover { background: var(--off-white); transform: scale(1.08); box-shadow: 0 6px 32px rgba(0,0,0,0.8); }
.wa-float svg { width: 25px; height: 25px; fill: var(--bg); }


/* ══════════════════════════════════════════════════════════════════
   DARK SECTION THEME — todo negro con imagen
   ══════════════════════════════════════════════════════════════════ */

/* ── Barberos — dark overrides ── */
.barbers .barber-card {
  background: rgba(20,20,20,0.85);
  border: 1px solid rgba(255,255,255,0.08);
}
.barbers .barber-card:hover { border-color: rgba(255,255,255,0.18); }
.barbers .barber-card h3  { color: #F0EDE6; }
.barbers .barber-role     { color: #999; }
.barbers .barber-rating   { color: #F0EDE6; }
.barbers .barber-rating svg { fill: #fff; }

/* ── Productos — dark overrides ── */
.catalog .cat-card {
  background: rgba(20,20,20,0.85);
  border: 1px solid rgba(255,255,255,0.08);
}
.catalog .cat-card:hover {
  border-color: rgba(255,255,255,0.18);
}
.catalog .cat-img { background: #1a1a1a; }
.catalog .cat-brand { color: #F0EDE6; }
.catalog .cat-name  { color: #999; }
.catalog .catalog-title { color: #F0EDE6; }

/* ══════════════════════════════════════════════════════════════════ */

/* ── ANIMATIONS ── */
.fi {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fi.on { opacity: 1; transform: none; }
.fi.d1 { transition-delay: 0.1s; }
.fi.d2 { transition-delay: 0.2s; }
.fi.d3 { transition-delay: 0.3s; }
.fi.d4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
  /* Por qué — laptop */
  .why-carousel-wrap { margin-top: -30px; }
}

@media (max-width: 900px) {
  .hero-media { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .barbers-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card { flex: 0 0 calc(50% - 9px); }
  .cat-card { flex: 0 0 calc(50% - 7px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .loyalty-grid { grid-template-columns: 1fr; gap: 40px; }
  .loyalty-visual { order: 1; }
  .loyalty-video-wrap { max-width: 100%; }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  /* Por qué — tablet usa la misma imagen de desktop */
  .why-top-img { display: block; }
  .why-carousel-wrap { margin-top: -30px; }
}

@media (max-width: 600px) {
  section { padding: 16px 0; }
  /* Before/After labels en celular */
  .ba-labels { bottom: 8px; padding: 0 8px; }
  .ba-before-label, .ba-after-label { font-size: 10px; padding: 3px 7px; letter-spacing: 0.08em; }
  /* Ocultar imagen Por qué en celular */
  .why-top-img { display: none; }
  .why-carousel-wrap { margin-top: 0; }

  /* Before/After — carrusel con flechas en celular */
  .ba-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
  }
  .ba-arrow-btn {
    width: 44px; height: 44px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .ba-page-info {
    font-family: 'Thomsan', sans-serif;
    font-size: var(--b2);
    letter-spacing: 0.14em;
    color: var(--gray-light);
    min-width: 40px;
    text-align: center;
  }
  .ba-grid { display: block; }
  .ba-item { display: none; }
  .ba-item.ba-active { display: block; }
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }

  /* Servicios — scroll horizontal nativo, 2 a la vez + peek */
  .services-nav { gap: 8px; margin-bottom: 24px; }
  .filter-btn { padding: 9px 14px; font-size: 11px; }
  .svc-arrow { display: none; }
  .svc-grid {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding-right: 20px;
  }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc-card {
    flex: 0 0 calc(46% - 5px);
    scroll-snap-align: start;
    padding: 22px 14px 18px;
    min-width: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
  }
  /* Ocultar badges; estrella sutil en esquina si es popular */
  .svc-badges { display: none; }
  .svc-card:has(.svc-popular)::before {
    content: '★';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
  }
  /* Nombre arriba, precio debajo — todo alineado a la izquierda */
  .svc-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    flex: 1;
  }
  .svc-card h3 { font-size: 20px; line-height: 1.25; text-align: left; }
  .svc-price { font-size: 20px; text-align: left; }
  /* Ocultar duración, Reservar alineado */
  .svc-duration { display: none; }
  .svc-footer { padding-top: 12px; justify-content: flex-start; }
  .svc-reserve { width: 100%; text-align: center; padding: 10px 8px; color: var(--white); border-color: rgba(255,255,255,0.5); }
  .svc-page-nav { display: none !important; }

  /* Barberos */
  .barbers-grid { grid-template-columns: repeat(2, 1fr); }
  .barber-card { padding: 0; }
  .barber-info { padding: 14px 14px 16px; }
  .barber-card h3 { font-size: 20px; }
  .barber-role { font-size: 11px; }
  .barber-rating { font-size: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Por qué — scroll horizontal nativo, 2 a la vez + peek */
  .why-carousel-wrap { gap: 0; }
  .why-arrow { display: none; }
  .why-carousel {
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .why-carousel::-webkit-scrollbar { display: none; }
  .why-track { transition: none; gap: 10px; padding-right: 20px; }
  .why-card {
    flex: 0 0 calc(46% - 5px);
    scroll-snap-align: start;
    padding: 28px 16px;
  }
  .why-card p { display: none; }

  /* Productos — scroll horizontal nativo, 2 a la vez + peek */
  .cat-carousel-wrap { gap: 0; }
  .cat-arrow { display: none; }
  .cat-carousel {
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-carousel::-webkit-scrollbar { display: none; }
  .cat-track { transition: none; gap: 10px; padding-right: 20px; }
  .cat-card {
    flex: 0 0 calc(46% - 5px);
    scroll-snap-align: start;
  }

  /* Loyalty video full width en mobile */
  .loyalty-video-wrap { max-width: 100%; border-radius: 8px; }
  .loyalty-grid { gap: 32px; }

  /* Hero altura en celular — navbar más pequeño */
  .hero { min-height: calc(100vh - 75px); }

  /* Hero texto más pequeño en celular */
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }

}

@media (max-width: 900px) {
  /* Hero altura en tablet */
  .hero { min-height: calc(100vh - 90px); }
}

/* iPhone landscape — evita hero demasiado bajo y carruseles nativos */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .why-carousel { overflow-x: scroll; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .why-carousel::-webkit-scrollbar { display: none; }
  .why-track { transition: none; }
  .why-arrow { display: none; }
  .cat-carousel { overflow-x: scroll; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cat-carousel::-webkit-scrollbar { display: none; }
  .cat-track { transition: none; }
  .cat-arrow { display: none; }
  .svc-grid { display: flex; overflow-x: scroll; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 10px; }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc-arrow { display: none; }
  .svc-page-nav { display: none !important; }
  .svc-card { flex: 0 0 280px; scroll-snap-align: start; }
}
