:root {
    --bg: #f5f7fb;
    --card: rgba(255,255,255,.96);
    --blue: #17356f;
    --blue-dark: #0e2248;
    --gold: #c7a64b;
    --text: #1f2b3d;
    --muted: #627089;
    --line: #e4e9f2;
    --shadow: 0 16px 36px rgba(15,34,72,.08);
    --radius: 22px;
    --radius-sm: 18px;
    --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(199,166,75,.10), transparent 28%),
        linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.slim-container { overflow: hidden; }
.section { padding: 46px 0; }
.section.tight { padding: 34px 0; }
.section.alt { background: rgba(255,255,255,.46); }
.section-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23,53,111,.08);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; margin-bottom: 14px; color: var(--blue-dark); }
h2 { display: flex; flex-direction: column; box-sizing: content-box; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.14; margin-bottom: 10px; color: var(--blue-dark); }
h3 { font-size: 1rem; margin-bottom: 8px; color: var(--blue-dark); }
p { line-height: 1.62; color: var(--muted); }
.market-ticker {
    background: #020304;
    color: #eef3f8;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-track {
    display: flex;
    gap: 26px;
    min-width: max-content;
    padding: 8px 0;
    animation: ticker 36s linear infinite;
}
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; }
.ticker-item strong { color: #fff; }
.ticker-item em { font-style: normal; font-weight: 700; }
.ticker-item .up { color: #35c26b; }
.ticker-item .down { color: #ff6464; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-header {
    position: sticky; top: 0; z-index: 30;
    overflow: visible;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228,233,242,.82);
}
.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    min-height: 82px;
    position: relative;
    overflow: visible;
}
.main-nav { display: flex; align-items: center; gap: 20px;}
.nav-left { justify-content: flex-start; }
.main-nav a {
    font-size: 18px; font-weight: 600; color: #41506a;
}
.main-nav a:hover, .main-nav a:focus { color: var(--blue); }
.brand-centered { justify-self: center; }
.brand-centered img { width: 190px; max-width: 100%; }
.header-icons { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-dropdown { position: relative; z-index: 50; }
.icon-action {
    width: 38px; height: 38px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--blue);
    box-shadow: 0 8px 20px rgba(15,34,72,.06);
}
button.icon-action {
    padding: 0; margin: 0; font: inherit; cursor: pointer;
    appearance: none;
}
.icon-action svg { width: 18px; height: 18px; }
.header-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    z-index: 45;
    width: min(212px, calc(100vw - 24px));
    box-sizing: border-box;
    padding: 7px 8px 8px;
    font-size: 10px;
    line-height: 1.25;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.header-dropdown-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.header-dropdown-panel[hidden] { display: none !important; }
.header-dropdown-hint {
    margin: 0 0 5px;
    font-size: 9px;
    line-height: 1.35;
    color: var(--muted);
}
.header-auth-form { display: flex; flex-direction: column; gap: 4px; }
.header-auth-row--inline {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 5px 6px;
    align-items: center;
}
.header-auth-row label {
    font-size: 9px;
    font-weight: 600;
    color: var(--blue-dark);
    white-space: nowrap;
}
.header-auth-row input {
    width: 100%;
    min-width: 0;
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 6px;
    border: 1px solid #d8e0ee;
}
.header-auth-pin {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}
.header-auth-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 5px;
    padding-top: 4px;
    border-top: 1px solid rgba(228,233,242,.85);
}
.header-auth-chip {
    margin: 0;
    min-height: 22px;
    padding: 0 9px;
    font: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 7px;
    border: 1px solid rgba(23,53,111,.22);
    background: linear-gradient(135deg, var(--gold), #e6d29b);
    color: var(--blue-dark);
    cursor: pointer;
}
.header-auth-chip--ghost {
    background: rgba(255,255,255,.92);
    border-color: var(--line);
    color: var(--muted);
    font-weight: 600;
}
.header-auth-forgot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 5px;
    min-width: 26px;
    min-height: 22px;
    border-radius: 7px;
    border: 1px solid rgba(23,53,111,.22);
    background: rgba(255,255,255,.92);
    color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    font: inherit;
}
.header-auth-forgot-btn svg {
    width: 13px;
    height: 13px;
    display: block;
}
.header-auth-forgot-btn:hover {
    border-color: rgba(23,53,111,.35);
    color: var(--blue-dark);
}
.header-auth-forgot-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}
.nav-toggle {
    display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; font-size: 24px; color: var(--blue);
}
.hero.compact-hero { padding: 38px 0 18px; }
.hero-grid.compact {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: start;
}
.hero-copy p { max-width: 62ch; }
.hero-highlights {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px;
}
.mini-card, .content-card, .feature-card, .testimonial-card, .map-card, .contact-form, .office-logo-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.mini-card { padding: 16px; }
.mini-card strong { display:block; margin-bottom: 6px; color: var(--blue-dark); }
.mini-card span { color: var(--muted); line-height: 1.55; }
.mini-card.soft { background: linear-gradient(180deg, #fffaf0, #fff); }
.hero-stack { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.hero-side { display: grid; gap: 14px; }
.hero-photo {
    border-radius: 22px;
    background-size: cover; background-position: center;
    min-height: 180px;
    box-shadow: 0 16px 36px rgba(15,34,72,.14);
}
.hero-photo.large { min-height: 390px; }
.hero-photo.small { min-height: 188px; }
.logo-strip-section {
    margin-top: 4px;
    padding: 10px 0 14px;
    position: relative;
    z-index: 2;
}
.logos-inline-track {
    display: flex; gap: 14px; min-width: max-content; animation: ticker 34s linear infinite;
}
.office-logo-card {
    min-width: 230px;
    min-height: 72px;
    padding: 16px 14px;
    display:flex;
    align-items:center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.office-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.logo-mark {
    width: 48px; height: 48px; border-radius: 13px; display:inline-flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color:#fff; font-weight: 800; letter-spacing: .04em;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.office-logo-card strong { display:block; font-size: 13px; color: var(--blue-dark); }
.office-logo-card small { color: var(--muted); }
.dual-blocks {
    display:grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: stretch;
}
#quem-somos.section.tight { padding-top: 20px; }
.content-card { padding: 22px; }
.photo-card {
    min-height: 220px; background-size: cover; background-position: center; padding: 0;
}
.compact-photo-card { min-height: 210px; }
.section-head.center { text-align:center; margin: 0 auto 20px; max-width: 760px; }
.compact-head { margin-bottom: 18px; }
.social-proof-section .section-head.compact-head {
    margin-top: -1cm;
    margin-bottom: 10px;
}
.social-proof-section .section-head.compact-head h2 {
    white-space: nowrap;
}
#recursos .section-head.compact-head {
    margin-top: -1cm;
}
#recursos .section-head.compact-head h2 {
    white-space: nowrap;
}
.features-grid.compact-grid {
    display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.compact-card { padding: 18px; }
.feature-icon { font-size: 22px; margin-bottom: 10px; }
.compact-card p { margin-bottom: 0; }
.two-column-proof {
    display:grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start;
}
.compact-testimonials { display:grid; gap: 12px; }
.testimonial-card { padding: 16px; }
.testimonial-top { display:grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items:center; margin-bottom: 10px; }
.avatar-photo { width: 42px; height: 42px; border-radius: 50%; }
.testimonial-meta strong { display:block; color: var(--blue-dark); font-size: 13px; }
.testimonial-meta span, .testimonial-top time { font-size: 12px; color: var(--muted); }
.side-photo-panel .tall { min-height: 100%; height: 100%; min-height: 340px; }
.compact-contact-layout {
    display:grid; grid-template-columns: .72fr .92fr 1.06fr; gap: 16px; align-items: stretch;
}
.location-card p { margin-bottom: 0; }
.compact-map { overflow: hidden; }
.compact-map iframe { width:100%; height:100%; min-height: 280px; border:0; border-radius: var(--radius-sm); }
.form-wrap { padding: 20px; }
.contact-form.compact-form { padding: 0; box-shadow: none; border: 0; background: transparent; }
.form-row { margin-bottom: 12px; }
.two-fields { display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
label { display:block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--blue-dark); }
input, textarea {
    width:100%; border:1px solid #d8e0ee; border-radius: 12px; padding: 11px 12px;
    font: inherit; color: var(--text); background: #fff;
}
textarea { resize: vertical; }
.btn {
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    min-height: 44px; padding: 0 18px; border-radius: 14px; border: 0;
    background: linear-gradient(135deg, var(--gold), #e6d29b); color: var(--blue-dark); font-weight: 700; cursor: pointer;
}
.btn.full { width:100%; }
.alert {
    margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; font-size: 12px;
}
.alert.success { background: #eef9f0; color: #21613a; border: 1px solid #cdebd2; }
.alert.error { background: #fff1f1; color: #8e2c2c; border: 1px solid #f2c6c6; }
.site-footer { padding: 26px 0 34px; border-top: 1px solid var(--line); background: rgba(255,255,255,.76); }
.footer-grid.compact-footer { display:grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.footer-logo { width: 150px; margin-bottom: 10px; }
.site-footer h3 { font-size: 14px; margin-bottom: 8px; }
.footer-copy {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.78;
    color: var(--muted);
}
@media (max-width: 980px) {
    .header-grid { grid-template-columns: 1fr auto 1fr; }
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); padding: 14px 16px;
        background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        flex-direction: column; align-items: flex-start; gap: 12px;
    }
    .main-nav.open { display: flex; }
    .hero-grid.compact, .dual-blocks, .two-column-proof, .compact-contact-layout, .footer-grid.compact-footer {
        grid-template-columns: 1fr;
    }
    .features-grid.compact-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stack { grid-template-columns: 1fr; }
    .hero-photo.large { min-height: 270px; }
    .hero-side { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
    body { font-size: 13px; }
    .container { width: min(var(--container), calc(100% - 22px)); }
    .header-grid { min-height: 72px; gap: 10px; }
    .brand-centered img { width: 145px; }
    .header-icons { gap: 8px; }
    .icon-action { width: 34px; height: 34px; }
    .hero-highlights, .features-grid.compact-grid, .two-fields, .hero-side { grid-template-columns: 1fr; }
    .office-logo-card { min-width: 205px; min-height: 64px; padding: 12px 14px; }
    .section { padding: 34px 0; }
    .section.tight { padding: 26px 0; }
}
