/* 4DJ Asesores — legal pages. Original design; palette taken from the 2026 logo. */

:root {
  --ink: #18200c;
  --ink-2: #3d4632;
  --muted: #6a735f;
  --line: #e3e8d8;
  --line-soft: #eef1e6;
  --paper: #ffffff;
  --paper-2: #f7f9f1;

  --g-950: #141c05;
  --g-900: #1e2a07;
  --g-800: #30420c;
  --g-700: #3f5715;
  --g-600: #4e6619;
  --g-500: #6f8a30;
  --g-400: #8fab45;
  --g-300: #b3cc68;
  --lime: #d4ea7a;
  --mint: #e9f2cf;
  --teal: #2f7a69;

  --radius: 14px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
:root { color-scheme: light; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--g-700); text-decoration-color: color-mix(in srgb, var(--g-500) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--g-800); text-decoration-color: var(--g-500); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--g-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* Vertical guide lines that frame the content column */
.guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.guides::before, .guides::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.guides::before { left: max(var(--gutter), calc(50% - var(--max) / 2 + var(--gutter))); }
.guides::after { right: max(var(--gutter), calc(50% - var(--max) / 2 + var(--gutter))); }
.dark .guides::before, .dark .guides::after { background: linear-gradient(to bottom, transparent, rgba(255,255,255,.08) 15%, rgba(255,255,255,.08) 85%, transparent); }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--g-600), var(--g-400), var(--lime)); z-index: 60; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(24, 32, 12, .35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--line-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--g-800); background: var(--mint); }
.nav .btn { margin-left: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font-body);
  padding: 12px 18px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease-out), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--g-800); color: #fff; box-shadow: 0 8px 20px -10px rgba(48, 66, 12, .7); }
.btn-primary:hover { background: var(--g-900); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--g-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--g-300); color: var(--g-900); }
.nav .btn { padding: 9px 14px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero .wrap { z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; min-height: min(78vh, 680px); padding-top: 56px; padding-bottom: 72px; }
.hero-copy { position: relative; z-index: 2; padding-left: clamp(0px, 2vw, 24px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 14px -10px rgba(24, 32, 12, .4);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g-500), var(--lime)); color: var(--g-900); font-size: 12px; font-weight: 700; }
.hero h1 {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.035em;
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.06; margin: 22px 0 22px;
}
.hero h1 .tone {
  background: linear-gradient(100deg, var(--g-600) 0%, var(--g-500) 40%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 36em; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; align-self: stretch; min-height: 380px; }
.ribbon { position: absolute; inset: -22% -70% -22% -30%; width: auto; height: auto; }
.ribbon svg { width: 100%; height: 100%; overflow: visible; }
.hero-fade { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 34%, rgba(255,255,255,0) 58%); }

/* Facts row */
.facts { border-bottom: 1px solid var(--line-soft); background: linear-gradient(to bottom, #fff, var(--paper-2)); position: relative; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 1; }
.fact { padding: 40px 28px 44px; border-left: 1px solid var(--line); position: relative; }
.fact:first-child { border-left: 0; }
.fact .big { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; color: var(--ink); }
.fact .big em { font-style: normal; background: linear-gradient(100deg, var(--g-600), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.fact::before { content: ""; position: absolute; top: -1px; left: 28px; width: 40px; height: 2px; background: linear-gradient(90deg, var(--g-500), var(--lime)); border-radius: 2px; }

/* Dark explainer */
.dark { background: radial-gradient(1200px 500px at 80% 0%, #2a3a0b 0%, transparent 60%), var(--g-950); color: #e9eedf; position: relative; overflow: hidden; }
.dark .wrap { padding-top: 96px; padding-bottom: 104px; z-index: 1; }
.dark h2 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.025em; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; max-width: 22em; margin: 0; color: #fff; }
.dark h2 span { color: #a7b393; }
.waves { position: absolute; left: 0; right: 0; top: 34%; height: 46%; opacity: .9; z-index: 0; pointer-events: none; }
.waves svg { width: 100%; height: 100%; }
.flow { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 234, 122, .55), transparent); }
.step { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius);
  padding: 20px 18px 22px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .3s, transform .3s var(--ease-out); }
.step:hover { border-color: rgba(212, 234, 122, .4); transform: translateY(-3px); }
.step .icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--g-500), var(--lime)); color: var(--g-950); }
.step .icon svg { width: 17px; height: 17px; }
.step b { display: block; color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #b6bfa7; }
.step .tag { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; font-weight: 600; }

/* Document */
.doc { position: relative; background: #fff; }
.doc .wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-top: 80px; padding-bottom: 96px; z-index: 1; }
.toc { position: sticky; top: 96px; align-self: start; padding-left: clamp(0px, 1.5vw, 20px); }
.toc h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--g-800); border-left-color: var(--g-500); font-weight: 600; }

.article { max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.article .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.article .meta strong { color: var(--ink); font-weight: 600; }
.article .intro { font-size: 18.5px; color: var(--ink); line-height: 1.7; }
.article section { scroll-margin-top: 96px; padding-top: 40px; }
.article h2 { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.25; color: var(--ink); margin: 0 0 14px; }
.article h2 .n { flex: none; font: 600 13px/1 var(--font-body); color: var(--g-800); background: var(--mint); border: 1px solid #d5e4a8; border-radius: 999px; padding: 6px 9px; transform: translateY(-3px); }
.article h3 { font-family: var(--font-head); font-size: 18.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 26px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul { margin: 0 0 16px; padding-left: 1.2em; }
.article li { margin: 6px 0; }
.article li::marker { color: var(--g-500); }
.article strong { color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-weight: 600; color: var(--ink); background: var(--paper-2); }

.pend { background: #fff3c4; color: #5a4300; border-radius: 4px; padding: 1px 6px; font-size: .92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pend::before { content: "Pendiente · "; font-weight: 600; }

/* Contact card */
.contact {
  margin-top: 56px; position: relative; border-radius: 20px; padding: 32px; overflow: hidden; isolation: isolate;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--g-500), var(--lime), var(--teal)) border-box;
  border: 1.5px solid transparent;
}
.contact::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(212, 234, 122, .45), transparent 65%); }
.contact h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.contact p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact small { color: var(--muted); font-size: 14px; }

/* Hub cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: block; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(30, 42, 7, .45); border-color: var(--g-300); color: var(--ink); }
.card .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--g-600); font-weight: 600; }
.card h3 { font-family: var(--font-head); font-size: 22px; letter-spacing: -.02em; margin: 10px 0 8px; line-height: 1.25; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.card .go { font-weight: 600; color: var(--g-700); font-size: 15px; }
.card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 204, 104, .35), transparent 65%); transition: transform .5s var(--ease-out); }
.card:hover::after { transform: scale(1.35); }

/* Footer */
.site-footer { background: var(--g-950); color: #b6bfa7; font-size: 14px; position: relative; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; gap: 32px; z-index: 1; }
.site-footer img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 4px 0 12px; font-weight: 600; }
.site-footer a { color: #dfe7cc; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #8a957a; font-size: 13px; }

/* Draft badge */
.draft-badge { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: inline-flex; align-items: center; gap: 8px;
  background: var(--g-900); color: #eef4dc; font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.draft-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 234, 122, .25); }

/* Motion */
.reveal { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
/* Only elements below the first screen are hidden, and only once JS has run */
.reveal.will-reveal { opacity: 0; transform: translateY(18px); }
.reveal.will-reveal.is-in { opacity: 1; transform: none; }
.hero .enter { animation: enter .8s var(--ease-out) both; }
.hero .enter:nth-child(2) { animation-delay: .08s; }
.hero .enter:nth-child(3) { animation-delay: .16s; }
.hero .enter:nth-child(4) { animation-delay: .24s; }
.hero-art { animation: fade 1.4s var(--ease-out) both; }
@keyframes fade { from { opacity: .4; } }
@keyframes enter { from { opacity: .3; transform: translateY(16px); } to { opacity: 1; transform: none; } }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .enter, .hero-art { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .btn, .card, .step, .card::after { transition: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow::before { display: none; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 48px; }
  .hero-art { position: absolute; inset: 0; z-index: 0; opacity: .35; animation: none; }
  .hero-fade { background: linear-gradient(180deg, rgba(255,255,255,.5), #fff 75%); }
  .ribbon { inset: -10% -60% 20% 10%; }
  .doc .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .toc { position: static; padding-left: 0; }
  .toc details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--paper-2); }
  .toc .toc-sum { cursor: pointer; pointer-events: auto; }
  .toc .toc-sum h2 { margin: 0; }
  .toc ol { margin-top: 12px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact { border-left: 0 !important; border-top: 1px solid var(--line); padding: 28px 8px; }
  .fact:first-child { border-top: 0; }
  .fact::before { left: 8px; }
  .article { font-size: 16.5px; }
  .contact { padding: 24px; }
  .brand img { height: 32px; }
  .nav .btn { display: none; }
  .guides { display: none; }
}

@media print {
  .site-header, .progress, .hero-art, .hero-fade, .dark, .facts, .draft-badge, .toc, .contact .row { display: none !important; }
  .doc .wrap { display: block; padding: 0; }
  .article { max-width: none; font-size: 12pt; }
}

/* Skip link */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fff; color: var(--g-800); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.skip:focus { left: 16px; }

/* TOC summary acts as a plain heading on desktop */
.toc .toc-sum { list-style: none; pointer-events: none; }
.toc .toc-sum::-webkit-details-marker { display: none; }
.flow { list-style: none; padding: 0; margin-bottom: 0; }
.hero-compact .wrap { min-height: min(62vh, 560px); }

/* Ribbon fades into the copy with a mask instead of an overlay */
.hero-fade { display: none; }
.ribbon { -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 34%); mask-image: linear-gradient(90deg, transparent 4%, #000 34%); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--g-800); }
.nav a.btn-primary:hover { background: var(--g-900); }
@media (max-width: 860px) {
  .hero-art { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); opacity: .28; }
}

/* ---------------------------------------------------------------------------------------
   v0.2: guide lines sit outside the content so cards never touch them
   --------------------------------------------------------------------------------------- */
:root { --guide-gap: clamp(20px, 3vw, 40px); }
.guides::before { left: max(6px, calc(50% - var(--max) / 2 + var(--gutter) - var(--guide-gap))); }
.guides::after { right: max(6px, calc(50% - var(--max) / 2 + var(--gutter) - var(--guide-gap))); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 48px; gap: 40px 48px; }
.site-footer .legal { padding-top: 24px; padding-bottom: 8px; }
.draft-badge { left: auto; right: 16px; }

/* Section scaffolding */
.sec { position: relative; padding: clamp(72px, 9vw, 112px) 0; }
.sec .wrap { z-index: 1; }
.sec.tint { background: linear-gradient(to bottom, var(--paper-2), #fff); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g-600); margin-bottom: 14px; }
.sec-head h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.03em; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; margin: 0; color: var(--ink); }
.sec-head h2 span { color: var(--muted); font-weight: 500; }
.sec-head p { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; }
.note { display: inline-block; margin-top: 14px; font-size: 13.5px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc { position: relative; padding: 26px 24px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px 220px at 100% 0%, rgba(212, 234, 122, .35), transparent 60%); }
.svc:hover { transform: translateY(-4px); border-color: var(--g-300); box-shadow: 0 28px 50px -34px rgba(30, 42, 7, .55); }
.svc:hover::before { opacity: 1; }
.svc .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; color: #fff;
  background: linear-gradient(135deg, var(--g-800), var(--g-500)); box-shadow: 0 10px 22px -12px rgba(48, 66, 12, .8); }
.svc .icon svg { width: 22px; height: 22px; }
.svc h3 { font-family: var(--font-head); font-size: 19px; letter-spacing: -.015em; margin: 0 0 8px; color: var(--ink); }
.svc p { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.svc li { position: relative; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.svc li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 2px; border-radius: 2px; background: var(--g-500); }
.more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more b { font-size: 14px; color: var(--ink); margin-right: 6px; }
.chip { font-size: 13.5px; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* How we work (dark) */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; position: relative; }
.how .step b { font-size: 16px; }
.how-out { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.out { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(212, 234, 122, .35); color: #dfe7cc; font-size: 14.5px; }
.out i { font-style: normal; width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 234, 122, .16); color: var(--lime); font-size: 13px; font-weight: 700; }
.values { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; }
.values span { font-size: 13.5px; color: #d9e2c6; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); padding: 7px 13px; border-radius: 999px; }
.lema { margin: 28px 0 0; font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 26px); color: #fff; letter-spacing: -.02em; }
.lema em { font-style: normal; color: var(--lime); }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.person { position: relative; }
.person figure { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--mint), #fff 55%, var(--line-soft)); border: 1px solid var(--line); }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(.35) contrast(1.02);
  transform: scale(1.02); transition: filter .5s, transform .8s var(--ease-out); }
.person figure::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 28, 5, .35), transparent 38%); }
.person:hover img { filter: none; transform: scale(1.06); }
.person h3 { font-family: var(--font-head); font-size: 18px; letter-spacing: -.015em; margin: 16px 0 2px; color: var(--ink); }
.person .role { font-size: 14px; font-weight: 600; color: var(--g-600); }
.person p { font-size: 14.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }

/* Clients marquee */
.marquee { position: relative; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
.logo-tile { flex: none; width: 184px; height: 92px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 14px 18px; }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logo-tile:hover img { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(calc(-50% - 8px)); } }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(32px, 5vw, 56px); color: #fff; isolation: isolate;
  background: radial-gradient(600px 300px at 90% 0%, rgba(212, 234, 122, .35), transparent 60%), linear-gradient(135deg, var(--g-900), var(--g-700)); }
.cta h2 { font-family: var(--font-head); font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.03em; margin: 0 0 10px; line-height: 1.15; }
.cta p { margin: 0 0 24px; color: #dbe4c8; font-size: 17px; max-width: 34em; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta .btn-light { background: var(--lime); color: var(--g-950); }
.cta .btn-light:hover { background: #e2f29a; color: var(--g-950); }

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .track [aria-hidden="true"] { display: none; }
  .svc, .person img { transition: none; }
}
@media (max-width: 1000px) {
  .services, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how, .how-out { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services, .team { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .person p { display: none; }
  .logo-tile { width: 150px; height: 78px; }
}
.person img { transform-origin: 50% 18%; transform: scale(var(--zoom, 1.02)); }
.person:hover img { transform: scale(calc(var(--zoom, 1.02) + .04)); }

/* Logo tiles: flex + fixed caps so every logo fits its tile */
.logo-tile { display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
.logo-tile img { width: auto; height: auto; max-width: 140px; max-height: 52px; }
@media (max-width: 560px) { .logo-tile img { max-width: 112px; max-height: 44px; } }

/* Team: full descriptions from Foli; on phones photo beside the text */
.person p { font-size: 14px; }
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; gap: 24px; }
  .person { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .person figure { grid-row: 1 / span 3; }
  .person h3 { margin-top: 2px; }
  .person p { display: block; grid-column: 1 / -1; margin-top: 12px; }
}

/* ---------------------------------------------------------------------------------------
   v0.3 palette: brand green only for logo, actions and highlights (Figma guidance);
   slate neutrals for text, surfaces and dark bands; amber as a sparing second accent.
   --------------------------------------------------------------------------------------- */
:root {
  --ink: #1b2327;
  --ink-2: #3c474c;
  --muted: #66727a;
  --line: #e3e7e8;
  --line-soft: #eef1f2;
  --paper-2: #f6f7f7;
  --slate-950: #121a1e;
  --slate-900: #1a252a;
  --slate-800: #26343a;
  --amber: #e0a72e;
  --amber-soft: #fbf1d9;
  --forest: #2e6f40;
}

/* Dark bands in slate with a green glow instead of all-green */
.dark { background: radial-gradient(900px 420px at 85% 0%, rgba(78, 102, 25, .45), transparent 62%), radial-gradient(600px 300px at 0% 100%, rgba(46, 111, 64, .25), transparent 60%), var(--slate-950); color: #e6ebed; }
.dark h2 span { color: #9aa7ad; }
.step { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
.step p { color: #aab5ba; }
.step .tag { color: var(--amber); }
.step .icon { background: linear-gradient(135deg, var(--g-500), var(--lime)); }
.out { color: #dde3e6; border-color: rgba(224, 167, 46, .35); }
.out i { background: rgba(224, 167, 46, .15); color: var(--amber); }
.values span { color: #cfd7da; border-color: rgba(255,255,255,.1); }
.lema em { color: var(--amber); }
.flow::before { background: linear-gradient(90deg, transparent, rgba(224, 167, 46, .5), transparent); }

/* Footer in slate */
.site-footer { background: var(--slate-950); color: #a9b4b9; }
.site-footer a { color: #dfe5e7; }
.site-footer a:hover { color: var(--lime); }
.site-footer .legal { color: #7f8b90; }
.draft-badge { background: var(--slate-900); color: #eef2f3; }

/* Neutral chips and tints; green stays for actions */
.nav a[aria-current="page"] { background: var(--line-soft); color: var(--g-800); }
.chip { background: #fff; }
.article h2 .n { background: var(--line-soft); border-color: var(--line); color: var(--g-700); }
.sec.tint { background: linear-gradient(to bottom, var(--paper-2), #fff); }
.facts { background: linear-gradient(to bottom, #fff, var(--paper-2)); }
.fact::before { background: linear-gradient(90deg, var(--amber), #f3cf73); }
.fact .big em, .hero h1 .tone { background: linear-gradient(100deg, var(--g-600) 0%, var(--forest) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow .dot { background: linear-gradient(135deg, var(--amber), #f3cf73); color: var(--slate-950); }
.kicker { color: var(--forest); }
.person .role { color: var(--forest); }
.person figure { background: linear-gradient(160deg, var(--line-soft), #fff 55%); }
.contact { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--g-500), var(--amber)) border-box; }
.contact::after { background: radial-gradient(circle, rgba(224, 167, 46, .22), transparent 65%); }
.card::after, .svc::before { background: radial-gradient(420px 220px at 100% 0%, rgba(224, 167, 46, .16), transparent 60%); }
.cta { background: radial-gradient(600px 300px at 90% 0%, rgba(224, 167, 46, .28), transparent 60%), linear-gradient(135deg, var(--g-900), var(--g-700)); }
.cta .btn-light { background: #fff; color: var(--g-900); }
.cta .btn-light:hover { background: var(--amber-soft); color: var(--g-900); }
.progress { background: linear-gradient(90deg, var(--g-600), var(--g-400), var(--amber)); }
.toc a.is-active { border-left-color: var(--amber); color: var(--ink); }
.contact small { line-height: 1.6; }
.site-footer li { line-height: 1.55; }
@media (min-width: 861px) { .site-footer .wrap { grid-template-columns: 1.1fr .8fr 1.1fr 1.5fr; } }

/* =======================================================================================
   v0.4 home: visual-first (bento with UI mockups, news carousel, team bios on demand)
   ======================================================================================= */

/* Shared mockup chrome */
.mock { font-family: var(--font-body); color: var(--ink); }
.mwin, .mcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -28px rgba(18, 26, 30, .45); overflow: hidden; }
.mbar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.mbar i { width: 7px; height: 7px; border-radius: 50%; background: #d5dadc; }
.mbar span { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.mbody { padding: 14px 16px 16px; }
.mkpi small { display: block; font-size: 10.5px; color: var(--muted); }
.mkpi b { font-family: var(--font-head); font-size: 28px; letter-spacing: -.03em; }
.mkpi em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }
.mbars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: 10px 0 12px; }
.mbars span { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: linear-gradient(to top, var(--g-700), var(--g-400)); transform-origin: bottom; }
.mbars span:last-child { background: linear-gradient(to top, #c98a12, var(--amber)); }
.mrow { display: flex; justify-content: space-between; font-size: 11.5px; padding: 6px 0; border-top: 1px solid var(--line-soft); color: var(--ink-2); }
.mrow .ok { color: var(--forest); font-weight: 600; }
.mcal { list-style: none; margin: 0; padding: 6px 12px 10px; }
.mcal li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; }
.mcal li:last-child { border-bottom: 0; }
.mcal b { font-weight: 600; }
.mcal span { color: var(--muted); font-size: 10.5px; }
.st { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #e3f1e6; color: var(--forest); transition: background .4s, color .4s; }
.st.is-pending { background: var(--amber-soft); color: #8a5a00; }
.mcard { padding: 14px 16px; }
.mhead { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.mav { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--g-600), var(--forest)); }
.mhead b { display: block; font-size: 13px; }
.mhead small { font-size: 11px; color: var(--forest); font-weight: 600; }
.mprog { margin-top: 10px; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.mprog span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g-500), var(--amber)); transform-origin: left; }
.mock-niif .mcard small { font-size: 11px; color: var(--muted); font-weight: 600; }
.donut { width: 120px; height: 120px; display: block; margin: 8px auto 6px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut .d0 { stroke: var(--line-soft); }
.donut .d1 { stroke: var(--g-600); stroke-dasharray: 276.5; stroke-dashoffset: 110; }
.donut .d2 { stroke: var(--amber); stroke-dasharray: 276.5; stroke-dashoffset: 210; transform: rotate(216deg); transform-origin: 60px 60px; }
.mleg { display: flex; justify-content: center; gap: 10px; font-size: 10.5px; color: var(--muted); }
.mleg span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.mleg .l1::before { background: var(--g-600); } .mleg .l2::before { background: var(--amber); } .mleg .l3::before { background: var(--line); }

/* Hero v2: floating mockups over the ribbon */
.hero-v2 h1 { font-size: clamp(36px, 5.4vw, 64px); }
.hero-stack { position: absolute; inset: 0; display: grid; place-items: center; }
.float { position: absolute; width: min(330px, 78%); }
.float.f1 { top: 12%; right: 4%; }
.float.f2 { bottom: 8%; left: 10%; width: min(260px, 62%); }
.float.f1 { animation: bob 7s ease-in-out infinite; }
.float.f2 { animation: bob 8s ease-in-out -3s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* News carousel */
.sec-news { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); }
.carousel { position: relative; border-radius: 24px; overflow: hidden; background: radial-gradient(700px 320px at 85% 0%, rgba(78, 102, 25, .55), transparent 60%), radial-gradient(500px 260px at 100% 100%, rgba(224, 167, 46, .22), transparent 60%), var(--slate-950); color: #fff; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: clamp(28px, 4vw, 52px); opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-out), visibility 0s linear .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease-out); }
.slide .kicker { color: var(--amber); }
.slide h3 { font-family: var(--font-head); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; }
.slide p { color: #c3ccd0; font-size: 17px; margin: 0 0 22px; max-width: 30em; }
.slide .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.slide .btn-ghost:hover { border-color: #fff; color: #fff; }
.slide-art { min-height: 220px; display: grid; place-items: center; }
.slide.is-active .slide-art > * { animation: rise .9s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.car-nav { position: absolute; left: clamp(28px, 4vw, 52px); bottom: 18px; display: flex; align-items: center; gap: 10px; }
.car-nav > button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.car-nav > button:hover { border-color: #fff; }
.dots { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.3); cursor: pointer; transition: width .3s, background .3s; }
.dot.is-active { width: 26px; background: var(--amber); }
.sv-policy .doc { width: 210px; background: #fff; color: var(--ink); border-radius: 14px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); display: grid; gap: 8px; position: relative; }
.sv-policy .doc b { font-family: var(--font-head); font-size: 15px; }
.sv-policy .doc i { display: block; height: 7px; border-radius: 4px; background: var(--line-soft); }
.sv-policy .doc i.s { width: 60%; }
.sv-policy .doc em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--forest); background: #e3f1e6; justify-self: start; padding: 3px 9px; border-radius: 99px; margin-top: 4px; }
.sv-policy .seal { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--amber); color: var(--slate-950); box-shadow: 0 8px 20px -8px rgba(224, 167, 46, .8); }
.sv-team .faces { display: flex; }
.sv-team img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--slate-950); margin-left: -18px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.sv-team img:first-child { margin-left: 0; }
.sv-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sv-flow span { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: 14px; font-weight: 600; }
.sv-flow span.hl { background: var(--g-600); border-color: var(--g-500); }
.sv-flow i { width: 18px; height: 2px; background: var(--amber); border-radius: 2px; }
.sv-map { width: 260px; height: 180px; border-radius: 16px; position: relative; background-color: #1f2c31;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(35deg, transparent 46%, rgba(224, 167, 46, .5) 47%, rgba(224, 167, 46, .5) 50%, transparent 51%);
  background-size: 26px 26px, 26px 26px, 100% 100%; border: 1px solid rgba(255,255,255,.12); }
.sv-map .pin { position: absolute; left: 54%; top: 42%; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--amber); box-shadow: 0 0 0 8px rgba(224, 167, 46, .2); }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bento-card { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #fff; min-height: 360px; display: flex; flex-direction: column; isolation: isolate; transition: transform .35s var(--ease-out), box-shadow .35s; }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -38px rgba(18, 26, 30, .5); }
.b-conta { grid-column: span 4; } .b-imp { grid-column: span 2; } .b-nom { grid-column: span 2; } .b-niif { grid-column: span 4; }
.bento-text { padding: 24px 64px 0 24px; }
.bento-text h3 { font-family: var(--font-head); font-size: 21px; letter-spacing: -.02em; margin: 0 0 4px; color: var(--ink); }
.bento-text p { margin: 0; color: var(--muted); font-size: 15px; }
.bento-open { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--g-800); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.bento-open svg { width: 16px; height: 16px; }
.bento-open:hover { background: var(--g-800); color: #fff; transform: scale(1.06); }
.bento-art { flex: 1; position: relative; display: grid; place-items: center; padding: 22px; margin-top: 14px; z-index: -1; }
.bento-art::before { content: ""; position: absolute; inset: 30% -10% -20% 10%; border-radius: 40%; filter: blur(30px); opacity: .55; z-index: -1; }
.b-conta .bento-art::before { background: linear-gradient(120deg, var(--g-400), var(--amber)); }
.b-imp .bento-art::before { background: linear-gradient(120deg, var(--forest), var(--g-300)); }
.b-nom .bento-art::before { background: linear-gradient(120deg, var(--amber), var(--g-400)); }
.b-niif .bento-art::before { background: linear-gradient(120deg, var(--g-600), #7fb8a0); }
.bento-art .mock { width: min(100%, 380px); }
.b-imp .bento-art .mock, .b-nom .bento-art .mock { width: min(100%, 280px); }

/* Service dialog */
.svc-dialog { border: 0; padding: 0; border-radius: 22px; width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow: auto; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); color: var(--ink); background: #fff; }
.svc-dialog::backdrop { background: rgba(18, 26, 30, .55); backdrop-filter: blur(4px); }
.svc-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); animation: pop .35s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg-art { background: linear-gradient(150deg, var(--mint), var(--amber-soft)); display: grid; place-items: center; padding: 28px; }
.dlg-art .mock { width: 100%; max-width: 300px; }
.dlg-body { padding: 32px 28px; }
.dlg-body h3 { font-family: var(--font-head); font-size: 24px; letter-spacing: -.02em; margin: 0 0 8px; }
.dlg-body p { color: var(--ink-2); margin: 0 0 14px; }
.dlg-body ul { margin: 0 0 22px; padding-left: 1.1em; color: var(--ink-2); }
.dlg-body li { margin: 5px 0; }
.dlg-body li::marker { color: var(--g-500); }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }

/* Team v2: photo cards, bio on demand */
.team2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.p-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--line-soft); text-align: left; font: inherit; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform-origin: 50% 18%; transform: scale(var(--zoom, 1.02)); transition: transform .8s var(--ease-out), filter .5s; }
.p-bio { position: absolute; inset: 0; padding: 18px; display: flex; align-items: flex-end; color: #fff; font-size: 13.5px; line-height: 1.5;
  background: linear-gradient(to top, rgba(18, 26, 30, .95) 0%, rgba(18, 26, 30, .85) 60%, rgba(18, 26, 30, .4) 100%); opacity: 0; transition: opacity .35s; overflow: auto; }
.p-hint { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(18, 26, 30, .55); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; transition: opacity .3s; }
.p-photo:hover .p-bio, .p-photo:focus-visible .p-bio, .p-photo[aria-expanded="true"] .p-bio { opacity: 1; }
.p-photo:hover .p-hint, .p-photo:focus-visible .p-hint, .p-photo[aria-expanded="true"] .p-hint { opacity: 0; }
.p-photo:hover img { transform: scale(calc(var(--zoom, 1.02) + .04)); }
.person2 h3 { font-family: var(--font-head); font-size: 18px; letter-spacing: -.015em; margin: 14px 0 2px; color: var(--ink); }
.person2 .role { font-size: 14px; font-weight: 600; color: var(--forest); }

@media (prefers-reduced-motion: reduce) {
  .float, .slide.is-active .slide-art > *, .svc-dialog[open] { animation: none !important; }
  .slide { transition: none !important; }
}
@media (max-width: 1000px) {
  .b-conta, .b-niif { grid-column: span 6; } .b-imp, .b-nom { grid-column: span 3; }
  .team2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-v2 .hero-art { position: relative; inset: auto; min-height: 340px; opacity: 1; margin-top: 8px; -webkit-mask-image: none; mask-image: none; }
  .hero-v2 .ribbon { opacity: .35; }
  .float.f1 { top: 0; right: 0; } .float.f2 { bottom: 0; left: 0; }
  .slide { grid-template-columns: 1fr; padding-bottom: 72px; }
  .slide-art { min-height: 170px; order: -1; }
  .svc-dialog[open] { grid-template-columns: 1fr; }
  .dlg-art { padding: 22px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .b-conta, .b-niif, .b-imp, .b-nom { grid-column: auto; }
  .bento-card { min-height: 320px; }
  .team2 { gap: 14px; }
  .p-bio { font-size: 12px; padding: 12px; }
  .sv-team img { width: 64px; height: 64px; }
}
.slide { padding-bottom: 84px; }

/* v0.5 carousel: no cross-fade overlap, richer illustrations */
.slide { transition: opacity .3s ease, visibility 0s linear .3s; }
.slide.is-active { transition: opacity .6s var(--ease-out) .3s, visibility 0s; }
.slide.is-active .slide-art > * { animation-delay: .3s; }
.sv-map2 { position: relative; width: 100%; max-width: 440px; }
.sv-map2 svg { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.mp-card { position: absolute; right: -10px; bottom: -14px; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); display: grid; gap: 2px; font-size: 12.5px; }
.mp-card b { font-family: var(--font-head); font-size: 14px; }
.mp-card span { color: var(--muted); }
.mp-pulse { transform-origin: center; animation: mp-pulse 2.2s ease-out infinite; }
@keyframes mp-pulse { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.4); opacity: 0; } }
.mp-route { animation: mp-route 1.6s linear infinite; }
@keyframes mp-route { to { stroke-dashoffset: -28; } }
.sv-int { width: 100%; max-width: 480px; }
.sv-int svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .mp-pulse, .mp-route { animation: none; } }
@media (max-width: 560px) { .mp-card { right: 6px; bottom: 6px; padding: 9px 11px; font-size: 11px; } }
@media (min-width: 861px) { .slide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.sv-int { max-width: 540px; }
.sv-map2 { max-width: 460px; }
.mp-pulse { transform-box: fill-box; transform-origin: center; }

/* Bio overlay: column flex + auto margin keeps short bios at the bottom and long ones fully readable */
.p-bio { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px; font-size: 12.5px; line-height: 1.45; overscroll-behavior: contain; }
.p-bio-t { margin-top: auto; }
@media (max-width: 1000px) { .p-bio { font-size: 13px; } }
@media (max-width: 560px) { .p-bio { font-size: 11.5px; padding: 12px; } }

/* Bio popover: never clipped; grows below the photo when the text is longer than the photo */
.p-photo { overflow: visible; border: 0; background: transparent; z-index: 1; }
.p-img { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--line-soft); }
.p-bio { position: absolute; inset: 0 0 auto 0; min-height: 100%; height: auto; overflow: visible; border-radius: 18px; z-index: 3;
  background: linear-gradient(to top, rgba(18, 26, 30, .97) 0%, rgba(18, 26, 30, .9) 70%, rgba(18, 26, 30, .55) 100%);
  pointer-events: none; }
.p-hint { z-index: 2; }
.p-photo:hover, .p-photo:focus-visible, .p-photo[aria-expanded="true"] { z-index: 6; }
.p-photo:hover .p-bio, .p-photo:focus-visible .p-bio, .p-photo[aria-expanded="true"] .p-bio { box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); }
.p-bio { background: linear-gradient(to top, rgba(18, 26, 30, .98) 0%, rgba(18, 26, 30, .96) 75%, rgba(18, 26, 30, .8) 100%); }

/* =======================================================================================
   v0.6 layered illustrations (window + floating chips), Stripe-like
   ======================================================================================= */
.lay { position: relative; width: 100%; padding: 18px 22px 26px 0; }
.lwin { position: relative; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(18, 26, 30, .55), 0 2px 6px -2px rgba(18, 26, 30, .12); }
.lbar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.lbar i { width: 7px; height: 7px; border-radius: 50%; background: #d5dadc; }
.lbar span { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--line-soft); }
.ltabs span { font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid transparent; }
.ltabs .on { color: var(--g-800); border-bottom-color: var(--g-500); }
.lkpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lkpis small { display: block; font-size: 10px; color: var(--muted); }
.lkpis b { font-family: var(--font-head); font-size: 19px; letter-spacing: -.02em; }
.lkpis em { font-style: normal; font-size: 10px; font-weight: 600; margin-left: 4px; }
.up { color: var(--forest); }
.lchart { position: relative; }
.lchart .mbars { height: 70px; }
.lline { position: absolute; inset: 0 0 12px; width: 100%; height: calc(100% - 12px); pointer-events: none; }
.lchip { position: absolute; display: flex; align-items: center; gap: 9px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 12px 9px 9px; box-shadow: 0 18px 36px -18px rgba(18, 26, 30, .55); white-space: nowrap; z-index: 2; }
.lchip .ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, var(--g-600), var(--forest)); }
.lchip .ic svg { width: 15px; height: 15px; }
.lchip.amber .ic { background: linear-gradient(135deg, #c98a12, var(--amber)); color: var(--slate-950); }
.lchip b { display: block; font-size: 12px; line-height: 1.2; }
.lchip small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.lchip.c1 { right: 0; top: 46%; animation: bob 7s ease-in-out infinite; }
.lchip.c2 { left: -14px; bottom: 0; animation: bob 8s ease-in-out -3s infinite; }
.ltag { position: absolute; top: 0; right: 6%; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--slate-950); background: var(--amber); padding: 5px 10px; border-radius: 999px; box-shadow: 0 10px 20px -10px rgba(224, 167, 46, .8); z-index: 2; }
.okc { color: var(--forest); display: inline-grid; } .okc svg { width: 13px; height: 13px; }
.lpeople { display: flex; margin: 4px 0 8px; }
.lpeople i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff;
  border: 2px solid #fff; margin-left: -6px; background: linear-gradient(135deg, var(--g-500), var(--forest)); }
.lpeople i:first-child { margin-left: 0; }
.lpeople i:nth-child(2) { background: linear-gradient(135deg, #c98a12, var(--amber)); }
.lpeople i:nth-child(3) { background: linear-gradient(135deg, #3f6f7a, #2e6f40); }
.lpeople .more { background: var(--line-soft); color: var(--muted); }
.lay-nom .lwin, .lay-imp .lwin { padding-bottom: 4px; }
.lay-nom .lwin { padding: 14px 16px; }
.lsplit { display: flex; align-items: center; gap: 14px; }
.lsplit .donut { width: 96px; height: 96px; margin: 0; }
.mleg.col { flex-direction: column; gap: 6px; align-items: flex-start; font-size: 11px; }

/* Team panel */
.lteam { list-style: none; margin: 0; padding: 6px 12px 10px; }
.lteam li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); }
.lteam li:last-child { border-bottom: 0; }
.lteam img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.lteam b { display: block; font-size: 12.5px; }
.lteam small { font-size: 10.5px; color: var(--muted); }
.lteam em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--forest); background: #e3f1e6; padding: 3px 8px; border-radius: 99px; }
.lay-team, .lay-policy { max-width: 420px; }

/* Policy doc */
.ldoc { padding: 14px 18px 16px; }
.ldoc > b { font-family: var(--font-head); font-size: 15px; display: block; }
.ldoc > small { font-size: 10.5px; color: var(--forest); font-weight: 600; }
.ldoc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.ldoc li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.ldoc .ok { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #e3f1e6; color: var(--forest); flex: none; }
.ldoc .ok svg { width: 11px; height: 11px; }

/* Bento art: Stripe-like hatching behind the windows */
.bento-art::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(135deg, rgba(111, 138, 48, .14) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(160deg, transparent 30%, #000 85%); mask-image: linear-gradient(160deg, transparent 30%, #000 85%); }
.bento-art .lay { width: min(100%, 420px); }
.b-imp .bento-art .lay, .b-nom .bento-art .lay { width: min(100%, 300px); }
.dlg-art .lay { max-width: 320px; }

/* Carousel slides get room for the floating chips */
.slide-art .lay { margin: 6px 0; }

@media (prefers-reduced-motion: reduce) { .lchip.c1, .lchip.c2 { animation: none; } }
@media (max-width: 560px) {
  .lay { padding: 12px 10px 22px 0; }
  .lchip { padding: 7px 10px 7px 7px; gap: 7px; }
  .lchip .ic { width: 24px; height: 24px; }
  .lchip b { font-size: 11px; } .lchip small { font-size: 9.5px; }
  .lchip.c2 { left: -4px; }
  .lteam em { display: none; }
}
.lay-policy, .lay-team { padding-bottom: 44px; }
.lay-policy .lchip.c2, .lay-team .lchip.c2 { bottom: -4px; }
.lay-team .lchip.c1 { right: -28px; top: 30%; }
.lay-policy .lchip.c1 { right: -24px; }
@media (max-width: 560px) { .lay-team .lchip.c1, .lay-policy .lchip.c1 { right: -6px; } }
.lnomkpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.lnomkpi small { display: block; font-size: 9.5px; color: var(--muted); }
.lnomkpi b { font-size: 12.5px; }
.lratios { list-style: none; margin: 0 0 0 auto; padding: 0 0 0 14px; border-left: 1px solid var(--line-soft); display: grid; gap: 10px; min-width: 150px; flex: 1; }
.lratios li { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; font-size: 11px; color: var(--ink-2); }
.lratios b { font-size: 12px; color: var(--ink); }
.lratios i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--line-soft); position: relative; overflow: hidden; }
.lratios i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--g-600), var(--g-400)); }
.lratios i.a::after { background: linear-gradient(90deg, #c98a12, var(--amber)); }
@media (max-width: 560px) { .lsplit { flex-wrap: wrap; } .lratios { border-left: 0; padding-left: 0; min-width: 100%; } }
.b-niif .bento-art .lay { width: min(100%, 540px); }
.lchip.c-top { top: -4px; right: 4%; }
.lay-niif { padding-top: 30px; }

/* v0.7 team: cut-out portraits on a branded, Stripe-like backdrop */
.p-img { background:
    radial-gradient(70% 55% at 15% 10%, rgba(143, 171, 69, .55), transparent 60%),
    radial-gradient(60% 50% at 95% 30%, rgba(224, 167, 46, .38), transparent 62%),
    radial-gradient(80% 60% at 50% 110%, rgba(46, 111, 64, .55), transparent 65%),
    linear-gradient(160deg, #f4f7ea, #e6eedb); border-color: #dfe6d3; }
.p-img::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(48, 66, 12, .09) 0 1px, transparent 1px 10px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.p-img::after { content: ""; position: absolute; left: 50%; top: 18%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65); box-shadow: 0 0 0 26px rgba(255,255,255,.12), 0 0 0 54px rgba(255,255,255,.07); pointer-events: none; }
.p-photo .p-img img { position: relative; z-index: 1; object-fit: cover; object-position: 50% 100%; transform: none; filter: drop-shadow(0 18px 24px rgba(18, 26, 30, .25)); }
.p-photo:hover .p-img img { transform: translateY(-4px) scale(1.02); transform-origin: 50% 100%; }
.lteam img { background: linear-gradient(160deg, #eef3e2, #dfe8cf); object-position: 50% 15%; }

/* v0.8 team: portrait-mode photos (blurred, lightly tinted background); no cut-out backdrop */
.p-img { background: var(--line-soft); border-color: var(--line); }
.p-img::before, .p-img::after { content: none; }
.p-photo .p-img img { object-position: 50% 0%; filter: none; transition: transform .8s var(--ease-out); }
.p-photo:hover .p-img img { transform: scale(1.04); transform-origin: 50% 30%; }
.lteam img { background: none; }
/* Five people in the carousel panel: tighter rows; chip sits beside the list, not over a badge */
.lteam li { padding: 6px 2px; }
.lteam img { width: 30px; height: 30px; }
.lay-team .lchip.c1 { top: auto; bottom: 38%; right: -34px; }
.lay-team .lchip.c1 { top: -10px; bottom: auto; right: -30px; } .lay-team { padding-top: 30px; }

/* v0.9: longer headline (Diana Ospina, 30/11) */
.hero-v2 h1 { font-size: clamp(34px, 4.4vw, 54px); }
