:root {
  --navy-950: #051327;
  --navy-900: #081c35;
  --navy-800: #0d2949;
  --blue-600: #2657dc;
  --blue-500: #3472f4;
  --cyan-500: #17b7d8;
  --teal-600: #087e78;
  --ink: #0b1830;
  --muted: #5c6c84;
  --line: #d8e2ef;
  --surface: #ffffff;
  --surface-soft: #f4f8fc;
  --shadow: 0 22px 60px rgba(7, 28, 56, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fafe;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 16px auto 0;
  padding: 12px 16px 12px 18px;
  border: 1px solid rgba(202, 216, 234, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(8, 29, 55, 0.08);
  backdrop-filter: blur(16px);
}

.site-brand { display: flex; align-items: center; gap: 13px; }
.site-brand img { width: 60px; height: 46px; object-fit: cover; border-radius: 11px; }
.site-brand span { display: grid; line-height: 1.12; }
.site-brand strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.site-brand small { margin-top: 5px; color: var(--muted); font-size: 0.72rem; }

.site-nav { display: flex; align-items: center; gap: 28px; color: #32435d; font-size: 0.92rem; font-weight: 700; }
.site-nav > a:not(.button):hover { color: var(--blue-600); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-weight: 800; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--blue-600), #1c4bc5); box-shadow: 0 13px 28px rgba(38, 87, 220, 0.24); }
.button-outline { min-height: 44px; padding-inline: 20px; color: var(--blue-600); border-color: #bfd0f1; background: #f5f8ff; }
.button-quiet { border-color: var(--line); background: white; }
.button-light { color: var(--navy-900); background: white; box-shadow: 0 12px 30px rgba(0,0,0,.14); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 60px;
  width: min(1180px, calc(100% - 40px));
  min-height: 670px;
  margin: 0 auto;
  padding: 78px 0 64px;
}
.eyebrow { display: block; margin-bottom: 14px; color: var(--teal-600); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, .section h2, .cta-section h2, .auth-card h1, .manual-hero h1 { margin: 0; letter-spacing: -.045em; line-height: 1.06; }
.hero h1 { max-width: 700px; font-size: clamp(2.8rem, 5.2vw, 4.75rem); }
.hero-copy > p { max-width: 670px; margin: 26px 0 0; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 32px 0 0; padding: 0; color: #3d4e66; font-size: .86rem; font-weight: 750; list-style: none; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--cyan-500); box-shadow: 0 0 0 4px rgba(23,183,216,.12); }

.hero-visual { position: relative; min-height: 500px; overflow: hidden; border: 1px solid #173c69; border-radius: var(--radius-lg); background: var(--navy-950); box-shadow: var(--shadow); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2,14,31,.5)); pointer-events: none; }
.hero-visual > img { width: 100%; height: 500px; object-fit: cover; object-position: 50% center; }
.signal-card { position: absolute; z-index: 2; display: grid; min-width: 155px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 15px; color: white; background: rgba(8,29,56,.78); box-shadow: 0 15px 35px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.signal-card span { color: #9fd9ef; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.signal-card strong { margin-top: 4px; font-size: 1rem; }
.signal-card-top { top: 26px; right: 24px; }
.signal-card-bottom { bottom: 24px; left: 24px; }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1180px, calc(100% - 40px)); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 40px rgba(8,29,55,.05); }
.trust-strip span { padding: 22px; color: #42536c; font-size: .82rem; font-weight: 850; text-align: center; }
.trust-strip span + span { border-left: 1px solid var(--line); }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 34px; }
.section h2, .cta-section h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.section-heading > p, .split-copy > p { margin: 20px 0 0; color: var(--muted); font-size: 1.04rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { min-height: 255px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: 0 14px 38px rgba(8,29,55,.06); }
.feature-number { color: var(--blue-500); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.feature-card h3 { margin: 54px 0 10px; font-size: 1.17rem; }
.feature-card p, .flow-grid p, .benefit-list p { margin: 0; color: var(--muted); font-size: .92rem; }

.section-tinted { width: 100%; max-width: none; padding-inline: max(20px, calc((100% - 1180px) / 2)); color: white; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.section-tinted .eyebrow { color: #65d6e8; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow-grid article { display: flex; gap: 18px; min-height: 170px; padding: 26px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); background: rgba(255,255,255,.06); }
.flow-grid article > span { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #b9eff6; background: rgba(23,183,216,.16); font-weight: 900; }
.flow-grid h3 { margin: 4px 0 8px; }
.flow-grid p { color: #aebdd1; }

.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 85px; align-items: start; }
.text-link { display: inline-flex; gap: 10px; margin-top: 28px; color: var(--blue-600); font-weight: 850; }
.benefit-list { display: grid; gap: 12px; }
.benefit-list article { display: flex; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.benefit-list strong { color: var(--teal-600); font-size: .78rem; }
.benefit-list h3 { margin: 0 0 7px; font-size: 1.05rem; }

.cta-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: min(1180px, calc(100% - 40px)); margin: 0 auto 90px; padding: 52px; border-radius: var(--radius-lg); color: white; background: linear-gradient(120deg, #0b2e55, #155da7 65%, #117d87); box-shadow: var(--shadow); }
.cta-section .eyebrow { color: #a6ebf4; }
.cta-section h2 { max-width: 700px; font-size: clamp(2rem, 3.5vw, 3.1rem); }
.cta-section p { max-width: 650px; margin: 16px 0 0; color: #c8d8ea; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 40px max(20px, calc((100% - 1180px)/2)); color: #c6d2e2; background: var(--navy-950); }
.site-footer > div { display: grid; }
.site-footer strong { color: white; font-size: 1.15rem; }
.site-footer span, .site-footer small { color: #889cb6; font-size: .8rem; }
.site-footer nav { display: flex; gap: 24px; font-weight: 700; }
.site-footer small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }

/* Login */
.auth-page { min-height: 100vh; background: linear-gradient(120deg, #eef5fc, #f8fbff); }
.auth-layout { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 100vh; }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 6vh, 68px); overflow: hidden; padding: 42px; color: white; background: var(--navy-950); }
.auth-brand::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(17,151,215,.25), transparent 40%); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand img { width: min(100%, 600px); max-height: 420px; margin: auto; border-radius: 22px; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.auth-brand-copy h2 { max-width: 560px; margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.06; letter-spacing: -.04em; }
.auth-brand-copy p { max-width: 500px; color: #9eb2c9; }
.auth-main { display: grid; place-items: center; padding: 42px 24px; }
.auth-card { width: min(100%, 530px); padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.4rem; }
.auth-card > p { margin: 16px 0 28px; color: var(--muted); }
.access-summary { display: grid; gap: 12px; margin: 26px 0; padding: 20px; border: 1px solid #cfe0f3; border-radius: 15px; background: #f5f9fe; }
.access-summary div { display: flex; gap: 12px; align-items: flex-start; }
.access-summary span { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: white; background: var(--teal-600); font-size: .72rem; font-weight: 900; }
.access-summary p { margin: 0; color: #43546d; font-size: .88rem; }
.auth-card .button { width: 100%; }
.auth-note { margin-top: 18px !important; color: #75859a !important; font-size: .8rem; text-align: center; }
.back-link { display: inline-flex; margin-bottom: 28px; color: var(--blue-600); font-size: .88rem; font-weight: 800; }

/* Manual público */
.manual-page { background: var(--surface-soft); }
.manual-hero { padding: 90px max(20px, calc((100% - 980px)/2)) 56px; color: white; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.manual-hero h1 { max-width: 750px; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.manual-hero p { max-width: 720px; color: #aec0d5; font-size: 1.05rem; }
.manual-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 38px; width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 90px; }
.manual-index { position: sticky; top: 116px; align-self: start; display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.manual-index strong { margin-bottom: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.manual-index a { padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.manual-index a:hover { color: var(--blue-600); background: #f1f6ff; }
.manual-articles { display: grid; gap: 18px; }
.guide-card { scroll-margin-top: 110px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.guide-card h2 { margin: 0 0 10px; font-size: 1.45rem; }
.guide-card > p { color: var(--muted); }
.guide-steps { display: grid; gap: 12px; margin-top: 22px; }
.guide-steps div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.guide-steps span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--blue-600); background: #edf3ff; font-weight: 900; }
.guide-steps p { margin: 4px 0 0; color: #465770; }
.status-table { display: grid; gap: 10px; margin-top: 20px; }
.status-table div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 14px; border-radius: 10px; background: #f5f8fc; }
.status-table span { color: var(--muted); }
.security-note { border-left: 4px solid var(--teal-600); background: #effaf8; }

@media (max-width: 980px) {
  .site-header { width: calc(100% - 24px); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 0; display: none; width: min(340px, calc(100vw - 24px)); padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .hero-visual { min-height: 400px; }
  .hero-visual > img { height: 400px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { min-height: 420px; }
  .auth-brand img { display: none; }
}

@media (max-width: 700px) {
  .site-header { min-height: 70px; margin-top: 8px; }
  .site-brand img { width: 48px; height: 38px; }
  .site-brand small { display: none; }
  .hero { width: calc(100% - 32px); min-height: auto; padding: 54px 0; }
  .hero h1 { font-size: 2.65rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 320px; }
  .hero-visual > img { height: 320px; }
  .signal-card { min-width: 125px; padding: 11px 13px; }
  .trust-strip { grid-template-columns: 1fr 1fr; width: calc(100% - 32px); }
  .trust-strip span + span { border-left: 0; }
  .trust-strip span:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-strip span:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { width: calc(100% - 32px); padding: 75px 0; }
  .section-tinted { width: 100%; padding-inline: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .cta-section { display: grid; width: calc(100% - 32px); padding: 32px 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; }
  .auth-brand { min-height: 350px; padding: 30px 24px; }
  .auth-main { padding: 26px 16px; }
  .auth-card { padding: 28px 22px; }
  .manual-hero { padding-top: 70px; }
  .manual-layout { grid-template-columns: 1fr; width: calc(100% - 32px); }
  .manual-index { position: static; }
  .guide-card { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
