:root {
  --ink: #0a0a0a;
  --ink-2: #111111;
  --paper: #f6f6f4;
  --white: #ffffff;
  --signal: #e30613;
  --signal-soft: #ff1f2e;
  --text: #141414;
  --muted: #5c5c5c;
  --muted-inv: #b3b3b3;
  --line: rgba(20, 20, 20, 0.1);
  --line-inv: rgba(255, 255, 255, 0.12);
  --shell: min(1080px, calc(100% - 3rem));
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: 5rem;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--signal);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header + mega submenu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: cover;
  border-radius: 8px;
}

.brand__word {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand__word span {
  color: var(--signal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav > a,
.nav__trigger {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0.45rem 0.15rem;
  cursor: pointer;
}

.nav > a:hover,
.nav > a.is-active,
.nav__trigger:hover {
  color: var(--ink);
}

.nav > a.nav__cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.25);
}

.nav > a.nav__cta:hover,
.nav > a.nav__cta.is-active {
  background: #c10510;
  color: #fff;
}

.nav__item {
  position: relative;
}

.nav__item.has-sub.is-active .nav__trigger,
.nav__item.has-sub:hover .nav__trigger {
  color: var(--ink);
}

.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Bridge + panel: hover no se pierde al bajar al submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 2rem));
  padding-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), visibility 0.18s var(--ease);
  z-index: 70;
}

.submenu__panel {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.nav__item:hover .submenu,
.nav__item:focus-within .submenu,
.nav__item.is-open .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.submenu a {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
}

.submenu a:hover,
.submenu a.is-active {
  background: var(--paper);
}

.submenu strong {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
}

.submenu span {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
}

/* Hero home */
.hero {
  position: relative;
  min-height: min(78svh, 680px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero__glow {
  position: absolute;
  inset: auto auto -20% -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.35), transparent 68%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 38rem;
}

.hero__tag {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e8e8e8;
}

.hero__tag i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
}

.hero h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--signal-soft);
}

.hero__lead {
  margin: 1.15rem 0 0;
  color: #cfcfcf;
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

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

.btn--primary {
  background: var(--signal);
  color: #fff;
}

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

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
}

.btn--ghost-dark {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

/* Sections */
.section {
  padding: var(--space-6) 0;
}

.section--paper {
  background: var(--paper);
}

.section--ink {
  background: var(--ink);
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--signal);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__head {
  max-width: 36rem;
  margin-bottom: var(--space-4);
}

.section__head h2,
.page-hero h1,
.panel h2 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.section__head h2,
.panel h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.section__head p,
.panel > p,
.page-hero p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
}

.section--ink .section__head p {
  color: var(--muted-inv);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}

.bento a {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.2s ease, box-shadow 0.25s ease;
}

.bento a:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 6, 19, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.bento a:nth-child(1) {
  grid-column: span 7;
  background:
    linear-gradient(145deg, rgba(227, 6, 19, 0.07), transparent 55%),
    var(--white);
}

.bento a:nth-child(2) {
  grid-column: span 5;
}

.bento__n {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--signal);
}

.bento h3 {
  margin: 1.35rem 0 0.45rem;
  font-family: var(--font);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.bento p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.bento__go {
  margin-top: 1.35rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

/* Method strip */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.flow li {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-inv);
}

.flow span {
  display: block;
  color: var(--signal);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.flow strong {
  display: block;
  font-family: var(--font);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.flow p {
  margin: 0;
  color: var(--muted-inv);
  line-height: 1.5;
}

/* Page hero + board frame (aligned, no crop) */
.page-hero {
  padding: 3.75rem 0 1.5rem;
  background: var(--paper);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  max-width: 16ch;
}

.board {
  margin: 0;
  padding: 0 0 var(--space-5);
  background: var(--paper);
}

.board__frame {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: #0c0c0c;
  border: 0;
  box-shadow: none;
}

.board__frame img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin-inline: auto;
  border-radius: 0;
  background: #050505;
}

.board--hero {
  margin: 0;
  padding: 0;
  background: #050505;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board--hero .board__frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050505;
}

.board--hero .board__frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050505;
}

.solution-page {
  --chrome-h: 4.5rem;
  background: var(--paper);
}

.solution-stage {
  height: calc(100svh - var(--chrome-h));
  max-height: calc(100dvh - var(--chrome-h));
  display: flex;
  flex-direction: column;
  background: #050505;
}

.solution-bar {
  flex: 0 0 auto;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  min-height: 2.75rem;
  box-sizing: border-box;
}

.solution-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 2.75rem;
  flex-wrap: nowrap;
  padding: 0.35rem 0;
  overflow: hidden;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}

.crumb a {
  color: var(--ink);
  font-weight: 600;
}

.crumb a:hover {
  color: var(--signal);
}

.solution-bar__next {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--signal);
}

.solution-bar__next:hover {
  color: #c10510;
}

.solution-follow {
  padding: var(--space-5) 0 var(--space-6);
  background: var(--paper);
}

.solution-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.solution-links a {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}

.solution-links a:hover {
  border-color: rgba(227, 6, 19, 0.35);
  transform: translateY(-2px);
}

.solution-links strong {
  font-family: var(--font);
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.solution-links span {
  font-size: 0.88rem;
  color: var(--muted);
}

.panel {
  padding: var(--space-5) 0 var(--space-6);
}

.panel--split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  line-height: 1.5;
  color: var(--muted);
}

.steps strong {
  display: block;
  font-family: var(--font);
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.chips {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chips li {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
}

.case {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.case__body {
  padding: 2rem 1.85rem;
}

.case__body h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.case__body p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.case__meta {
  list-style: none;
  margin: 0;
  padding: 1.6rem;
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 1rem;
  align-content: center;
}

.case__meta span {
  display: block;
  color: #ff7a82;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-page {
  min-height: calc(100svh - 4.4rem);
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(227, 6, 19, 0.18), transparent 55%),
    var(--ink);
  color: #fff;
  padding: 4rem 0 5rem;
}

.contact-page h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.contact-page .lead {
  margin: 1rem 0 0;
  color: #cfcfcf;
  max-width: 32ch;
  font-size: 1.08rem;
}

.contact__mail {
  margin-top: 1.5rem;
}

.contact__mail a {
  color: #fff;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid var(--signal);
}

.contact__form {
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.contact__form label {
  display: grid;
  gap: 0.35rem;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #f7f7f5;
  color: #141414;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: #888;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: 2px solid rgba(227, 6, 19, 0.35);
  outline-offset: 1px;
  background: #fff;
}

.form-note {
  margin: 0;
  color: #0f7a3a;
  font-weight: 600;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 3.25rem 0 1.75rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-inv);
}

.site-footer .brand__word {
  color: #fff;
}

.site-footer__brand p,
.site-footer a,
.site-footer__bottom p {
  color: var(--muted-inv);
}

.site-footer__brand p {
  margin: 0.55rem 0 0;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  padding-top: 1.1rem;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.cta-band h3 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .bento a,
  .bento a:nth-child(1),
  .bento a:nth-child(2) {
    grid-column: span 6;
  }

  .flow,
  .panel--split,
  .case,
  .contact,
  .site-footer__grid,
  .solution-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .nav > a,
  .nav__trigger {
    width: 100%;
    text-align: left;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .submenu {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0 0 0.5rem;
    display: none;
  }

  .submenu__panel {
    box-shadow: none;
    border: 0;
    background: var(--paper);
    border-radius: 12px;
  }

  .nav__item.is-open .submenu {
    display: block;
  }

  .nav__item:hover .submenu {
    display: none;
  }

  .nav__item.is-open:hover .submenu,
  .nav__item.is-open .submenu {
    display: block;
  }

  .bento a,
  .bento a:nth-child(1),
  .bento a:nth-child(2),
  .solution-links {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }

  .flow,
  .panel--split,
  .case,
  .contact,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-top: 4.5rem;
    padding-bottom: 3.25rem;
  }

  .board__frame {
    padding: 0;
    border-radius: 0;
  }

  .board__frame img {
    border-radius: 0;
  }

  .page-hero {
    padding: 3rem 0 1.15rem;
  }

  .solution-bar__inner {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .solution-bar__next {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .crumb {
    font-size: 0.85rem;
    min-width: 0;
  }

  .crumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12rem;
  }
}
