:root {
    --navy: #071a36;
    --navy-2: #0b274f;
    --ink: #102033;
    --muted: #667387;
    --line: #d9e2ee;
    --soft: #f3f7fb;
    --white: #ffffff;
    --red: #e11118;
    --shadow: 0 18px 38px rgba(7, 26, 54, 0.12);
}

* { box-sizing: border-box; }
body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.contact-icon { width: 20px; height: 20px; flex: 0 0 20px; }
body .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
}

.contact-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    align-items: center;
    gap: 28px;
    padding: 12px max(24px, calc((100% - 1240px) / 2));
    color: var(--white);
    background: rgba(7, 26, 54, 0.96);
    border-bottom: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
}
.contact-brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; font-weight: 950; }
.contact-brand img { width: 58px; height: 42px; object-fit: contain; }
.contact-brand strong { min-width: 0; overflow: hidden; font-size: 18px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.contact-brand small { display: block; margin-top: 4px; color: #b7c7db; font-size: 11px; font-weight: 850; }
.contact-nav { display: flex; gap: 26px; color: rgba(255,255,255,.82); font-weight: 850; }
.contact-nav .is-active, .contact-nav a:hover { color: var(--white); }
.contact-login { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 6px; color: var(--white); background: var(--red); font-weight: 950; white-space: nowrap; }

.contact-page { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 56px; }
.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    gap: 30px;
    align-items: stretch;
    padding: 38px;
    color: var(--white);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    box-shadow: var(--shadow);
}
.contact-hero-copy { align-self: center; }
.contact-hero-copy span { color: #b7c7db; font-size: 13px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.contact-hero h1 { max-width: 760px; margin: 12px 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: 0; }
.contact-hero p { max-width: 640px; margin: 0; color: #d7e1ee; font-size: 18px; line-height: 1.6; }
.contact-hero > img { width: 100%; height: 100%; min-height: 300px; display: block; object-fit: cover; border-radius: 8px; background: #e8eef6; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr); gap: 22px; margin-top: 24px; }
.contact-info-card, .contact-form-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(7, 26, 54, 0.08);
}
.contact-info-card h2, .contact-form-card h2 { margin: 0 0 18px; color: var(--navy); font-size: 28px; }
.contact-info-card { display: grid; gap: 14px; }
.contact-info-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.contact-info-row > .contact-icon { width: 42px; height: 42px; padding: 10px; border-radius: 6px; color: var(--white); background: var(--navy); }
.contact-info-row strong { display: block; color: var(--navy); }
.contact-info-row span { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; font-weight: 750; overflow-wrap: anywhere; }
.social-strip-image { width: 100%; max-height: 70px; object-fit: contain; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }

.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 7px; color: var(--navy); font-weight: 900; }
.contact-form input, .contact-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    outline: 0;
    resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--navy); background: var(--white); }
.contact-form button, .contact-whatsapp {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    color: var(--white);
    background: var(--red);
    font-weight: 950;
}
.contact-form-status { min-height: 20px; margin: 0; color: #071a36; font-weight: 850; }
.contact-whatsapp { width: 100%; margin-top: 14px; background: var(--navy); }

.contact-footer {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(160px, .6fr));
    gap: 30px;
    align-items: start;
    padding: 34px max(24px, calc((100% - 1240px) / 2));
    color: #d7e1ee;
    background: #061428;
}
.contact-footer > div {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 10px;
}
.contact-footer p,
.contact-footer a,
.contact-footer span {
    margin: 0;
    color: #b7c5d6;
    font-weight: 750;
}
.contact-footer > div > strong { color: var(--white); }
.contact-footer small {
    grid-column: 1 / -1;
    padding-top: 18px;
    color: #9fb0c6;
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
}

@media (max-width: 980px) {
    .contact-header { grid-template-columns: 1fr auto; }
    .contact-nav { display: none; }
    .contact-hero, .contact-grid, .contact-footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .contact-header {
        min-height: 70px;
        padding: 10px 16px;
        gap: 12px;
        color: var(--white) !important;
        background: rgba(7, 26, 54, 0.96) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    .contact-brand img { width: 46px; height: 34px; }
    .contact-brand strong { max-width: min(48vw, 190px); color: var(--white) !important; font-size: 14px; }
    .contact-brand small { display: none; }
    .contact-login { min-height: 40px; padding-inline: 12px; border-radius: 6px !important; }
    .contact-page { width: min(100% - 32px, 420px); padding-top: 22px; }
    .contact-hero { padding: 24px; }
    .contact-hero > img { min-height: 220px; }
    .contact-info-card, .contact-form-card { padding: 18px; }
    .contact-info-row { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; }
    .contact-info-row > .contact-icon { width: 36px; height: 36px; padding: 8px; }
    .contact-footer { padding: 30px 16px; }
}
