/* =========================================================
   Barber Core — landing próximamente
   Identidad: negro #090909 · hueso #F7F5F2 · borgoña #9B1E2D · azul #1F5BB8
   ========================================================= */

:root {
  --ink: #090909;
  --ink-2: #0D0D0D;
  --ink-3: #111111;
  --bone: #F7F5F2;
  --bone-2: #FFFFFF;
  --burgundy: #9B1E2D;
  --burgundy-hi: #B72435;
  --blue: #1F5BB8;
  --blue-hi: #2E6FD6;
  --white: #FFFFFF;

  --txt-dark: rgba(255, 255, 255, .70);
  --txt-dark-strong: rgba(255, 255, 255, .88);
  --txt-light: rgba(9, 9, 9, .78);

  --line-dark: rgba(255, 255, 255, .12);
  --line-dark-soft: rgba(255, 255, 255, .07);
  --line-light: rgba(9, 9, 9, .14);

  --wrap: 1200px;
  --nav-h: 68px;

  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.01em; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.mono {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dim { color: rgba(255, 255, 255, .42); }
.section-light .dim { color: rgba(9, 9, 9, .52); }

.lead {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--txt-dark);
  max-width: 46ch;
}
.section-light .lead { color: var(--txt-light); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  margin-bottom: 1.1rem;
}
.section-light .eyebrow { color: rgba(9, 9, 9, .55); }

.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--burgundy);
  box-shadow: 0 0 0 0 rgba(155, 30, 45, .55);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(155, 30, 45, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(155, 30, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 30, 45, 0); }
}

/* Subrayado borgoña/azul tipo poste */
.hl { position: relative; display: inline-block; }
.hl::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -.14em;
  height: 6px;
  background: linear-gradient(90deg, var(--burgundy) 0 62%, var(--blue) 62% 100%);
}

/* Accesibilidad */
.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: .65rem 1rem;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.section-light :focus-visible { outline-color: var(--blue); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: 0 1.65rem;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), color .2s var(--ease);
}

.btn-accent { background: var(--burgundy); color: var(--white); }
.btn-accent:hover { background: var(--burgundy-hi); transform: translateY(-2px); }
.btn-accent:active { transform: translateY(0); }

.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }

.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Cuadrícula decorativa ---------- */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(120% 90% at 12% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 12% 0%, #000 0%, transparent 72%);
}
.grid-overlay.soft { opacity: .55; }

/* Poste de barbería */
.pole {
  position: absolute;
  top: 0; left: -1.75rem;
  width: 10px;
  height: 100%;
  border-top: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  background-image: repeating-linear-gradient(
    135deg,
    var(--burgundy) 0 9px,
    #141414 9px 18px,
    var(--blue) 18px 27px,
    #141414 27px 36px
  );
  background-size: 100% 51px;
  animation: pole 5.5s linear infinite;
}
@keyframes pole { to { background-position: 0 -51px; } }

/* ---------- Header ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 9, 9, .72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.nav.scrolled { background: rgba(9, 9, 9, .94); border-bottom-color: var(--line-dark); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
}

.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo img { width: auto; height: 30px; }

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  position: relative;
  font-size: .9375rem;
  color: var(--txt-dark);
  padding: .35rem 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--burgundy);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px; height: 1.5px;
  background: var(--white);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-mobile[hidden] { display: none; }

.nav-mobile {
  display: flex;
  flex-direction: column;
  background: rgba(9, 9, 9, .98);
  border-bottom: 1px solid var(--line-dark);
  padding: .5rem 1.25rem 1.25rem;
}
.nav-mobile a {
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--line-dark-soft);
  color: var(--txt-dark-strong);
}
.nav-mobile a:hover { color: var(--white); }
.nav-mobile-cta {
  margin-top: 1rem;
  border: 0 !important;
  background: var(--burgundy);
  color: var(--white) !important;
  text-align: center;
  font-weight: 700;
  padding: .95rem 1rem !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: 5.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

.hero-media {
  position: absolute;
  inset: 0 0 0 30%;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 4%, rgba(9, 9, 9, .92) 26%, rgba(9, 9, 9, .35) 62%, rgba(9, 9, 9, .55) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 34%);
}

.hero-inner { position: relative; z-index: 2; }
.hero-content { position: relative; max-width: 640px; }

.hero-logo { width: clamp(190px, 24vw, 268px); margin-bottom: 1.9rem; }

.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.3rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
  background: rgba(9, 9, 9, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-strip li {
  flex: 1 1 auto;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, .62);
  border-left: 1px solid var(--line-dark-soft);
  text-align: center;
}
.hero-strip li:first-child { border-left: 0; }

/* ---------- Secciones ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  overflow: hidden;
}
.section-light { background: var(--bone); color: var(--ink); }
.section-dark  { background: var(--ink); }
.section-dark + .section-dark { border-top: 1px solid var(--line-dark); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 40ch; }

.section-head.head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}
.head-row > div { max-width: 40ch; }

.head-mark {
  width: clamp(58px, 7vw, 84px);
  flex: none;
  border: 1px solid var(--line-dark);
}

/* ---------- Propuesta de valor ---------- */
.val-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.val-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 2rem 1.6rem 1.9rem;
  background: var(--bone-2);
  border: 1px solid var(--line-light);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.val-card:nth-child(4) { grid-column: 2 / span 2; }
.val-card:nth-child(5) { grid-column: 4 / span 2; }

.val-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 9, 9, .26);
  box-shadow: 0 18px 40px -28px rgba(9, 9, 9, .55);
}

.val-bar {
  position: absolute;
  top: -1px; left: -1px;
  width: 46px; height: 4px;
  background: var(--burgundy);
  transition: width .3s var(--ease);
}
.val-bar.blue { background: var(--blue); }
.val-card:hover .val-bar { width: 82px; }

.val-num { color: rgba(9, 9, 9, .55); font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; }
.val-card h3 { color: var(--ink); }
.val-card p:last-child { color: var(--txt-light); font-size: .9375rem; font-weight: 300; line-height: 1.55; }

/* ---------- Módulos (operación) ---------- */
.mod-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark-soft);
  border: 1px solid var(--line-dark-soft);
}

.mod {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 210px;
  padding: 2rem 1.75rem;
  background: var(--ink);
  transition: background-color .25s var(--ease);
}
.mod:hover { background: var(--ink-3); }

.mod-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: .9rem;
  border: 1px solid var(--line-dark);
  color: var(--white);
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.mod-icon svg { width: 22px; height: 22px; }
.mod:hover .mod-icon { border-color: var(--burgundy); background: rgba(155, 30, 45, .14); }
.mod:nth-child(even):hover .mod-icon { border-color: var(--blue); background: rgba(31, 91, 184, .16); }

.mod p { color: var(--txt-dark); font-size: .9375rem; font-weight: 300; line-height: 1.55; }

/* ---------- Hecho para crecer ---------- */
.grow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.grow-copy h2 { margin-bottom: 1.35rem; }

.metrics {
  display: grid;
  gap: 1.35rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-light);
  padding-top: 2rem;
}
.metric { padding-left: 1.1rem; position: relative; }
.metric-bar {
  position: absolute;
  left: 0; top: .3rem;
  width: 3px; height: 22px;
  background: var(--burgundy);
}
.metric-bar.blue { background: var(--blue); }
.metric h3 { color: var(--ink); margin-bottom: .3rem; }
.metric p { color: var(--txt-light); font-size: .9375rem; font-weight: 300; }

.grow-media {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-light);
  background: var(--ink);
  padding: .5rem;
}
.grow-media::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 70px; height: 4px;
  background: linear-gradient(90deg, var(--burgundy) 0 55%, var(--blue) 55% 100%);
}
.grow-media img { width: 100%; }
.grow-media figcaption {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  padding: .85rem .5rem .35rem;
}

/* ---------- CTA final ---------- */
.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.cta-iso { width: 52px; margin-bottom: 1.6rem; opacity: .92; }
.cta-copy h2 { margin-bottom: 1.3rem; }

.cta-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.75rem;
}
.cta-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--txt-dark);
  font-size: .9375rem;
  font-weight: 300;
}
.cta-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  background: var(--burgundy);
}
.cta-list li:nth-child(even)::before { background: var(--blue); }

/* ---------- Formulario ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}

.field { display: flex; flex-direction: column; gap: .45rem; }
.field-full, .form > button, .form-note, .form-status, .form-ok { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 .9rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-dark);
  color: var(--white);
  font-family: var(--font);
  font-size: .9375rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%),
                    linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select option { background: var(--ink-2); color: var(--white); }

.field input::placeholder { color: rgba(255, 255, 255, .3); }
.field input:hover, .field select:hover { border-color: rgba(255, 255, 255, .26); }
.field input:focus, .field select:focus {
  outline: 2px solid var(--blue-hi);
  outline-offset: 2px;
  border-color: transparent;
  background: rgba(255, 255, 255, .06);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { color: rgba(255, 255, 255, .54); letter-spacing: .1em; line-height: 1.7; }

.form-status { font-size: .875rem; color: var(--txt-dark); }
.form-status.error { color: #FF8896; }

.form-ok {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 1.5rem 0;
  border-left: 3px solid var(--burgundy);
  padding-left: 1.1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-iso { width: 30px; height: 30px; }
.footer-legal { color: rgba(255, 255, 255, .54); margin: 0; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-media { inset: 0 0 0 18%; }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; }

  .hero {
    display: block;
    min-height: 0;
    padding-bottom: 4.5rem;
  }
  .hero-media {
    position: relative;
    inset: auto;
    margin-top: 2.75rem;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line-dark);
  }
  .hero-media img { object-position: 68% 50%; }
  .hero-veil {
    background: linear-gradient(to top, rgba(9, 9, 9, .75) 0%, transparent 55%);
  }
  .hero-content { max-width: none; }
  .hero-strip {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: none;
    backdrop-filter: none;
    margin-top: 2.5rem;
    padding-inline: 1.25rem;
  }
  .hero-strip li {
    text-align: left;
    padding: .85rem 1rem .85rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-dark-soft);
  }

  .pole { display: none; }

  .val-grid { grid-template-columns: repeat(2, 1fr); }
  .val-card,
  .val-card:nth-child(4),
  .val-card:nth-child(5) { grid-column: auto; }

  .mod-grid { grid-template-columns: repeat(2, 1fr); }

  .grow-grid, .cta-grid { grid-template-columns: 1fr; }
  .grow-media { order: -1; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }

  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero { padding-bottom: 3.5rem; }
  .hero-actions .btn { width: 100%; }
  .hero-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line-dark);
    padding-inline: 1rem;
  }
  .hero-strip li { border-left: 0; border-bottom: 1px solid var(--line-dark-soft); padding-left: 0; }

  .val-grid { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: 1fr; }
  .mod { min-height: 0; }
  .form { grid-template-columns: 1fr; }
  .watermark { right: -4rem; opacity: .035; }
}

/* ---------- Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero-media, .grid-overlay, .pole, .watermark { display: none !important; }
  body { background: #fff; color: #000; }
}
