/* ---------- cierre de la home: cómo trabajamos, prueba social (si hay) y banda final (js/home-close.js) ----------
   Las secciones no crean contexto propio: su fondo queda por debajo del destello 3D (z-index 1) y su contenido
   (z-index 2) por encima, como el resto de la home. */
.hc-wrap {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 96px);
}
.hc-steps :focus-visible,
.hc-close :focus-visible,
.hc-proof :focus-visible { outline: 2px solid #F35411; outline-offset: 3px; }

/* --- cómo trabajamos: una frase que se construye con el scroll, sobre papel (js/home-close.js) ---
   Rejilla de 2 columnas (62 % / 38 %): cada línea de la frase y, en su misma fila, su nota (con un punto naranja
   delante). Las líneas, de .25 a 1 al acercarse al centro; la palabra clave se subraya con un trazo naranja que
   se dibuja (stroke-dashoffset, pathLength = 1). Las notas aparecen todas a la vez y se quedan. */
.hc-steps {
  position: relative;
  padding: clamp(96px, 16vh, 168px) 0;
  background: #f4f2ef;
  color: #0b0909;
}
.hc-how {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 96px) 0 clamp(24px, 8vw, 140px);
}
.hc-how__list { display: grid; gap: clamp(10px, 1.6vh, 18px); margin: 0; padding: 0; list-style: none; }
.hc-how__row {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
}
.hc-how__line {
  margin: 0;
  font: 500 clamp(32px, 4.4vw, 76px) / 1.05 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.js .hc-how__line { opacity: 0.45; } /* apagadas, pero legibles (≥ 3:1, texto grande) */
.hc-how__kw { position: relative; display: inline-block; }
.hc-how__ul {
  position: absolute;
  left: -2%;
  bottom: -0.06em;
  width: 104%;
  height: 0.22em;
  overflow: visible;
  fill: none;
  stroke: #F35411;
  stroke-width: 3px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hc-how__ul path { stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
/* nota: #2a2424 sobre el papel (≈ 13:1); el punto naranja es decorativo (no es texto) */
.hc-how__note {
  position: relative;
  max-width: 34ch;
  margin: 0;
  padding-left: 22px;
  font: 400 clamp(17px, 1.3vw, 21px) / 1.45 var(--font-display);
  color: #2a2424;
  text-wrap: pretty; /* sin una palabra sola en la última línea (BC-B) */
}
.hc-how__note::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(0.725em - 4px); /* centrado en la primera línea */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F35411;
}
.js .hc-how__note { opacity: 0; }
.hc-how__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: clamp(40px, 7vh, 72px);
  font: 500 17px / 1 var(--font-display);
  color: #0b0909;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
}
.hc-how__more b { font-weight: 500; transition: translate 0.25s ease; }
.hc-how__more:hover b { translate: 4px 0; }
@media (max-width: 767px) {
  .hc-how__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hc-how__line { font-size: clamp(28px, 8vw, 40px); }
  .hc-how__note { padding-top: 0; }
  .hc-how__list { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hc-how__line,
  .js .hc-how__note { opacity: 1; }
  .hc-how__ul path { stroke-dashoffset: 0; }
}

/* --- prueba social (solo con datos reales) --- */
.hc-proof { position: relative; padding: clamp(72px, 12vh, 120px) 0; background: #0b0909; color: #f4f2ef; }
.hc-proof__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; margin: 0 0 56px; padding: 0; list-style: none; }
.hc-proof__logos img { display: block; height: 32px; width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.8; }
.hc-proof__quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin: 0; }
.hc-proof__quote { margin: 0; padding-top: 20px; border-top: 1px solid rgb(244 242 239 / 0.14); }
.hc-proof__quote p { margin: 0 0 14px; font: 400 20px / 1.45 var(--font-display); }
.hc-proof__quote cite { font: normal 400 12px / 1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #8a807c; }

/* --- banda final --- */
.hc-close {
  position: relative;
  padding: clamp(96px, 18vh, 200px) 0;
  background: #0b0909;
  color: #f4f2ef;
}
.hc-close__title {
  margin: 0;
  font: 600 clamp(56px, 10vw, 184px) / 0.92 var(--font-display);
  letter-spacing: -0.035em;
}
.hc-close__title em { font-style: normal; color: #F35411; }
.hc-close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: clamp(32px, 5vh, 56px); }
.hc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #F35411;
  color: #0b0909;
  font: 500 16px / 1 var(--font-display);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.hc-btn:hover { background: #ff6a2b; }
.hc-btn b { font-weight: 500; transition: translate 0.25s ease; }
.hc-btn:hover b { translate: 4px 0; }
.hc-mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hc-mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f4f2ef;
  font: 500 clamp(17px, 1.4vw, 20px) / 1.2 var(--font-display);
  text-decoration: underline;
  text-decoration-color: rgb(244 242 239 / 0.35);
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.hc-mail a:hover { text-decoration-color: #f4f2ef; }
.hc-mail__copy {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(244 242 239 / 0.3);
  border-radius: 999px;
  font: 400 12px / 1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hc-mail__copy:hover { border-color: #f4f2ef; }
.hc-mail__ok { font: 400 12px / 1 var(--font-mono); color: #F35411; }

@media (max-width: 767px) {
  .hc-steps__list { grid-template-columns: 1fr; }
}
