/* Barcuslab landing, direction C "colour block": orange + black on warm grey, Archivo. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #ff6a2b;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --paper: #f2f0eb;
  --dark-text: #f2f0eb;
  --dark-muted: #bdbab3;
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.04em; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.section-dark a:focus-visible { outline-color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Orange band: header + hero ---------- */
.site-header { position: relative; z-index: 20; background: var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.nav a { font-weight: 700; text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav .nav-contact { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); background: transparent; position: relative; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 10px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, top .2s; }
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--accent); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 4px 16px 12px; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(17, 17, 17, .25); }
  .nav li:last-child a { border-bottom: 0; }
}
.no-js .nav { display: block; position: static; border: 0; padding: 0; }
.no-js .nav-toggle { display: none; }

.hero { background: var(--accent); padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 9vw, 104px); }
.hero h1 { font-size: clamp(3.2rem, 9.6vw, 8rem); line-height: 0.9; letter-spacing: -0.05em; max-width: 11ch; }
.hero-foot { display: grid; gap: 32px; margin-top: clamp(36px, 6vw, 56px); align-items: end; }
@media (min-width: 860px) { .hero-foot { grid-template-columns: 1fr auto; } }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45; font-weight: 500; max-width: 30em; }
.button {
  display: inline-flex; align-items: center; justify-content: center; justify-self: start;
  min-height: 56px; padding: 0 30px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.button:hover { background: #2b2b2b; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 104px) 0; }
.section h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.95; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }

.rule-list { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.rule-list li { padding: 22px 0; border-top: 2px solid var(--ink); }
.rule-list h3, .case h3 { font-size: clamp(1.4rem, 2.2vw, 1.65rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 6px; }
.rule-list p { color: var(--ink-2); }

.section-dark { background: var(--ink); color: var(--dark-text); }
.section-dark h2 { margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { padding: 24px 0 28px; border-top: 6px solid var(--accent); }
.steps h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { color: var(--dark-muted); }

#soluciones h2 { margin-bottom: 40px; }
.cases { border-bottom: 2px solid var(--ink); }
.case { display: grid; gap: 8px; padding: 24px 0; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .case { grid-template-columns: 1fr 1fr; gap: 24px; } .case h3 { margin: 0; } }
.case p { font-size: 1.0625rem; }

/* ---------- Contact ---------- */
.contact { background: var(--accent); padding: clamp(72px, 11vw, 112px) 0; }
.contact h2 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.92; letter-spacing: -0.05em; max-width: 12ch; margin-bottom: 32px; }
.contact-mail {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-thickness: 5px; }

.site-footer { padding: 24px 0; font-size: 0.9rem; font-weight: 500; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
