:root {
    --navy: #003555;
    --teal: #01aabe;
    --blue: #0071be;
    --green: #6abc6d;
    --mint: #02a474;
    --ink: #123043;
    --ink-soft: #526b79;
    --bg: #f4fbfb;
    --bg-soft: #eef8f7;
    --white: #ffffff;
    --line: rgba(18, 48, 67, 0.12);
    --shadow: 0 24px 80px rgba(0, 53, 85, 0.12);
    --shadow-soft: 0 18px 40px rgba(0, 53, 85, 0.08);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: min(1180px, calc(100% - 32px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(1, 170, 190, 0.12), transparent 30%),
        radial-gradient(circle at left 20%, rgba(106, 188, 109, 0.1), transparent 28%),
        linear-gradient(180deg, #f8fcfc 0%, #f3fbfb 100%);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    background: var(--navy);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 12px;
    z-index: 9999;
}

.skip-link:focus {
    top: 12px;
}

.site-shell {
    overflow: clip;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(248, 252, 252, 0.86);
    border-bottom: 1px solid rgba(18, 48, 67, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 92px;
}

.brand img {
    width: clamp(150px, 16vw, 220px);
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.site-nav a {
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--green));
    opacity: 0;
    transform: scaleX(0.6);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(0, 53, 85, 0.14);
    background: rgba(255, 255, 255, 0.9);
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: var(--white);
    box-shadow: 0 16px 30px rgba(0, 53, 85, 0.18);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(0, 53, 85, 0.12);
    color: var(--navy);
}

.button-small {
    min-height: 44px;
    padding-inline: 18px;
}

.hero-banner {
    padding: 26px 0 10px;
}

.hero-banner-card {
    position: relative;
    overflow: hidden;
    min-height: clamp(190px, 30vh, 300px);
    padding: clamp(20px, 3vw, 32px);
    border-radius: 36px;
    display: flex;
    align-items: end;
    background-image:
        linear-gradient(90deg, rgba(0, 29, 51, 0.82) 0%, rgba(0, 53, 85, 0.58) 38%, rgba(0, 53, 85, 0.16) 100%),
        var(--hero-slide);
    background-size: cover;
    background-position: center;
    box-shadow: 0 28px 70px rgba(0, 53, 85, 0.2);
    isolation: isolate;
}

.hero-banner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        radial-gradient(circle at top right, rgba(1, 170, 190, 0.26), transparent 24%);
    animation: hero-pan 14s ease-in-out infinite alternate;
    z-index: -1;
}

.hero-banner-copy {
    width: min(680px, 100%);
    color: var(--white);
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.78);
}

.hero-banner-title {
    max-width: 18ch;
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.55rem);
    line-height: 1.08;
    text-wrap: balance;
}

.hero-banner-lead {
    max-width: 56ch;
    margin: 12px 0 0;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-banner-secondary {
    background: rgba(255, 255, 255, 0.9);
}

.hero {
    padding: 44px 0 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 28px;
    align-items: start;
}

.hero-copy,
.hero-panel,
.contact-panel,
.contact-copy,
.section-heading,
.feature-card,
.isapre-card,
.step-card,
.advisory-item,
.testimonial-card,
.faq-item,
.trust-item {
    opacity: 0;
    transform: translateY(18px);
}

.hero-panel {
    opacity: 1;
    transform: none;
    align-self: start;
    justify-self: end;
    width: min(100%, 400px);
}

.reveal.is-visible,
.hero-copy.is-visible,
.hero-panel.is-visible,
.contact-panel.is-visible,
.contact-copy.is-visible,
.section-heading.is-visible,
.feature-card.is-visible,
.isapre-card.is-visible,
.step-card.is-visible,
.advisory-item.is-visible,
.testimonial-card.is-visible,
.faq-item.is-visible,
.trust-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--mint);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3 {
    font-family: Manrope, Inter, Arial, sans-serif;
    line-height: 1.1;
    margin: 0;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4.9rem);
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.hero-main-title {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    max-width: 17ch;
}

h1 span {
    color: var(--teal);
}

.lead,
.section-heading p,
.hero-copy p,
.hero-note,
.feature-card p,
.isapre-card p,
.step-card p,
.advisory-item p,
.testimonial-card p,
.faq-item p,
.contact-copy p,
.site-footer p {
    color: var(--ink-soft);
}

.lead {
    max-width: 60ch;
    font-size: 1.08rem;
    margin: 16px 0 0;
}

.hero-actions,
.form-actions,
.final-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-points {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 53, 85, 0.09);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    font-size: 0.95rem;
}

.hero-points li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
}

.card-glass {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
        linear-gradient(135deg, rgba(1, 170, 190, 0.12), rgba(106, 188, 109, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
}

.hero-card {
    height: 100%;
}

.hero-card::before,
.contact-panel::before {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1, 170, 190, 0.18), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(0, 53, 85, 0.08);
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-card h2 {
    font-size: 1.22rem;
    margin-bottom: 8px;
}

.hero-card ul {
    padding-left: 18px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.hero-card li + li {
    margin-top: 6px;
}

.hero-summary {
    margin-bottom: 14px;
}

.hero-aside-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.stat-chip {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 53, 85, 0.08);
}

.stat-chip strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.stat-chip span {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 53, 85, 0.08);
    font-size: 0.82rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    flex: none;
}

.trust-band {
    padding-top: 8px;
    padding-bottom: 12px;
}

.trust-grid,
.feature-grid,
.steps-grid,
.testimonials-grid,
.isapre-grid {
    display: grid;
    gap: 18px;
}

.trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.isapre-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.isapre-card {
    display: grid;
    align-content: start;
}

.isapre-showcase {
    padding: 26px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(231, 248, 248, 0.78)),
        linear-gradient(180deg, rgba(1, 170, 190, 0.14), rgba(1, 170, 190, 0.04));
    border: 1px solid rgba(18, 48, 67, 0.08);
    box-shadow: 0 26px 58px rgba(0, 53, 85, 0.1);
}

.isapre-grid-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.isapre-card-showcase {
    min-height: 112px;
    padding: 0;
    opacity: 1;
    transform: none;
    background: rgba(255, 255, 255, 0.38);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: none;
}

.isapre-logo-wrap {
    display: grid;
    place-items: center;
    min-height: 74px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(245, 251, 250, 0.92);
    border: 1px solid rgba(18, 48, 67, 0.08);
}

.isapre-card-showcase .isapre-logo-wrap {
    min-height: 112px;
    height: 100%;
    margin-bottom: 0;
    padding: 14px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.36);
    border: none;
}

.isapre-logo-wrap-brand {
    background: #10a8a5;
}

.isapre-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
}

.isapre-logo-consalud {
    max-height: 34px;
}

.isapre-logo-large {
    max-height: 58px;
}

.isapre-logo-consalud-large {
    max-height: 48px;
}

.isapre-logo-banmedica {
    transform: scale(1.00);
    transform-origin: center;
}

.isapre-logo-vida-tres {
    transform: scale(1.00);
    transform-origin: center;
}

.steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item,
.feature-card,
.isapre-card,
.step-card,
.advisory-item,
.testimonial-card,
.contact-card,
.faq-item,
.contact-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(18, 48, 67, 0.1);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
}

.trust-item,
.feature-card,
.isapre-card,
.step-card,
.advisory-item,
.testimonial-card {
    padding: 24px;
}

.isapre-card-showcase {
    padding: 0;
    background: rgba(255, 255, 255, 0.38);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: none;
    border-radius: 24px;
}

.feature-card {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 156px;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 53, 85, 0.96), rgba(1, 170, 190, 0.94));
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: 0 14px 30px rgba(0, 53, 85, 0.18);
}

.feature-icon i {
    line-height: 1;
}

.feature-card h3 {
    margin-bottom: 0;
}

.icon-badge,
.step-number {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 53, 85, 0.96), rgba(1, 170, 190, 0.94));
    color: var(--white);
    font-weight: 800;
    margin-bottom: 18px;
}

.section {
    padding: 78px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(1, 170, 190, 0.05), rgba(106, 188, 109, 0.04));
}

.section-gradient {
    background: linear-gradient(135deg, rgba(0, 53, 85, 0.03), rgba(1, 170, 190, 0.07), rgba(106, 188, 109, 0.05));
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.feature-card h3,
.isapre-card h3,
.step-card h3,
.advisory-item h3,
.testimonial-card h3,
.site-footer h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.section-footnote {
    margin: 22px 0 0;
    font-size: 0.94rem;
    color: var(--ink-soft);
}

.section-footnote a,
.site-footer a,
.contact-card strong,
.faq-item summary {
    color: var(--navy);
}

.advisory-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.advisory-list {
    display: grid;
    gap: 18px;
}

.placeholder-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(1, 170, 190, 0.12);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    padding: 0 22px;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    padding: 22px 0;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    padding-right: 38px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 18px;
    font-size: 1.5rem;
    color: var(--teal);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0 0 20px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 24px;
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.contact-card {
    display: block;
    padding: 20px;
}

.contact-card strong {
    display: block;
    font-size: 1.08rem;
    margin: 6px 0;
}

.contact-label {
    display: inline-block;
    color: var(--mint);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-panel {
    padding: 24px;
    overflow: hidden;
}

.lead-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lead-form label {
    display: grid;
    gap: 6px;
}

.lead-form span {
    font-weight: 700;
    font-size: 0.9rem;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(18, 48, 67, 0.14);
    background: rgba(248, 252, 252, 0.92);
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lead-form textarea {
    min-height: 96px;
    resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.button:focus-visible,
.nav-toggle:focus-visible,
.contact-card:focus-visible,
.site-nav a:focus-visible {
    outline: none;
    border-color: rgba(1, 170, 190, 0.8);
    box-shadow: 0 0 0 4px rgba(1, 170, 190, 0.14);
}

.form-span-2 {
    grid-column: 1 / -1;
}

.form-alert {
    margin-top: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0, 113, 190, 0.08);
    border: 1px solid rgba(0, 113, 190, 0.12);
    color: var(--navy);
    font-size: 0.88rem;
}

.captcha-box {
    display: grid;
    grid-template-columns: auto minmax(360px, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 0;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(18, 48, 67, 0.08);
}

.captcha-label {
    margin: 0 0 8px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

#captcha-image {
    border-radius: 16px;
    border: 1px solid rgba(18, 48, 67, 0.1);
    background: var(--white);
}

.captcha-actions {
    display: grid;
    grid-template-columns: minmax(220px, 280px) auto;
    gap: 12px;
    align-items: center;
}

.captcha-input {
    display: grid;
    gap: 6px;
}

.captcha-input span {
    line-height: 1.35;
}

.consent-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.consent-row input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 2px;
    flex: none;
}

.consent-row span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.consent-row a {
    color: var(--navy);
    text-decoration: underline;
}

.field-error {
    min-height: 18px;
    color: #b42318;
    font-size: 0.8rem;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: rgba(180, 35, 24, 0.52);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.form-status {
    margin-top: 0;
    padding: 0;
    min-height: 20px;
    color: var(--ink-soft);
}

.form-status.is-success,
.form-status.is-error {
    padding: 14px 16px;
    border-radius: 16px;
}

.form-status.is-success {
    background: rgba(106, 188, 109, 0.12);
    color: #215b29;
    border: 1px solid rgba(106, 188, 109, 0.24);
}

.form-status.is-error {
    background: rgba(180, 35, 24, 0.08);
    color: #8f271d;
    border: 1px solid rgba(180, 35, 24, 0.18);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.final-showcase {
    padding: 18px 0 26px;
}

.final-cta-scene {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: 0;
    background-image:
        linear-gradient(90deg, rgba(3, 18, 29, 0.42), rgba(3, 18, 29, 0.2)),
        var(--final-scene);
    background-size: cover;
    background-position: center;
}

.final-cta-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1, 170, 190, 0.18), rgba(0, 53, 85, 0.1));
}

.final-cta-overlay {
    position: relative;
    min-height: 340px;
    padding: 54px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.final-cta-copy {
    max-width: 520px;
    padding: 26px 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(1, 170, 190, 0.8), rgba(0, 105, 130, 0.68));
    color: var(--white);
    box-shadow: 0 28px 60px rgba(0, 53, 85, 0.24);
}

.final-cta-copy .eyebrow,
.final-cta-copy h2 {
    color: var(--white);
}

.final-cta-copy h2 {
    max-width: 11ch;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.final-cta-overlay .final-cta-actions {
    margin-top: 0;
    justify-content: flex-end;
}

.final-cta-secondary {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(110, 98, 89, 0.5);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.site-footer {
    padding: 18px 0 42px;
}

.site-footer-dark {
    background:
        linear-gradient(135deg, rgba(4, 16, 24, 0.98), rgba(4, 41, 56, 0.98)),
        linear-gradient(180deg, rgba(1, 170, 190, 0.12), rgba(1, 170, 190, 0));
    color: var(--white);
    border-top: none;
}

.footer-surface {
    padding-top: 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.92fr 0.72fr;
    gap: 18px;
    padding-bottom: 24px;
    align-items: start;
}

.footer-brand,
.footer-card {
    display: block;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-logo-invert {
    filter: brightness(0) invert(1);
}

.footer-brand-block p,
.footer-list a,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links-block h2,
.footer-contact-block h2,
.footer-other-block h2 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--white);
}

.footer-card {
    min-height: 188px;
    padding: 24px 20px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(5, 70, 91, 0.5), rgba(2, 102, 120, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-list a {
    transition: color 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
    color: var(--white);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.92rem;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 146px;
    min-height: 58px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--mint));
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(2, 164, 116, 0.28);
}

.floating-whatsapp::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1100px) {
    .hero-grid,
    .contact-layout,
    .faq-grid,
    .advisory-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .isapre-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .captcha-box {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .captcha-actions {
        grid-template-columns: 1fr;
    }

    .final-cta-overlay {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 16px;
        left: 16px;
        padding: 18px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(18, 48, 67, 0.08);
        box-shadow: var(--shadow-soft);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a:not(.button)::after {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-panel {
        justify-self: stretch;
        width: 100%;
    }

    .hero-aside-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .trust-grid,
    .testimonials-grid,
    .feature-grid,
    .isapre-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 84px;
    }

    .button,
    .floating-whatsapp {
        width: 100%;
    }

    .hero-banner-card {
        min-height: 240px;
        align-items: end;
        background-position: 62% center;
    }

    .hero-banner-copy {
        width: 100%;
    }

    .hero-actions,
    .form-actions,
    .final-cta-actions {
        flex-direction: column;
    }

    .hero-aside-chips {
        grid-template-columns: 1fr;
    }

    .trust-grid,
    .feature-grid,
    .isapre-grid,
    .steps-grid,
    .testimonials-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-span-2 {
        grid-column: span 1;
    }

    .captcha-box {
        grid-template-columns: 1fr;
    }

    .section,
    .final-showcase {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .card-glass,
    .contact-panel,
    .final-cta-copy {
        padding: 22px;
    }

    .final-cta-overlay {
        min-height: 280px;
        padding: 26px 22px;
    }

    .hero-aside-chips {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding-inline: 18px;
    }

    .nav-wrap {
        min-height: 80px;
    }

    .floating-whatsapp {
        right: 14px;
        left: 14px;
        bottom: 14px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-copy,
    .hero-panel,
    .contact-panel,
    .contact-copy,
    .section-heading,
    .feature-card,
    .isapre-card,
    .step-card,
    .advisory-item,
    .testimonial-card,
    .faq-item,
    .trust-item,
    .final-cta-scene {
        opacity: 1;
        transform: none;
    }
}
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(2, 164, 116, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(2, 164, 116, 0); }
    100% { box-shadow: 0 0 0 0 rgba(2, 164, 116, 0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.isapre-card,
.feature-card,
.step-card,
.trust-item,
.advisory-item,
.testimonial-card,
.faq-item,
.contact-panel,
.final-cta-scene {
    transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
}

.floating-whatsapp {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.35s ease-out;
}

.floating-whatsapp.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.floating-whatsapp:hover {
    box-shadow: 0 20px 40px rgba(2, 164, 116, 0.35);
}

.button {
    transition: transform 0.1s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.nav-link::after {
    transition: width 0.25s ease-out;
}

.hero-banner-card {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.hero-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 72px rgba(0, 53, 85, 0.24);
}

.keyboard-nav *:focus {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

@keyframes hero-pan {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.04) translate3d(8px, -6px, 0);
        opacity: 1;
    }
}
