/* Treya · marketing digital y diseño
   Paleta tomada de sus redes: verde de marca, lima de la pera, negro, papel de libreta y plumón rojo. */
:root {
  --green: #00BF62;
  --green-d: #00994F;
  --lime: #B5D63A;
  --lime-l: #D4EC7A;
  --ink: #111111;
  --ink-2: #0A0A0A;
  --paper: #F1F0EA;
  --paper-2: #E6E5DE;
  --white: #FFFFFF;
  --red: #D7262E;
  --muted: #55554F;
  --line: rgba(17, 17, 17, .14);
  --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Caveat', 'Segoe Print', cursive;
  --f-mono: 'Courier Prime', ui-monospace, 'Courier New', monospace;
  --wrap: 1180px;
  --r: 18px;
  --shadow: 5px 5px 0 var(--ink);
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.55;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* sin animación, cada elemento queda en su estado final */
  .hl::before { transform: rotate(-1.5deg) scaleX(1) !important; }
  .nb-list path { stroke-dashoffset: 0 !important; }
  .strike::after { transform: rotate(-4deg) scaleX(1) !important; }
}

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.hand { font-family: var(--f-hand); font-weight: 700; line-height: 1; }
.red { color: var(--red); }
.lime { color: var(--lime); }
.green { color: var(--green-d); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 800; font-size: 16px; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 20px; height: 20px; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-green { background: var(--green); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { box-shadow: 4px 4px 0 var(--green); }
.btn-line { background: transparent; color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; padding: 4px 10px; border: 1.5px solid currentColor; border-radius: 999px; opacity: .85; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(16px, (100% - var(--wrap)) / 2);
  background: rgba(241, 240, 234, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 0 var(--ink); }
.brand img { width: 112px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 15.5px; }
.site-nav a:not(.btn) { text-decoration: none; position: relative; padding: 6px 0; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span:nth-child(1) { top: 13px; } .nav-toggle span:nth-child(2) { top: 20px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 56px 0 84px;
  background:
    radial-gradient(circle at 85% 20%, rgba(181, 214, 58, .45), transparent 42%),
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(17, 17, 17, .055) 35px 36px),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; background: var(--white); border: 1.5px solid var(--ink); padding: 7px 14px; border-radius: 999px; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 191, 98, .2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0, 191, 98, 0); } }
.hero h1 {
  margin-top: 22px; font-size: clamp(46px, 7.4vw, 92px); font-weight: 900; font-stretch: 78%;
  letter-spacing: -.015em; line-height: .92;
}
.hl { position: relative; display: inline-block; z-index: 0; }
.hl::before { content: ""; position: absolute; left: -6px; right: -8px; bottom: .04em; height: .5em; background: var(--green); border-radius: 6px 14px 8px 12px; transform: rotate(-1.5deg) scaleX(0); transform-origin: left; z-index: -1; animation: swipe .7s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes swipe { to { transform: rotate(-1.5deg) scaleX(1); } }
.hero-note { font-size: 34px; color: var(--red); margin: 8px 0 0 min(30%, 220px); transform: rotate(-4deg); }
.lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; color: #2b2b28; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { margin-top: 36px; }
.trust-label { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--muted); }
.trust ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-weight: 800; font-stretch: 85%; font-size: 17px; color: #2b2b28; }
.trust li { padding: 5px 14px; border-radius: 999px; background: var(--white); border: 1.5px solid rgba(17, 17, 17, .25); }

.hero-art { position: relative; height: 560px; }
.sticker {
  position: absolute; left: 2%; top: 0; z-index: 3; width: 150px; height: 150px; border-radius: 50%;
  background: var(--lime); border: 2.5px solid var(--ink); box-shadow: var(--shadow);
  display: grid; place-content: center; justify-items: center; gap: 2px; transform: rotate(-12deg);
  animation: bob 5s ease-in-out infinite;
}
.sticker img { width: 104px; }
.sticker span { font-family: var(--f-hand); font-weight: 700; font-size: 22px; line-height: .85; text-align: center; }
@keyframes bob { 50% { transform: rotate(-8deg) translateY(-8px); } }
.hero-post { position: absolute; right: 0; top: 18px; width: 58%; margin: 0; transform: rotate(6deg); border: 2.5px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--green); }
.notebook {
  position: absolute; left: 6%; bottom: 0; z-index: 2; width: min(380px, 78%);
  padding: 26px 26px 22px 58px; border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-3deg);
  background:
    linear-gradient(to right, transparent 40px, rgba(215, 38, 46, .55) 40px 42px, transparent 42px),
    repeating-linear-gradient(to bottom, var(--white) 0 33px, #c9d6e6 33px 34px);
}
.notebook::before { content: ""; position: absolute; left: 13px; top: 30px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); box-shadow: 0 90px 0 var(--ink), 0 180px 0 var(--ink); }
.nb-title { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 40px; line-height: .9; }
.nb-title .hand { text-transform: none; font-size: 44px; display: inline-block; transform: rotate(-4deg); margin-top: 2px; }
.nb-list { margin-top: 14px; border-top: 2px solid var(--ink); }
.nb-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; font-size: 17px; padding: 9px 0; border-bottom: 2px solid var(--ink); }
.nb-list svg { width: 30px; height: 30px; flex: none; fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.nb-list .no svg { stroke: var(--red); }
.nb-list .yes svg { stroke: var(--green); }
.nb-list path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s ease forwards; }
.nb-list li:nth-child(1) path { animation-delay: .9s; } .nb-list li:nth-child(2) path { animation-delay: 1.2s; }
.nb-list li:nth-child(3) path { animation-delay: 1.5s; } .nb-list li:nth-child(4) path { animation-delay: 1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.nb-foot { font-size: 30px; margin-top: 12px; transform: rotate(-2deg); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--lime); overflow: hidden; border-block: 2.5px solid var(--ink); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 0; animation: marquee 32s linear infinite; }
.marquee span { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); letter-spacing: .01em; white-space: nowrap; }
.marquee i { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--green); transform: rotate(-45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
section { position: relative; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head h2, .contact h2 { font-size: clamp(36px, 5vw, 62px); font-weight: 900; font-stretch: 78%; letter-spacing: -.01em; line-height: .95; }
.sec-head > p:last-child { margin-top: 16px; font-size: 18.5px; color: var(--muted); max-width: 600px; }
.kicker { display: inline-block; font-family: var(--f-mono); text-transform: uppercase; font-size: 13.5px; letter-spacing: .04em; margin-bottom: 14px; padding: 5px 12px; background: var(--lime); border: 1.5px solid var(--ink); border-radius: 999px; }
.kicker-light { border-color: var(--lime); }

/* manifiesto */
.manifesto { padding: 96px 0; }
.big { font-size: clamp(40px, 7vw, 96px); font-weight: 900; font-stretch: 75%; line-height: .95; text-align: center; letter-spacing: -.015em; }
.strike { text-decoration: none; position: relative; color: #8a8a83; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em; background: var(--red); border-radius: 99px; transform: rotate(-4deg) scaleX(0); transform-origin: left; transition: transform .6s .3s cubic-bezier(.6, 0, .2, 1); }
.big.in .strike::after, html:not(.js) .strike::after { transform: rotate(-4deg) scaleX(1); }
.versus { display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 22px; align-items: center; margin-top: 64px; }
.vs-card { border-radius: var(--r); padding: 30px; border: 2.5px solid var(--ink); }
.vs-old { background: var(--paper-2); border-style: dashed; color: #4a4a45; }
.vs-new { background: var(--green); box-shadow: 8px 8px 0 var(--ink); }
.vs-tag { font-family: var(--f-mono); text-transform: uppercase; font-size: 13px; }
.vs-card h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; font-stretch: 80%; margin: 8px 0 18px; }
.vs-card li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; font-weight: 600; font-size: 18px; border-bottom: 1.5px solid rgba(17, 17, 17, .15); }
.vs-old li::before { content: "✗"; color: var(--red); font-weight: 900; }
.vs-new li::before { content: "✓"; color: var(--ink); font-weight: 900; }
.vs-foot { margin-top: 18px; font-weight: 800; }
.vs-arrow { font-size: 34px; color: var(--red); text-align: center; transform: rotate(-6deg); }

/* servicios */
.services { padding: 96px 0; background: var(--white); border-block: 2.5px solid var(--ink); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 2.5px solid var(--ink); border-radius: var(--r); background: var(--paper); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.svc:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); background: var(--lime); }
.svc-n { font-family: var(--f-mono); font-size: 15px; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--lime); }
.svc h3 { font-size: 27px; font-weight: 900; font-stretch: 82%; line-height: 1; }
.svc p { color: #33332f; }
.svc .tags { margin-top: auto; padding-top: 6px; }
.svc-feature { background: var(--ink); color: var(--white); }
.svc-feature p { color: #d8d8d2; }
.svc-feature .svc-n { background: var(--green); color: var(--ink); }
.svc-feature .btn { margin-top: auto; align-self: flex-start; background: var(--lime); color: var(--ink); border-color: var(--lime); }
.svc-feature:hover { background: var(--ink); box-shadow: 6px 6px 0 var(--green); }

/* casos */
.cases { padding: 96px 0; background: var(--ink); color: var(--white); }
.cases .sec-head > p:last-child { color: #bdbdb6; }
.cases .kicker { border-color: var(--lime); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.case { margin: 0; background: var(--paper); color: var(--ink); border-radius: var(--r); overflow: hidden; border: 2.5px solid var(--paper); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.case:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--green); }
.case-img { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--paper-2); aspect-ratio: 4 / 3; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform .4s ease; }
.case-img:hover img { transform: scale(1.05); }
.case-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.stars { color: #F2B705; letter-spacing: 3px; font-size: 18px; }
.case blockquote { margin: 0; font-size: 16.5px; line-height: 1.5; }
.case figcaption strong { display: block; font-weight: 900; font-stretch: 85%; font-size: 19px; }
.case figcaption span { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; color: var(--muted); }
.case .tags { color: var(--green-d); }

/* portafolio */
.work { padding: 96px 0; }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s ease; }
.chip:hover { background: var(--lime-l); }
.chip.is-on { background: var(--ink); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery li { transition: opacity .25s ease, transform .25s ease; }
.gallery li.is-hidden { display: none; }
.gallery button { position: relative; display: block; width: 100%; padding: 0; border: 2.5px solid var(--ink); border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--paper-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .45s ease; }
.gallery span { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 14.5px; text-align: left; transform: translateY(140%); transition: transform .25s ease; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); }
.gallery button:hover span, .gallery button:focus-visible span { transform: none; }
.work-more { margin-top: 30px; text-align: center; }
.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--green); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* proceso */
.process { padding: 96px 0; background: var(--white); border-block: 2.5px solid var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; border-top: 3px dashed var(--ink); opacity: .35; }
.step { position: relative; }
.step-n { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--ink); font-weight: 900; font-size: 26px; font-stretch: 80%; box-shadow: 4px 4px 0 var(--ink); }
.step h3 { margin: 20px 0 8px; font-size: 26px; font-weight: 900; font-stretch: 82%; }
.step p { color: var(--muted); }

/* para quién */
.fit { background: var(--green); padding: 84px 0; border-bottom: 2.5px solid var(--ink); }
.fit-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.fit-quote { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; font-stretch: 78%; line-height: 1; letter-spacing: -.01em; }
.fit-quote .u { background: linear-gradient(transparent 62%, var(--white) 62% 92%, transparent 92%); padding: 0 4px; }
.fit-list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 2px solid rgba(17, 17, 17, .25); font-weight: 700; font-size: 18px; }
.fit-list li::before { content: "→"; font-weight: 900; }

/* diagnóstico */
.diag { padding: 96px 0; }
.diag-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.diag-card { display: grid; grid-template-columns: 1.15fr .85fr; border: 2.5px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 var(--ink); background: var(--white); }
.diag-list { padding: 18px 22px; background: repeating-linear-gradient(to bottom, var(--white) 0 55px, #dfe7f1 55px 56px) 0 18px; }
.diag-item { position: relative; display: flex; gap: 14px; align-items: center; min-height: 56px; cursor: pointer; font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.diag-item input { position: absolute; left: 0; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.diag-item .box { flex: none; width: 28px; height: 28px; border: 2.5px solid var(--ink); border-radius: 6px; background: var(--white); position: relative; transition: background .15s ease; }
.diag-item .box::after { content: ""; position: absolute; left: 7px; top: 1px; width: 8px; height: 16px; border: solid var(--ink); border-width: 0 4px 4px 0; transform: rotate(45deg) scale(0); transition: transform .18s cubic-bezier(.5, 1.8, .5, 1); }
.diag-item input:checked + .box { background: var(--green); }
.diag-item input:checked + .box::after { transform: rotate(45deg) scale(1); }
.diag-item input:focus-visible + .box { outline: 3px solid var(--green); outline-offset: 3px; }
.diag-result { background: var(--ink); color: var(--white); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.meter { height: 14px; border-radius: 99px; background: #2c2c2a; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width .4s cubic-bezier(.5, 0, .2, 1), background .3s ease; }
.diag-score strong { font-size: 28px; font-weight: 900; font-stretch: 80%; line-height: 1; display: block; }
#diag-text { color: #cfcfc8; }
#diag-recs { color: var(--lime); }
#diag-cta { margin-top: auto; align-self: flex-start; border-color: var(--green); }

/* contacto */
.contact { padding: 96px 0; background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact h2 .hand { font-size: 1.05em; display: inline-block; transform: rotate(-3deg); margin-top: 6px; }
.contact-copy > p { margin-top: 18px; color: #c9c9c2; font-size: 18px; max-width: 460px; }
.channels { margin-top: 30px; display: grid; gap: 12px; }
.channels a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 2px solid #3a3a37; border-radius: 14px; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.channels a:hover { border-color: var(--green); background: #1a1a18; }
.channels svg { width: 30px; height: 30px; color: var(--green); flex: none; }
.channels strong { display: block; font-size: 17px; }
.channels span { color: #bdbdb6; font-size: 15px; }
.contact-form { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 30px; border: 2.5px solid var(--paper); box-shadow: 8px 8px 0 var(--green); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 800; font-size: 14.5px; padding: 0; }
.field input:not([type=checkbox]), .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 191, 98, .2); }
.field input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 46, .15); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pick label { cursor: pointer; position: relative; }
.pick input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 700; font-size: 14.5px; transition: background .15s ease; }
.pick input:checked + span { background: var(--green); }
.pick input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.form-note { font-size: 14px; color: var(--muted); }
.send { display: flex; flex-wrap: wrap; gap: 10px; }
.form-error { color: var(--red); font-weight: 700; }

/* footer */
.site-footer { background: var(--ink-2); color: var(--white); padding: 56px 0 28px; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.footer-grid img { width: 190px; }
.footer-tag { font-size: 28px; color: var(--lime); margin-top: 12px; }
.site-footer nav { display: grid; gap: 8px; font-weight: 600; }
.site-footer nav a { text-decoration: none; color: #cfcfc8; }
.site-footer nav a:hover { color: var(--lime); }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #3a3a37; transition: border-color .2s ease, color .2s ease; }
.social a:hover { border-color: var(--green); color: var(--green); }
.social svg { width: 22px; height: 22px; }
.copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid #262624; color: #8d8d86; font-size: 14px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, .92); display: grid; place-items: center; padding: 24px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: 84vh; max-height: 84dvh; width: auto; border-radius: 12px; }
.lightbox figcaption { color: var(--white); font-weight: 700; text-align: center; }
.lb-close, .lb-nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #555; background: rgba(17, 17, 17, .8); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { border-color: var(--green); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 95; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 14px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 700; transition: transform .3s cubic-bezier(.5, 1.6, .5, 1), visibility .3s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* reveal (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .diag-grid { grid-template-columns: 1fr; }
  .diag-grid .sec-head { margin-bottom: 0; }
}
@media (max-width: 960px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { height: 520px; max-width: 560px; width: 100%; margin-inline: auto; }
  .versus { grid-template-columns: 1fr; }
  .vs-arrow { justify-self: center; }
  .vs-arrow br { display: none; }
  .vs-dir { display: inline-block; transform: rotate(90deg); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .fit-inner, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--head-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2.5px solid var(--ink); padding: 8px 16px 18px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 14px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .svc-grid, .case-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery span { transform: none; font-size: 13px; padding: 6px 10px; left: 6px; right: 6px; bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .diag-card { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .manifesto, .services, .cases, .work, .process, .diag, .contact { padding: 72px 0; }
  .lightbox { padding: 16px; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); }
  .lightbox img { max-height: 74vh; max-height: 74dvh; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-note { font-size: 28px; margin-left: 30%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .eb-extra { display: none; }
  .hero-art { height: 500px; }
  .sticker { width: 112px; height: 112px; left: 0; }
  .sticker img { width: 78px; }
  .sticker span { font-size: 18px; }
  .hero-post { width: 62%; }
  .notebook { width: 88%; left: 2%; padding: 20px 18px 18px 50px; }
  .notebook::before { left: 11px; }
  .nb-title { font-size: 32px; } .nb-title .hand { font-size: 36px; }
  .nb-list li { font-size: 14.5px; }
  .nb-foot { font-size: 25px; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .send .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Powered by Duxels: badge al final del pie (siempre lo último de la página), enlaza a duxels.com */
footer:has(> .dx-powered){padding-bottom:0}
.dx-powered{box-sizing:border-box;width:100%;align-self:stretch;justify-self:stretch;margin:0;padding:24px 20px calc(28px + env(safe-area-inset-bottom));text-align:center;font-size:15px;line-height:1.2;letter-spacing:.03em;border-top:1px solid color-mix(in srgb,currentColor 16%,transparent)}
.dx-powered a{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none;opacity:.9;transition:opacity .2s ease,transform .2s ease}
.dx-powered a:hover,.dx-powered a:focus-visible{opacity:1;transform:translateY(-2px)}
.dx-powered a img{display:block;width:30px;height:30px;max-width:none;margin:0}
.dx-powered b{font-size:19px;font-weight:800;letter-spacing:.02em}
