/* Latina Trade Tecnologia — design v2 */
:root {
  --bg: #050A16;
  --bg-2: #0A1326;
  --bg-3: #081229;
  --text: #EEF2FB;
  --muted: #A3B0CC;
  --muted-2: #B4C0DA;
  --soft: #C9D3EA;
  --blue: #3B82FF;
  --blue-hover: #5B96FF;
  --cyan: #6CCBFF;
  --gold: #E9B44C;
  --line: rgba(140, 170, 255, 0.14);
  --line-2: rgba(140, 170, 255, 0.18);
  --line-3: rgba(140, 170, 255, 0.22);
  --mono: 'JetBrains Mono', monospace;
  --pad-x: clamp(20px, 4vw, 48px);
  --max: 1320px;
}

html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Archivo', sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--text); }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; }
::selection { background: var(--blue); color: #fff; }
h1, h2, p { margin: 0; }

@keyframes ltMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ltPulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .8; transform: scale(1.15); } }

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
main { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.sec { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.sec-lg { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bt { border-top: 1px solid var(--line); }
.bb { border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; }
.g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g24 { gap: 24px; } .g28 { gap: 28px; } .g32 { gap: 32px; } .g40 { gap: 40px; } .g48 { gap: 48px; } .g56 { gap: 56px; } .g64 { gap: 64px; }
.row { display: flex; flex-wrap: wrap; }
.between { justify-content: space-between; }
.end { align-items: end; }
.center { align-items: center; }
.grid { display: grid; }
.cols-200 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.cols-220 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.cols-240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cols-280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cols-300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cols-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cols-360 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.cols-380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cols-420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cols-440 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.cols-460 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.cols-480 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }

/* Typography */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--cyan); text-transform: uppercase; }
.eyebrow.gold { color: var(--gold); }
.eyebrow.sm { font-size: 11px; letter-spacing: 0.16em; }
.eyebrow.muted { color: var(--muted); }
.eyebrow-line { display: flex; align-items: center; gap: 12px; }
.eyebrow-line::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 { font-weight: 800; font-stretch: 115%; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.h2-sm { font-weight: 800; font-stretch: 115%; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -0.02em; }
.h1-page { font-weight: 800; font-stretch: 118%; font-size: clamp(40px, 5.4vw, 80px); line-height: 0.96; letter-spacing: -0.02em; text-wrap: balance; }
.lead { font-size: 17px; line-height: 1.7; color: var(--muted); }
.lead-lg { font-size: 19px; line-height: 1.6; color: var(--muted); }
.statement { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; font-weight: 500; font-stretch: 105%; text-wrap: pretty; }
.c-blue { color: var(--blue); } .c-gold { color: var(--gold); } .c-cyan { color: var(--cyan); } .c-muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; font-weight: 600; font-size: 15px; padding: 16px 26px; transition: background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: rgba(5, 10, 22, 0.4); color: var(--text); border: 1px solid rgba(238, 242, 251, 0.35); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(238, 242, 251, 0.3); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 12px 20px; font-size: 14px; }

.chip { padding: 10px 16px; border: 1px solid var(--line-3); font-size: 15px; }
.chip-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; padding: 6px 10px; }
.chip-tag.blue { color: var(--cyan); border: 1px solid rgba(108, 203, 255, 0.4); }
.chip-tag.gold { color: var(--gold); border: 1px solid rgba(233, 180, 76, 0.45); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 10, 22, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: 0.06em; }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; justify-content: center; }
.nav a { padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--blue); }
.header-cta { padding: 11px 20px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(140, 170, 255, 0.3); color: var(--text); cursor: pointer; font-size: 18px; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-header .wrap { flex-wrap: wrap; gap: 16px; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--cyan); }
  .header-cta { display: none; }
  .site-header.open .nav, .site-header.open .header-cta { display: flex; }
  .site-header.open .header-cta { order: 4; flex-basis: 100%; }
}

/* Hero (home) */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: calc(100vh - 67px); display: flex; align-items: center; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; }
.hero-inner { position: relative; width: 100%; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { font-weight: 800; font-stretch: 115%; font-size: clamp(40px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.hero-lead { max-width: 540px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted-2); text-wrap: pretty; }
.hero-tags { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted-2); }
.hero-tags .sep { color: var(--blue); }

/* Case carousel */
.cases { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cases-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cases-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.cases-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.cases-counter { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted-2); }
.cases-viewport { overflow: hidden; border: 1px solid rgba(140, 170, 255, 0.25); background: rgba(10, 19, 38, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cases-track { display: flex; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cases-track.no-anim { transition: none; }
.case { flex: 0 0 100%; min-height: 340px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; color: var(--text); background: radial-gradient(90% 70% at 100% 0%, rgba(59, 130, 255, 0.22), transparent 70%); }
.case:hover { color: var(--text); }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.case-arrow { font-size: 22px; color: var(--muted-2); }
.case-logo { height: 150px; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.case-logo img { max-width: 70%; max-height: 100%; object-fit: contain; margin: 0 auto; }
.case-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 15px; font-weight: 600; }
.case-foot span:last-child { font-size: 14px; }
.cases-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 14px; height: 3px; border: 0; padding: 0; cursor: pointer; background: rgba(238, 242, 251, 0.3); transition: width .3s; }
.dots button.on { width: 32px; background: var(--gold); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; background: rgba(5, 10, 22, 0.6); border: 1px solid rgba(140, 170, 255, 0.3); color: var(--text); cursor: pointer; font-size: 16px; }
.arrows button:hover { border-color: var(--text); }
.case-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.case-chips button { padding: 7px 11px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; background: rgba(5, 10, 22, 0.5); color: var(--muted-2); border: 1px solid rgba(140, 170, 255, 0.25); }
.case-chips button.on { background: var(--text); color: var(--bg); }

/* Logo marquee */
.logos { border-bottom: 1px solid var(--line); overflow: hidden; padding: 36px 0; display: flex; flex-direction: column; gap: 22px; }
.logos > span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-align: center; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: ltMarquee 114s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 88px; padding-right: 88px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group img { height: 44px; width: auto; max-width: 170px; object-fit: contain; opacity: 0.92; }

/* Manifesto */
.manifesto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: end; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.manifesto h2 { font-weight: 800; font-stretch: 120%; font-size: clamp(44px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.025em; }

/* Video */
.video-frame { position: relative; border: 1px solid var(--line-2); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; max-height: 80vh; background: #000; }

/* Pillars (3 cols with dividers) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pillar { padding: 56px 40px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; border-right: 0; }
.pillar p { font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.pillars.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.pillars.wide .pillar { padding: 64px 48px; gap: 20px; }
.pillars.wide .pillar:first-child { padding-left: 0; }
.pillars.wide .pillar:last-child { padding-right: 0; }
@media (max-width: 760px) {
  .pillar, .pillars.wide .pillar { padding: 40px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}

/* Outcomes list */
.sticky-col { align-self: start; position: sticky; top: 110px; }
.outcome { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.outcome:hover { background: rgba(59, 130, 255, 0.05); }
.outcome .n { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.outcome .t { font-size: clamp(20px, 2vw, 26px); font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; }
.outcome .a { color: var(--muted); font-size: 18px; }

/* Panels / cards */
.panel { background: var(--bg); border: 1px solid var(--line-2); padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.panel-alt { background: var(--bg-2); }
.panel-title { font-weight: 700; font-stretch: 115%; font-size: 28px; }
.box { border: 1px solid var(--line-2); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.box-title { font-size: 26px; font-weight: 700; font-stretch: 112%; }
.box-title.sm { font-size: 22px; }

.card { background: var(--bg-2); border: 1px solid var(--line-2); display: flex; flex-direction: column; color: var(--text); transition: border-color .2s; }
.card:hover { color: var(--text); border-color: var(--blue); }
.card.gold:hover { border-color: var(--gold); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-title { font-size: 24px; font-weight: 700; font-stretch: 110%; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-link { margin-top: 8px; font-weight: 600; font-size: 14px; }

/* AI banner */
.ia { position: relative; overflow: hidden; min-height: 680px; display: flex; align-items: center; border-top: 1px solid var(--line); }
.ia h2 { font-weight: 800; font-stretch: 125%; font-size: clamp(52px, 7.5vw, 112px); line-height: 0.88; letter-spacing: -0.03em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: ltPulse 2.4s ease-in-out infinite; }
.chip-glass { padding: 10px 14px; border: 1px solid rgba(108, 203, 255, 0.4); background: rgba(5, 10, 22, 0.5); font-size: 14px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2px; background: var(--line); }
.step { background: var(--bg); padding: 40px 32px; display: flex; flex-direction: column; gap: 18px; min-height: 280px; }
.step:hover { background: var(--bg-3); }
.step .n { font-weight: 800; font-stretch: 125%; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.step .t { font-size: 24px; font-weight: 700; font-stretch: 110%; }
.step .d { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* CTA band */
.cta { position: relative; overflow: hidden; }
.cta h2 { font-weight: 800; font-stretch: 118%; font-size: clamp(36px, 4.6vw, 66px); line-height: 0.98; letter-spacing: -0.02em; }

/* Blog */
.post { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: border-color .2s; }
.post:hover { border-color: var(--blue); color: var(--text); }
.post-img { min-height: 220px; background-size: cover; }
.post-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.post-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.post-title { font-size: 21px; font-weight: 700; line-height: 1.25; font-stretch: 105%; }
.post-text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.post.v { display: flex; flex-direction: column; }
.post.v .post-img { aspect-ratio: 16 / 9; min-height: 0; }
.post.v .post-body { padding: 32px; gap: 14px; }
.post.v .post-title { font-size: 26px; line-height: 1.2; }
.post.v .post-text { font-size: 16px; line-height: 1.6; }
@media (max-width: 520px) { .post { grid-template-columns: 1fr; } }

/* Sub-page hero */
.page-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.bg-network { position: absolute; inset: 0; background: url(../img/network.webp) center 60% / cover; opacity: 0.3; mix-blend-mode: screen; }

.framed { border: 1px solid rgba(140, 170, 255, 0.2); width: 100%; object-fit: cover; }
.banner { width: 100%; height: auto; border: 1px solid rgba(140, 170, 255, 0.2); }

/* Sandbox columns */
.sb-item { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.sb-item b { font-weight: 600; font-size: 16px; color: var(--cyan); }
.sb-item span { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Library (PDFs) */
.doc { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); transition: border-color .2s; }
.doc:hover { border-color: var(--blue); color: var(--text); }
.doc-cover { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line-2); }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; }
.doc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.doc-title { font-size: 18px; font-weight: 700; line-height: 1.3; font-stretch: 105%; }
.doc-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.doc-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; }

/* Robotics */
.rob-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.rob-hero .img { position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; object-position: center; }
.rob-hero h1 { font-weight: 800; font-stretch: 125%; font-size: clamp(64px, 10vw, 150px); line-height: 0.85; letter-spacing: -0.03em; }
@media (max-width: 760px) { .rob-hero .img { width: 100%; opacity: .45; } }
.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cell .n { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.cell .t { font-size: 16px; line-height: 1.45; }
.sector { padding: 14px 20px; background: var(--bg); border: 1px solid rgba(140, 170, 255, 0.2); font-size: 16px; }
.stage { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 12px; }
.stage .n { font-weight: 800; font-stretch: 125%; font-size: 40px; color: var(--gold); line-height: 1; }
.stage .t { font-weight: 700; font-size: 18px; }
.stage .d { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tag { padding: 8px 12px; border: 1px solid var(--line-3); font-size: 14px; color: var(--soft); }
.tag.gold { border-color: rgba(233, 180, 76, 0.35); }
.figure { display: flex; flex-direction: column; gap: 14px; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(140, 170, 255, 0.2); }
.figure figcaption { font-size: 15px; line-height: 1.55; color: var(--muted); }
.figure figcaption b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
figure { margin: 0; }

/* Clients grid */
.client { height: 160px; display: flex; align-items: center; justify-content: center; padding: 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client:hover { background: rgba(59, 130, 255, 0.06); }
.client img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0.9; }

/* Forms */
.form { background: var(--bg-2); border: 1px solid var(--line-2); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form.dark { background: var(--bg); border-color: rgba(140, 170, 255, 0.2); padding: clamp(24px, 3vw, 36px); gap: 16px; }
.form-title { font-weight: 700; font-stretch: 112%; font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid rgba(140, 170, 255, 0.25); color: var(--text); padding: 14px 16px; font-size: 15px; outline: none; border-radius: 0; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; }
.field input[type="date"] { color-scheme: dark; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.form.dark .fields-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.svc { display: flex; flex-wrap: wrap; gap: 8px; }
.svc label { cursor: pointer; }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc span { display: inline-block; padding: 10px 14px; font-size: 14px; color: var(--text); border: 1px solid rgba(140, 170, 255, 0.3); }
.svc input:checked + span { background: var(--blue); border-color: var(--blue); }
.svc input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.upload { border: 1px dashed rgba(140, 170, 255, 0.35); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload .name { font-size: 15px; color: var(--muted); }
.upload .btn-file { padding: 8px 14px; border: 1px solid rgba(238, 242, 251, 0.3); font-size: 13px; font-weight: 600; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 14px; color: var(--cyan); min-height: 1em; }

.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-list > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.contact-list a, .contact-list .v { font-size: 20px; color: var(--text); }
.contact-list .addr { font-size: 18px; line-height: 1.5; }

/* WhatsApp float */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; background: #25D366; color: #05210F; padding: 14px 20px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.wa-float:hover { background: #3BE07A; color: #05210F; }
.wa-float::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #05210F; }
@media (max-width: 520px) { .wa-float { right: 16px; bottom: 16px; padding: 12px 16px; font-size: 13px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 56px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.footer-cols > * { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; }
.footer-logo { width: 96px; height: 96px; }
.footer-cols a { color: var(--text); }
.footer-cols a:hover { color: var(--cyan); }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border: 1px solid rgba(140, 170, 255, 0.3); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.social a:hover { border-color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .pulse { animation: none; }
  .cases-track { transition: none; }
  html { scroll-behavior: auto; }
}

/* Blog: listing filter */
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter button { padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--muted-2); border: 1px solid rgba(140, 170, 255, 0.25); }
.blog-filter button:hover { border-color: var(--text); color: var(--text); }
.blog-filter button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.post.v .card-link { margin-top: auto; padding-top: 6px; }
.post.v .post-body { flex: 1; }

/* Blog: article */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.post-h1 { font-weight: 800; font-stretch: 112%; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.02em; max-width: 1100px; text-wrap: balance; }
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(32px, 5vw, 80px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); justify-content: center; }
.post-toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.post-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line-2); }
.post-toc a { display: block; padding-left: 14px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.post-toc a:hover { color: var(--text); }
@media (max-width: 980px) { .post-layout { grid-template-columns: minmax(0, 1fr); } .post-toc { display: none; } }
.prose { font-size: 18px; line-height: 1.75; color: #C9D3EA; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-weight: 800; font-stretch: 110%; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.01em; color: var(--text); scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.8em; font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--text); scroll-margin-top: 96px; }
.prose h4 { margin-top: 1.5em; font-weight: 700; font-size: 18px; color: var(--text); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.7em; }
.prose p:first-child { font-size: 20px; line-height: 1.65; color: var(--text); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); color: var(--text); font-size: 20px; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--bg-2); padding: 2px 6px; border: 1px solid var(--line-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.prose tr:last-child td { border-bottom: 0; }
.prose #fontes { font-size: 22px; margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--line-2); }
.prose #fontes + ul { font-size: 14px; line-height: 1.6; color: var(--muted); }
.prose #fontes + ul a { color: var(--muted-2); word-break: break-word; }
[hidden] { display: none !important; }
