/* Inicio. Lenguaje: Poppins pesado, esquinas rectas, bordes negros con sombra sólida desplazada,
   etiquetas negras, acento azul, secciones blancas / arena / negras alternadas. */
.h-dark { --d-bg: #0a0a0a; --d-ink: #ffffff; --d-muted: #a1a1a1; --d-line: #2a2a2a; background: var(--d-bg); color: var(--d-ink); position: relative; overflow: hidden; }
body.home .site-header { background: rgba(10,10,10,.86); border-bottom: 0; }
body.home .site-header .logo, body.home .menu > li > a, body.home .menu > li > button.sub-toggle { color: #fff; }
body.home .menu > li > a:hover, body.home .menu > li > button.sub-toggle:hover { background: #1f1f1f; }
body.home .menu a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
body.home .burger { color: #fff; border-color: #333; }
body.home .nav > .btn-primary { background: #fff; color: #0a0a0a; }
body.home .nav > .btn-primary:hover { background: var(--accent); color: #fff; }
@media (max-width: 960px) { body.home .menu { background: #0a0a0a; border-color: #2a2a2a; } body.home .menu > li { border-color: #2a2a2a; } body.home .submenu a { color: #fff; } body.home .submenu small { color: #a1a1a1; } }

/* Etiqueta negra de sección */
.tag { display: inline-block; background: var(--ink); color: #fff; font: 600 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; margin-bottom: 22px; }
.h-dark .tag { background: #fff; color: #0a0a0a; }

/* Hero */
.h-hero { padding: 96px 0 88px; }
.h-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.h-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.68) 50%, rgba(10,10,10,.25) 100%); z-index: 0; pointer-events: none; }
.h-hero .wrap { position: relative; z-index: 1; }
.h-badge { display: inline-flex; align-items: center; gap: 10px; background: #e2703a; color: #0a0a0a; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; }
.h-badge::before { content: ""; width: 7px; height: 7px; background: #0a0a0a; }
.h-hero h1 { font-size: clamp(38px, 5vw, 68px); max-width: 17ch; margin-top: 28px; line-height: 1.14; padding-bottom: 4px; letter-spacing: -0.045em; font-weight: 700; }
.hl { background: var(--accent); color: #fff; padding: 0 .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.h-hero p.sub { color: rgba(255,255,255,.86); font-size: 18px; max-width: 52ch; margin-top: 28px; }
.h-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.h-dark .btn-primary { background: #fff; color: #0a0a0a; }
.h-dark .btn-primary:hover { background: var(--accent); color: #fff; }
.h-dark .btn-ghost { border-color: #fff; color: #fff; }
.h-dark .btn-ghost:hover { background: #fff; color: #0a0a0a; }
.h-box { margin-top: 56px; border: 1px solid #3a3a3a; background: rgba(10,10,10,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 920px; }
.h-box > p { padding: 24px 28px; color: rgba(255,255,255,.86); font-size: 16px; border-bottom: 1px solid #3a3a3a; }
.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-stats div { padding: 22px 24px; }
.h-stats div + div { border-left: 1px solid #3a3a3a; }
.h-stats b { display: block; font: 700 22px/1.15 var(--display); letter-spacing: -0.03em; }
.h-stats span { display: block; margin-top: 6px; color: var(--d-muted); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }

/* Carrusel de plataformas */
.h-marquee { border-bottom: 1.5px solid var(--ink); padding: 28px 0; overflow: hidden; background: #fff; }
.h-marquee .track { display: flex; gap: 72px; width: max-content; align-items: center; color: #5f5f5f; }
.h-marquee .item { display: inline-flex; align-items: center; gap: 12px; font: 600 18px/1 var(--display); white-space: nowrap; }
.h-marquee svg { width: 26px; height: 26px; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) { .h-marquee .track { animation: marq 40s linear infinite; } .h-marquee:hover .track { animation-play-state: paused; } }
@keyframes marq { to { transform: translateX(-50%); } }

/* Secciones con fondo */
.sand { background: var(--surface); }
.h-sec-dark { padding: 104px 0; }
.h-sec-dark .section-title { color: #fff; }
.h-sec-dark .section-lead { color: var(--d-muted); }

/* Bloques con borde negro y sombra sólida */
.hard { border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: #fff; }

/* Lo que te frena */
.h-pain { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; }
.h-pain article { padding: 30px 32px; border-bottom: 1.5px solid var(--ink); transition: background .2s; }
.h-pain article:nth-child(odd) { border-right: 1.5px solid var(--ink); }
.h-pain article:nth-last-child(-n+2) { border-bottom: 0; }
.h-pain article:hover { background: var(--surface); }
.h-pain .n { font: 600 13px/1 var(--body); color: var(--accent); letter-spacing: .06em; }
.h-pain h3 { font-size: 22px; margin: 12px 0 8px; letter-spacing: -0.03em; }
.h-pain p { color: var(--muted); font-size: 15.5px; }

/* Fundador */
.h-founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.h-founder-img { width: 100%; height: 540px; object-fit: cover; object-position: 42% center; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: block; }
.h-founder h2 { font-size: clamp(32px, 4vw, 52px); max-width: 14ch; letter-spacing: -0.045em; }
.h-founder p { color: var(--muted); font-size: 17.5px; max-width: 54ch; margin-top: 20px; }
.h-founder .sign { margin-top: 28px; color: var(--ink); }
.h-founder .sign b { display: block; font: 700 21px/1.2 var(--display); }

/* Servicios */
.h-svc { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.h-svc > div { padding: 32px; display: flex; flex-direction: column; }
.h-svc > div + div { border-left: 1.5px solid var(--ink); }
.h-svc .grp { font: 600 12.5px/1 var(--body); color: var(--accent); letter-spacing: .06em; }
.h-svc h3 { font-size: 26px; margin: 12px 0 18px; letter-spacing: -0.035em; }
.h-svc ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 4px; }
.h-svc li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; text-decoration: none; font-weight: 600; font-size: 16px; }
.h-svc li a .ico { opacity: 0; transition: opacity .2s, transform .2s; }
.h-svc li a:hover { color: var(--accent); }
.h-svc li a:hover .ico { opacity: 1; transform: translateX(3px); }
.h-svc .go { margin-top: auto; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

/* Resultados */
.h-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.h-case { padding: 30px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.h-case b { font: 700 clamp(44px, 4.6vw, 64px)/1 var(--display); color: #c9c4bb; letter-spacing: -0.05em; }
.h-case span { color: var(--muted); font-size: 15px; }

/* Método */
.h-method { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.h-method div { padding: 30px 28px; }
.h-method div + div { border-left: 1.5px solid var(--ink); }
.h-method .n { font: 700 54px/1 var(--display); letter-spacing: -0.05em; color: var(--accent); }
.h-method h3 { font-size: 22px; margin: 18px 0 8px; letter-spacing: -0.03em; }
.h-method p { color: var(--muted); font-size: 15.5px; }

/* Testimonio (oscuro) */
.h-quote blockquote { margin: 0; max-width: 30ch; font: 600 clamp(26px, 3.2vw, 42px)/1.25 var(--display); letter-spacing: -0.035em; }
.h-quote blockquote .todo { font-size: .55em; vertical-align: middle; }
.h-quote figcaption { margin-top: 28px; display: flex; gap: 14px; align-items: center; color: var(--d-muted); }
.h-quote figcaption .av { width: 48px; height: 48px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.h-quote figcaption b { color: #fff; }

/* FAQ con estilo duro */
.home .faq details { border-radius: 0; border: 1.5px solid var(--ink); background: #fff; }
.home .faq details[open] { box-shadow: 5px 5px 0 var(--ink); }

/* CTA final */
.h-final { padding: 112px 0; }
.h-final .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.h-final h2 { font-size: clamp(38px, 5.4vw, 72px); max-width: 13ch; letter-spacing: -0.05em; line-height: 1.08; }
.h-final p { color: rgba(255,255,255,.8); font-size: 17.5px; margin-bottom: 26px; max-width: 42ch; }
.h-final canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }

@media (max-width: 900px) {
  .h-stats { grid-template-columns: 1fr 1fr; }
  .h-stats div:nth-child(3) { border-left: 0; }
  .h-stats div:nth-child(n+3) { border-top: 1px solid #3a3a3a; }
  .h-pain, .h-svc, .h-cases, .h-method { grid-template-columns: 1fr; }
  .h-pain article:nth-child(odd) { border-right: 0; }
  .h-pain article:nth-last-child(2) { border-bottom: 1.5px solid var(--ink); }
  .h-svc > div + div, .h-method div + div { border-left: 0; border-top: 1.5px solid var(--ink); }
  .h-founder, .h-final .wrap { grid-template-columns: 1fr; gap: 40px; }
  .h-founder-img { height: 380px; }
}
@media (max-width: 560px) {
  .h-hero { padding-top: 60px; }
  .h-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .h-stats { grid-template-columns: 1fr; }
  .h-stats div + div { border-left: 0; border-top: 1px solid #3a3a3a; }
}

.svc-img { display: block; height: auto; width: calc(100% + 64px); max-width: none; margin: -32px -32px 24px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1.5px solid var(--ink); filter: saturate(.9); transition: filter .3s; }
.h-svc > div:hover .svc-img { filter: saturate(1.1); }
