/* ZBL Soluciones: shared styles (tokens, type, header, buttons, footer) */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #111318;
  --bg: #f4f4f1;
  --surface: #fff;
  --line: #dededa;
  --muted: #55585e;
  --hl: #ffe14a;
  --error: #a3261b;
  --pad: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}

* { box-sizing: border-box; }
@view-transition { navigation: auto; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--font); }
::selection { background: var(--hl); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; font-weight: 800; letter-spacing: -0.035em; }
p { margin: 0; }
img, svg { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* The logo arrow, blinking at the end of a headline */
.cursor { display: inline-block; width: 0.6em; height: 0.74em; margin-left: 0.14em; vertical-align: -0.02em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Marker highlight, used on whole lines */
.hl { background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.15em; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.top .logo { display: inline-flex; align-items: center; min-height: 44px; }
.top .logo img { width: 136px; height: auto; display: block; }
.top .cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; background: var(--hl); border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
@media (min-width: 768px) { .top .logo img { width: 164px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; background: var(--hl); color: var(--ink); font: 700 18px var(--font); text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform 150ms ease-out, box-shadow 150ms ease-out; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (max-width: 480px) { .btn { width: 100%; } }

/* Mobile: the form button stays on screen (js/form.js hides it over the hero button, the form and the footer) */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta { display: flex; position: fixed; z-index: 5; left: var(--pad); right: var(--pad); bottom: calc(14px + env(safe-area-inset-bottom)); width: auto; transition: transform 220ms ease-out, opacity 220ms ease-out, box-shadow 150ms ease-out; }
  .sticky-cta.off { transform: translateY(calc(100% + 24px)); opacity: 0; transition-duration: 160ms; }
}

/* "Type your problem" card (home hero, 404): hard offset shadow, like the buttons */
.quick { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 2px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); }
.quick label { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.quick textarea { width: 100%; min-height: 150px; resize: vertical; font: 400 19px/1.45 var(--font); color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; }
.quick textarea::placeholder { color: var(--muted); }
.quick textarea:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--hl); }
.quick .btn { justify-self: end; }
@media (max-width: 480px) { .quick { box-shadow: 5px 5px 0 var(--ink); margin-right: 5px; } }
@media (min-width: 960px) { .quick { padding: 26px; } }

/* Sections */
section { padding-block: 72px; border-top: 2px solid var(--ink); }
@media (min-width: 960px) { section { padding-block: 104px; } }
/* Dark section: breaks the rhythm once (pricing) */
.dark { background: var(--ink); color: #f2f2ee; border-top: 0; }
.dark + section { border-top: 0; }
.dark :focus-visible { outline-color: #fff; }
.t { font-size: clamp(34px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.045em; }
.sub { margin-top: 14px; color: var(--muted); max-width: 44ch; font-size: 19px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 960px) { .cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }

/* Footer */
.foot { background: var(--ink); color: #f2f2ee; padding-block: 56px calc(36px + env(safe-area-inset-bottom)); }
.foot .wrap { display: grid; gap: 28px; }
.foot .big { font-size: clamp(32px, 5vw, 64px); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; max-width: 16ch; text-wrap: balance; }
.foot .bar { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; border-top: 1px solid #3a3d44; padding-top: 20px; }
.foot img { width: 146px; height: auto; display: block; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot a, .foot small { min-height: 44px; display: inline-flex; align-items: center; color: #d5d7db; font-size: 15px; }
.foot :focus-visible { outline-color: #fff; }

/* Landscape phones: smaller headlines */
@media (orientation: landscape) and (max-height: 500px) {
  .top { padding-block: 8px; }
  .t { font-size: 34px; }
  section { padding-block: 56px; }
}

@media (hover: hover) {
  .btn:hover, .top .cta:hover { background: #ffe86f; }
  .foot a:hover { text-decoration-thickness: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
