:root {
    --color-primary: #3475e8;
    --color-primary-dark: #1e55b9;
    --color-ink: #17191d;
    --color-muted: #626874;
    --color-line: #e3e7ed;
    --color-surface: #ffffff;
    --color-soft: #f4f7fb;
    --color-dark: #111214d1;
    --shadow-sm: 0 12px 32px rgba(25, 35, 52, 0.08);
    --shadow-lg: 0 24px 64px rgba(15, 22, 34, 0.14);
    --radius-button: 8px;
    --radius-card: 18px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    transform: translateY(-150%);
    color: #fff;
    background: var(--color-primary);
    border-radius: var(--radius-button);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(16, 17, 19, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.navbar {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    position: relative;
    z-index: 102;
    width: 218px;
    flex: 0 0 auto;
}

.brand img {
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    padding: 10px 13px;
    color: rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-button);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu .nav-cta {
    margin-left: 8px;
    padding-inline: 18px;
    color: #fff;
    background: var(--color-primary);
}

.nav-menu .nav-cta:hover,
.nav-menu .nav-cta:focus-visible {
    background: #2466da;
}

.menu-toggle {
    position: relative;
    z-index: 102;
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-button);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    position: relative;
    display: grid;
    min-height: 760px;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: #15171b;
}

.hero--inner {
    min-height: 520px;
}

.hero-media,
.hero-media::after {
    position: absolute;
    inset: 0;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: "";
    background: linear-gradient(90deg, rgba(9, 11, 16, 0.9) 0%, rgba(10, 13, 20, 0.66) 50%, rgba(8, 10, 14, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 940px;
    margin-inline: auto;
    padding-block: 40px 90px;
    text-align: center;
}

.hero-content-d {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 940px;
    margin-inline: auto;
    padding-block: 180px 90px;
    text-align: center;
}

.eyebrow {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 10px;
    margin: 0 auto 20px;
    color: #9fc0ff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
    width: 28px;
    height: 2px;
    content: "";
    background: currentColor;
    border-radius: 2px;
}

.hero h1 {
    max-width: 940px;
    margin: 0 auto;
    font-size: clamp(2.6rem, 5vw, 5.25rem);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero--inner h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.hero-lead {
    max-width: 680px;
    margin: 26px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    justify-content: center;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 21px;
    color: #fff;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-button);
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.button--outline {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.46);
}

.button--outline:hover,
.button--outline:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--color-ink);
}

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

.section {
    padding-block: 96px;
}

.section--soft {
    background: var(--color-soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading--left {
    margin-inline: 0;
    text-align: left;
}

.section-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2,
.content-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    text-wrap: balance;
}

.section-heading p {
    margin: 17px auto 0;
    color: var(--color-muted);
    font-size: 1.06rem;
    width: 90%;
}

.section-heading--left p {
    margin-inline: 0;
}

.intro-grid,
.contact-grid,
.split-grid {
    display: grid;
    align-items: center;
    gap: 64px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.intro-art {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: url("../images/planes_novedades.jpeg") center / cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
}

.intro-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(145deg, rgba(41, 101, 212, 0.12), rgba(9, 12, 18, 0.4));
}

.metric-card {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    max-width: 260px;
    padding: 22px;
    color: #fff;
    background: rgba(15, 17, 21, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
}

.metric-card strong,
.metric-card span {
    display: block;
}

.metric-card strong {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.metric-card span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.3;
}

.content-heading p {
    margin: 20px 0 0;
    color: var(--color-muted);
}

.check-list,
.service-list,
.footer-links,
.summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 450;
}

.check-list svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--color-primary);
}

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

.service-card {
    padding: 30px 26px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 20px 42px rgba(25, 35, 52, 0.13);
    transform: translateY(-5px);
}

.icon-disc {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 24px;
    color: #fff;
    background: linear-gradient(145deg, #4e88ee, #245fcb);
    border-radius: 50%;
    place-items: center;
    box-shadow: 0 10px 22px rgba(52, 117, 232, 0.25);
}

.icon-disc svg {
    width: 27px;
    height: 27px;
}

.service-card h3,
.plan-card h3,
.info-card h3,
.process-card h3 {
    margin: 0;
    font-size: 1.22rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.service-card h3 {
    white-space: nowrap;
}

.service-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 0.94rem;
    text-align: center;
    line-height: 1.3;
}

.service-list li {
    padding: 0;
}

.plans-panel {
    position: relative;
    overflow: hidden;
    padding: 56px;
    color: #fff;
    background: linear-gradient(135deg, #1b1d22, #050607);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.plans-panel::before {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 340px;
    height: 340px;
    content: "";
    background: radial-gradient(circle, rgba(66, 128, 240, 0.3), transparent 68%);
}

.plans-grid {
    position: relative;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
    padding: 26px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    text-align: center;
}

.plan-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.94rem;
}

.contact-grid {
    align-items: start;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.contact-details {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.contact-item .icon-disc {
    width: 44px;
    height: 44px;
    margin: 0;
    flex: 0 0 auto;
}

.contact-item .icon-disc svg {
    width: 20px;
    height: 20px;
}

.contact-item a,
.contact-item span:last-child {
    overflow-wrap: anywhere;
}

.form-card {
    padding: 38px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
}

.form-card h2,
.form-card h3 {
    margin-top: 0;
}

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

.field {
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field label,
.field-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 450;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--color-ink);
    background: #fff;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    min-height: 128px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(52, 117, 232, 0.12);
}

.field input[type="file"] {
    padding: 9px;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.captcha-row {
    display: grid;
    align-items: end;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.captcha-question {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 27px;
    padding: 10px 16px;
    color: #fff;
    background: var(--color-dark);
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-muted);
    font-size: 0.7rem;
}

.checkbox-field input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--color-primary);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 25px;
}

.form-status {
    display: none;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 650;
}

.form-status.is-visible {
    display: block;
}

.form-status--success {
    color: #155a37;
    background: #e8f8ef;
    border: 1px solid #b9e8cc;
}

.form-status--error {
    color: #842929;
    background: #fff0f0;
    border: 1px solid #f0c4c4;
}

.form-section {
    padding-top: 22px;
    border-top: 1px solid var(--color-line);
    grid-column: 1 / -1;
}

.form-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 1.12rem;
}

.form-section-title .icon-disc {
    width: 42px;
    height: 42px;
    margin: 0;
}

.form-section-title .icon-disc svg {
    width: 19px;
    height: 19px;
}

.application-layout {
    display: grid;
    align-items: start;
    gap: 42px;
    grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
}

.application-aside {
    position: sticky;
    top: 112px;
}

.application-aside p {
    color: var(--color-muted);
}

.summary-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.91rem;
    font-weight: 450;
}

.summary-list svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--color-primary);
}

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

.process-card,
.info-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.process-card p,
.info-card p {
    margin: 12px 0 0;
    color: var(--color-muted);
}

.step-number {
    display: grid;
    width: 45px;
    height: 45px;
    margin: 0 auto 20px;
    color: #fff;
    background: var(--color-primary);
    border-radius: 50%;
    font-weight: 850;
    place-items: center;
}

.legal-note {
    padding: 22px;
    color: var(--color-muted);
    background: var(--color-soft);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 10px 10px 0;
    font-size: 0.9rem;
}

.site-footer {
    padding-block: 72px 28px;
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(180deg, rgb(28, 27, 27) 0%, rgb(0, 0, 0) 100%), url('/images/footer.jpg');
    background-position: center;
    background-size: cover;
}

.footer-grid {
    display: grid;
    gap: 44px;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    align-items: start;
}

.footer-brand img {
    width: 200px;
    height: auto;
}

.footer-brand p {
    max-width: 310px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.7rem;
    width: 70%;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.footer-links {
    display: grid;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    display: grid;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    place-items: center;
}

.social-links svg {
    width: 19px;
    height: 19px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 58px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-credit {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.footer-credit img {
    width: 76px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-credit a:hover img,
.footer-credit a:focus-visible img {
    opacity: 1;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

:focus-visible {
    outline: 3px solid rgba(52, 117, 232, 0.45);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intro-grid,
    .split-grid {
        gap: 42px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .navbar {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        z-index: 101;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100vh - 94px);
        max-height: calc(100dvh - 94px);
        padding: 12px;
        overflow-y: auto;
        background: rgba(10, 11, 13, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu a {
        width: 100%;
        margin: 0;
        padding: 12px 14px;
        text-align: left;
    }

    .nav-menu a:not(.nav-cta):hover,
    .nav-menu a:not(.nav-cta):focus-visible,
    .nav-menu a[aria-current="page"] {
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-menu .nav-cta {
        width: 100%;
        margin: 6px 0 0;
        text-align: center;
    }

    .contact-grid,
    .application-layout {
        grid-template-columns: 1fr;
    }

    .application-aside {
        position: static;
    }

    .plans-grid,
    .process-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .navbar {
        min-height: 74px;
    }

    .brand {
        width: 185px;
    }

    .hero,
    .hero--inner {
        min-height: 620px;
    }

    .hero-content {
        padding-block: 125px 72px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 8vw, 3.2rem);
    }

    .hero-title-line {
        white-space: nowrap;
    }

    .section {
        padding-block: 72px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .intro-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .intro-art {
        min-height: 330px;
    }

    .services-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field--full {
        grid-column: auto;
    }

    .form-section {
        grid-column: auto;
    }

    .plans-panel,
    .form-card {
        padding: 28px 20px;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-question {
        margin-top: 0;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .button {
        width: 100%;
    }

    .footer-grid {
        gap: 42px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand {
        margin: 0 auto;
    }

    .footer-brand img {
        width: 185px;
    }

    .footer-brand p {
        width: 100%;
        max-width: 320px;
        margin: 18px auto 0;
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .site-footer h2,
    .site-footer h3 {
        margin-bottom: 12px;
    }

    .footer-links {
        justify-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        gap: 4px;
        margin-top: 44px;
        text-align: center;
    }

    .footer-credit {
        margin-top: 18px;
    }
    
    .eyebrow {
        font-size: 0.6rem !important;
    }
    
    .metric-card {
        right: auto;
        left: 50%;
        width: calc(100% - 48px);
        max-width: 260px;
        text-align: center;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
