/* ============================================================
   ALLPRIME — DESIGN SYSTEM v2 PREMIUM
   Estética editorial industrial · híbrido dark + claro
   Fraunces (display) · Manrope (UI) · JetBrains Mono (dados)
   ============================================================ */

:root {
  /* Base neutra editorial */
  --ink:       #0A0F1A;
  --ink-2:     #101725;
  --ink-3:     #182236;
  --paper:     #FAF9F5;
  --bone:      #EFEDE3;
  --steel:     #445062;
  --steel-2:   #6B7687;
  --hairline:  #D5D3C9;
  --hairline-dark: rgba(255,255,255,.12);

  /* AllPrime */
  --blue:       #0057B7;
  --blue-dark:  #001F5C;
  --blue-soft:  #2E7CD6;
  --orange:     #EF5C11;
  --orange-hot: #FF6A1F;
  --amber:      #FFB100;

  /* Semânticos */
  --success: #2F9E4B;
  --warning: #E48900;
  --danger:  #C4462C;

  /* Tipografia */
  --f-display: "Fraunces", Georgia, serif;
  --f-sans: "Manrope", -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(24px, 5vw, 96px);
  --sec-pad: clamp(56px, 8vw, 112px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-1: 0 2px 8px rgba(10,15,26,.06);
  --shadow-2: 0 12px 40px rgba(10,15,26,.12);
  --shadow-3: 0 24px 80px rgba(10,15,26,.22);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

/* ===== Utilitários ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--orange); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--orange); }
.section { padding: var(--sec-pad) 0; position: relative; }
.section > .container { position: relative; z-index: 2; }

/* ===== Tipografia display ===== */
h1, h2, h3, .display-1, .display-2 { font-family: var(--f-display); font-weight: 560; line-height: 1.06; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 4vw, 56px); }
h2 { font-size: clamp(32px, 3.4vw, 44px); }
h3 { font-family: var(--f-sans); font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--steel); max-width: 54ch; }

/* Números como elemento gráfico */
.figure { font-family: var(--f-display); font-variation-settings: "opsz" 96; font-weight: 500; font-size: clamp(56px, 7vw, 128px); line-height: 0.95; letter-spacing: -0.02em; }
.unit { font-family: var(--f-mono); font-size: clamp(12px, 1vw, 15px); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--steel-2); }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--f-sans); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: all .3s var(--ease-out); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn--primary:hover { background: var(--orange-hot); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 20px 44px; font-size: 15px; }
.btn--sm { padding: 11px 20px; font-size: 12px; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
  background: transparent;
}
.site-header.is-solid { background: rgba(10,15,26,.92); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--hairline-dark); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 112px; }
.site-header .logo img { height: 76px; width: auto; }
.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main > a, .nav-main .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; background: none; border: none;
  font-family: var(--f-sans); font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.85); transition: color .2s;
}
.nav-main > a:hover, .nav-main .nav-drop > button:hover { color: #fff; }
.nav-drop { position: relative; }
.nav-drop__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: #fff; border-radius: 4px; box-shadow: var(--shadow-3);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s var(--ease-out);
}
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop__menu a {
  display: block; padding: 11px 16px; border-radius: 3px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.nav-drop__menu a:hover { background: var(--bone); color: var(--blue); }
.nav-drop__menu a span { display: block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; color: var(--steel-2); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.nav-cta { margin-left: 16px; }
.nav-burger { display: none; background: none; border: none; width: 44px; height: 44px; position: relative; z-index: 210; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto; transition: all .3s var(--ease-out); }

@media (max-width: 1080px) {
  .nav-main {
    position: fixed; inset: 0; background: var(--ink); z-index: 200;
    flex-direction: column; justify-content: center; gap: 8px;
    opacity: 0; visibility: hidden; transition: all .35s var(--ease-out);
  }
  .nav-main.is-open { opacity: 1; visibility: visible; }
  .nav-main > a, .nav-main .nav-drop > button { font-size: 22px; font-family: var(--f-display); font-weight: 500; }
  .nav-drop__menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; display: none; text-align: center; }
  .nav-drop.is-open .nav-drop__menu { display: block; }
  .nav-drop__menu a { color: rgba(255,255,255,.75); }
  .nav-drop__menu a:hover { background: transparent; color: var(--amber); }
  .nav-drop__menu a span { display: none; }
  .nav-burger { display: block; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: min(94vh, 980px);
  display: flex; align-items: flex-end;
  background: var(--ink); color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media picture { width: 100%; height: 110%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,26,.88) 0%, rgba(10,15,26,.35) 45%, rgba(10,15,26,.25) 100%);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.82); margin-top: 24px; }

/* ===== Legendas de foto (tipo catálogo impresso) ===== */

/* ===== Marquee técnico ===== */
.marquee { background: var(--ink); border-top: 1px solid var(--hairline-dark); padding: 18px 0; overflow: hidden; }
.marquee__track { display: flex; gap: 64px; white-space: nowrap; animation: marquee 40s linear infinite; width: max-content; }
.marquee span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); display: inline-flex; align-items: center; gap: 64px; }
.marquee span::after { content: "·"; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Grid editorial ===== */
.grid { display: grid; gap: 24px; }

/* ===== Cards de família ===== */

/* ===== KPI band ===== */

/* ===== Feature editorial (foto + texto) ===== */

/* ===== Tabelas técnicas ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table thead th {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--steel-2);
  text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--ink);
}
.data-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--hairline); }
.data-table tbody tr:nth-child(even) { background: var(--bone); }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: #E9E5D6; }
.data-table .num { font-family: var(--f-mono); font-size: 13px; text-align: right; }
.data-table thead th.num { text-align: right; }
.data-table a { color: var(--blue); font-weight: 700; }
.data-table a:hover { color: var(--orange); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== Spec grid (página de modelo) ===== */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }
.spec { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.spec dt { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--steel-2); }
.spec dd { font-size: 17px; font-weight: 700; margin-top: 4px; }
.spec dd .mono { font-size: 15px; }

/* ===== Cases ===== */
.case-card { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--hairline); transition: all .4s var(--ease-out); position: relative; overflow: hidden; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.case-card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card__client { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }

/* ===== Blog ===== */

.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 2em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.75; color: #2A3342; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 3px solid var(--orange); padding-left: 24px; font-family: var(--f-display); font-size: 22px; font-weight: 480; line-height: 1.45; color: var(--ink); }
.prose a { color: var(--blue); font-weight: 600; border-bottom: 1px solid rgba(0,87,183,.25); }
.prose a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ===== CTA band ===== */

/* ===== Breadcrumbs ===== */

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(250,249,245,.7); font-size: 14px; }
.site-footer__main { display: grid; grid-template-columns: 4fr 2.5fr 2.5fr 3fr; gap: 48px; padding: 80px 0 56px; }
@media (max-width: 1080px) { .site-footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer__main { grid-template-columns: 1fr; } }
.site-footer .logo img { height: 72px; margin-bottom: 20px; }
.site-footer h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: rgba(250,249,245,.45); margin-bottom: 18px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--amber); }
.site-footer__bottom { border-top: 1px solid var(--hairline-dark); padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: rgba(250,249,245,.4); }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--hairline-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.footer-social a:hover { border-color: var(--orange); background: var(--orange); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,.45);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; }

/* ===== Reveal on scroll ===== */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
   @media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); }
.field input, .field select, .field textarea {
  padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 2px;
  font-family: var(--f-sans); font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,183,.12); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }

/* ===== Badges / alerts ===== */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; padding: 6px 12px; border: 1px solid currentColor; border-radius: 2px; }
.tag--fill-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.callout { display: flex; gap: 16px; padding: 22px 26px; border-left: 3px solid var(--blue); background: #fff; box-shadow: var(--shadow-1); font-size: 14.5px; color: var(--steel); }
.callout--warn { border-left-color: var(--warning); }
.callout strong { color: var(--ink); }

/* ===== Página de modelo ===== */

/* ===== Chart card ===== */
.chart-card { background: #fff; border: 1px solid var(--hairline); padding: 20px; }
.chart-card canvas { width: 100%; }

/* ===== Model cards (catálogo) ===== */
.model-card::before, .case-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 14px; height: 14px; border-top: 2px solid var(--orange); border-left: 2px solid var(--orange); z-index: 3; }
.model-card::after, .case-card::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 14px; height: 14px; border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange); z-index: 3; }

/* ===== FAQ ===== */

/* ===== Scrollbar sutil ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel-2); }

/* ===== Lombada técnica na lateral (desktop) ===== */
.doc-spine {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; z-index: 60;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--steel-2);
  display: flex; align-items: center; gap: 14px; pointer-events: none;
}
.doc-spine::before, .doc-spine::after { content: ""; width: 1px; height: 48px; background: var(--hairline); }
@media (max-width: 1280px) { .doc-spine { display: none; } }

/* ============================================================
   HOME v3 — hero dividido, régua de specs, mosaico, faixa,
   índice de blog (layout editorial, não-template)
   ============================================================ */

/* mosaico assimétrico: Linha S grande à esquerda */

/* faixa de produto full-bleed com placa */
.photo-band { position: relative; min-height: 62vh; overflow: hidden; background: var(--ink); }
.photo-band > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* blog como sumário de revista */

/* ============================================================
   A2 — "SALA DE MÁQUINAS" (set/2026)
   Direção híbrida: navy plataforma (United Rentals) + índice
   industrial (KSB/Sulzer) + navegação por problema (BBA).
   Camada de override sobre o sistema v2.
   ============================================================ */
:root {
  --ink:   #0A1426;
  --ink-2: #0D1B33;
  --ink-3: #14264A;
  --paper: #F7F7F4;
  --bone:  #EDECE6;
  --steel: #46536A;
  --steel-2: #758094;
  --hairline: #D8D7CF;
  --f-display: "Archivo", "Inter", sans-serif;
  --f-sans: "Inter", -apple-system, sans-serif;
}
/* Display condensado industrial */
h1, h2, .display-1, .display-2 {
  font-family: var(--f-display);
  font-stretch: 76%;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.0;
  text-transform: uppercase;
}
h3 { font-family: var(--f-sans); }
.lead { font-size: clamp(17px, 1.5vw, 20px); }
/* Botões: blocos flat de plataforma */
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 13.5px; }
.btn--primary { box-shadow: none; }
.btn--primary:hover { transform: none; box-shadow: 0 10px 30px rgba(239,92,17,.35); }
/* Header plataforma */
.site-header { background: rgba(10,20,38,.96); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header .container { height: 100px; }
.site-header .logo img { height: 72px; }
/* HUD (spec-bar reforjada) */
/* HERO A2 full-bleed */
/* Faixa corrida */
@keyframes faixa { from { transform: translateX(0);} to { transform: translateX(-50%);} }
/* Índice de linhas (famílias) */
/* Bloco plataforma / seletor */
 /* Disponibilidade (lição MWI/United) */
.dispo { display: flex; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #5BD98A; margin-top: 20px; }
.dispo::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #5BD98A; box-shadow: 0 0 0 4px rgba(91,217,138,.18); animation: pulsedot 2s infinite; }
@keyframes pulsedot { 50% { box-shadow: 0 0 0 8px rgba(91,217,138,.06);} }

/* ============================================================
   A2.1 — Marca em destaque + linguagem de ficha técnica
   ============================================================ */
/* Logo grande (pedido do Luiz: marca com mais destaque) */
.site-header .container { height: 128px; }
.site-header .logo img { height: 96px; }
@media (max-width: 720px){ .site-header .logo img { height: 64px; } .site-header .container { height: 96px; } }
/* HERO FICHA: assimétrico, curva real como arte */
/* Notas de margem estilo prancheta */
/* Assinatura de rodapé: marca gigante */

/* A2.2 — logo único, aparado e em destaque no cabeçalho */
.site-header .logo img { height: 54px; }
.site-header .container { height: 118px; }
.site-footer .logo img, footer .logo img { height: 46px; }
@media (max-width: 720px){ .site-header .logo img { height: 40px; } .site-header .container { height: 88px; } }

/* ===== Seletor técnico (seletor/index.html) ===== */
/* ===== seletor v4 ===== */
.sel-hero { background: var(--ink); color:#fff; padding: 128px 0 40px; }
.sel-hero h1 { color:#fff; font-size: clamp(34px, 3.6vw, 52px); }
.sel-hero .lead { color: rgba(255,255,255,.72); margin-top: 12px; }
.sel-steps { display:flex; gap:24px; margin-top:28px; flex-wrap:wrap; }
.sel-steps .st { display:flex; align-items:center; gap:10px; font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.55); }
.sel-steps .st b { width:26px; height:26px; border-radius:50%; border:1px solid var(--amber); color:var(--amber); display:flex; align-items:center; justify-content:center; font-weight:500; }

.sel-layout { display:grid; grid-template-columns: 380px 1fr; gap:32px; align-items:start; padding: 40px 0 80px; }
@media (max-width: 1080px) { .sel-layout { grid-template-columns: 1fr; } }
.sel-panel { background:#fff; border:1px solid var(--hairline); padding:28px; position:sticky; top:104px; display:flex; flex-direction:column; gap:16px; }
@media (max-width:1080px){ .sel-panel{ position:static; } }
.sel-panel h3 { font-size:18px; }
.sel-panel .grp { font-family:var(--f-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--orange); border-top:1px solid var(--hairline); padding-top:16px; margin-top:4px; }
.sel-adv summary { cursor:pointer; font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--steel); padding:8px 0; list-style:none; }
.sel-adv summary::-webkit-details-marker{display:none}
.sel-adv summary::after{content:" +"; color:var(--orange)}
.sel-adv[open] summary::after{content:" –"}
.sel-check { display:flex; flex-wrap:wrap; gap:8px; }
.sel-check label { display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; border:1px solid var(--hairline); padding:7px 10px; cursor:pointer; border-radius:2px; }
.sel-check label:has(input:checked){ border-color:var(--blue); color:var(--blue); background:rgba(0,87,183,.06); }
.sel-check input{ accent-color:var(--blue); }

.res-top { background:#fff; border:1px solid var(--hairline); border-top:3px solid var(--orange); padding:32px; }
.res-head { display:flex; gap:24px; justify-content:space-between; flex-wrap:wrap; }
.res-head__id { display:flex; gap:20px; align-items:flex-start; }
.res-head__foto { width:120px; height:120px; object-fit:cover; flex-shrink:0; background:var(--bone); }
.res-head h2 { font-family:var(--f-display); font-size: clamp(34px,3.4vw,52px); line-height:1; }
.res-score { text-align:right; }
.res-score .figure { font-size:56px; color:var(--blue); }
.res-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:26px 0 20px; border-bottom:1px solid var(--hairline); padding-bottom:14px; }
.res-tabs button { padding:10px 18px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; background:transparent; border:1px solid var(--hairline); border-radius:2px; color:var(--steel); font-family:var(--f-sans); }
.res-tabs button.active { background:var(--ink); border-color:var(--ink); color:#fff; }
.res-tab { display:none; } .res-tab.active { display:block; }
.curve-wrap { position:relative; overflow:hidden; }
.curve-wrap.animating::after { content:""; position:absolute; inset:0; background:#fff; animation: curveWipe 1.2s var(--ease-out) forwards; }
@keyframes curveWipe { from{ transform:translateX(0);} to{ transform:translateX(101%);} }

.alt-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:28px; }
@media (max-width:1080px){ .alt-grid{ grid-template-columns:1fr; } }
.alt-card { background:#fff; border:1px solid var(--hairline); padding:22px; display:flex; flex-direction:column; gap:12px; transition:all .3s var(--ease-out); }
.alt-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-2); }
.alt-card__row { display:flex; gap:14px; align-items:center; }
.alt-card__row img { width:64px; height:64px; object-fit:cover; background:var(--bone); }
.alt-card__stats { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; font-family:var(--f-mono); font-size:12px; border-top:1px solid var(--hairline); padding-top:12px; }
.alt-card__stats span { display:block; font-size:9px; text-transform:uppercase; letter-spacing:.06em; color:var(--steel-2); }
.alt-card .cmp { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; color:var(--blue); cursor:pointer; }

.cmp-bar { position:fixed; left:0; right:0; bottom:0; z-index:95; background:var(--ink); color:#fff; padding:14px 0; transform:translateY(110%); transition:transform .4s var(--ease-out); box-shadow:0 -8px 40px rgba(10,15,26,.35); }
.cmp-bar.on { transform:none; }
.cmp-bar .container { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.cmp-bar .chips { display:flex; gap:10px; flex-wrap:wrap; }
.cmp-bar .chip { font-family:var(--f-mono); font-size:12px; border:1px solid var(--hairline-dark); padding:8px 12px; display:flex; gap:10px; align-items:center; }
.cmp-bar .chip b { color:var(--amber); cursor:pointer; }

.cmp-modal { display:none; position:fixed; inset:0; z-index:120; background:rgba(10,15,26,.9); backdrop-filter:blur(6px); padding:3vh 3vw; overflow:auto; }
.cmp-modal.on { display:block; }
.cmp-sheet { background:var(--paper); max-width:1280px; margin:0 auto; padding:40px; position:relative; }
.cmp-close { position:absolute; top:18px; right:18px; background:var(--ink); color:#fff; border:none; width:42px; height:42px; font-size:18px; }
.cmp-cols th, .cmp-cols td { text-align:left; }
.cmp-cols td.hl { color:var(--blue); font-weight:700; }

.gate { position:fixed; inset:0; z-index:150; background:rgba(10,15,26,.94); backdrop-filter:blur(10px); display:flex; align-items:center; justify-content:center; padding:24px; overflow:auto; }
.gate.off { display:none; }
.gate-card { background:var(--paper); max-width:640px; width:100%; padding:44px; border-top:4px solid var(--orange); position:relative; margin:auto; }
.gate-close { position:absolute; top:14px; right:14px; width:38px; height:38px; border:1px solid rgba(26,43,60,.18); border-radius:50%; background:#fff; color:var(--navy,#1A2B3C); font-size:22px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s,color .2s,border-color .2s; }
.gate-close:hover { background:var(--orange); border-color:var(--orange); color:#fff; }
@media (max-width:560px){ .gate-card { padding:44px 22px 28px; } #tabSolicitar,#tabCodigo { min-width:0; padding-left:8px; padding-right:8px; white-space:normal; } }
.gate-card h2 { font-family:var(--f-display); font-size:32px; margin:10px 0 8px; }
.gate-card p { color:var(--steel); font-size:14.5px; }
.gate-card form { display:flex; flex-direction:column; gap:14px; margin-top:22px; }
.empty-msg { background:#fff; border:1px dashed var(--hairline); padding:48px; text-align:center; color:var(--steel); }
