:root {
    --navy: #1a3c87;
    --navy-deep: #0e2154;
    --ink: #101a33;
    --ink-soft: #4a5672;
    --ink-faint: #8a93a8;
    --orange: #f39a1b;
    --yellow: #ffcc18;
    --grey: #8e908f;
    --paper: #fbfaf7;
    --paper-2: #f3f1ea;
    --line: #e4e1d8;
    --radius: 18px;
    --wrap: 1180px;
    --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; display: flex; flex-direction: column; }

.contacts { flex: 1; }

a { color: inherit; }

img { display: block; max-width: 100%; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
}

.site-header { padding: 28px 0 0; }

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: inline-flex; align-items: center; }

.brand img { height: 72px; width: auto; }

.header-cta {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--navy);
    padding: 10px 18px;
    border: 1.5px solid var(--navy);
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.header-cta:hover, .header-cta:focus-visible {
    background: var(--navy);
    color: #fff;
}

.hero { padding: 72px 0 96px; }

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--orange);
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 7.4vw, 96px);
    line-height: .95;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--navy-deep);
}

.lead {
    margin: 32px 0 0;
    max-width: 30ch;
    font-size: clamp(22px, 2.3vw, 29px);
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--ink);
}

.lead em {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.18em;
    color: var(--navy);
    background: linear-gradient(transparent 62%, rgba(255, 204, 24, .55) 62%, rgba(255, 204, 24, .55) 92%, transparent 92%);
    padding: 0 .08em;
}

.sublead {
    margin: 22px 0 0;
    max-width: 44ch;
    font-size: 19px;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(26, 60, 135, .7);
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover, .btn:focus-visible {
    background: var(--navy-deep);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -12px rgba(26, 60, 135, .8);
}

.btn svg { width: 18px; height: 18px; }

.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 14px repeat(4, 1fr);
    gap: 10px;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 1px 0 rgba(16, 26, 51, .04), 0 30px 60px -30px rgba(16, 26, 51, .25);
    grid-template-rows: repeat(4, 1fr);
    aspect-ratio: 1 / .62;
}

.tiles span { border-radius: 5px; }

.tiles .gap { background: none; }
.tiles .b { background: var(--navy); }
.tiles .y { background: var(--yellow); }
.tiles .o { background: var(--orange); }
.tiles .g { background: var(--grey); }
.tiles .e { background: none; }

.contacts {
    padding: 88px 0 104px;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
}

.section-title {
    margin: 0 0 40px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--navy-deep);
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    display: block;
    padding: 34px 34px 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--orange);
}

.card.alt::before { background: var(--navy); }

a.card:hover, a.card:focus-visible {
    border-color: #cfd6e6;
    box-shadow: 0 20px 40px -24px rgba(16, 26, 51, .35);
    transform: translateY(-2px);
}

.card-label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.card-value {
    display: block;
    font-size: clamp(21px, 2.3vw, 28px);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--ink);
    overflow-wrap: anywhere;
}

a.card .card-value {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.site-footer {
    background: var(--navy-deep);
    color: #b9c4de;
    font-size: 15px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.site-footer p { margin: 0; }

.site-footer .sep { margin: 0 10px; opacity: .45; }

.site-footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(243, 154, 27, .8);
}

.site-footer a:hover { color: var(--yellow); }

.stripe {
    display: flex;
    height: 6px;
}

.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--navy); }
.stripe span:nth-child(2) { background: var(--yellow); }
.stripe span:nth-child(3) { background: var(--orange); }
.stripe span:nth-child(4) { background: var(--grey); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.legal { padding: 56px 0 96px; }

.legal .wrap { max-width: 860px; }

.legal h1, .legal h2 {
    margin: 0 0 32px;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--navy-deep);
}

.legal h3 {
    margin: 48px 0 14px;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--navy-deep);
}

.legal p, .legal li {
    font-size: 17px;
    line-height: 1.7;
    color: #2b3550;
}

.legal p { margin: 0 0 16px; }

.legal ul, .legal ol { padding-left: 1.4em; margin: 0 0 20px; }

.legal li { margin-bottom: 8px; }

.legal li::marker { color: var(--orange); }

.legal ol.alfabetico { list-style-type: lower-alpha; }

.legal a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }

.legal .iub_footer {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
}

@media (max-width: 900px) {
    .hero { padding: 48px 0 72px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
    .tiles { max-width: 520px; }
}

@media (max-width: 640px) {
    body { font-size: 17px; }
    .wrap { padding: 0 20px; }
    .site-header { padding-top: 20px; }
    .brand img { height: 56px; }
    .header-cta { padding: 8px 14px; font-size: 14px; }
    .hero { padding: 36px 0 60px; }
    .lead { margin-top: 24px; }
    .sublead { font-size: 17px; }
    .tiles { padding: 20px; gap: 6px; grid-template-columns: repeat(4, 1fr) 6px repeat(4, 1fr); border-radius: 20px; }
    .tiles span { border-radius: 3px; }
    .contacts { padding: 64px 0 72px; }
    .section-title { margin-bottom: 28px; }
    .cards { grid-template-columns: 1fr; gap: 14px; }
    .card { padding: 26px 24px 28px 28px; }
    .site-footer .wrap { justify-content: flex-start; }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10;
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--navy-deep);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 18px 40px -16px rgba(14, 33, 84, .6);
    border-bottom: 3px solid var(--orange);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .25s, transform .25s;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
