@font-face {
    font-family: "Inter";
    src: url("../branding/fonts/Inter-Variable.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 100 900;
}

@font-face {
    font-family: "Manrope";
    src: url("../branding/fonts/Manrope-Variable.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 200 800;
}

:root {
    --landing-bg: var(--ares-evo-blanco-nube, #f8fafc);
    --landing-surface: #f8fafc;
    --landing-text: var(--ares-evo-grafito-nocturno, #14213d);
    --landing-muted: #14213d;
    --landing-border: var(--ares-evo-gris-sistema, #f8fafc);
    --landing-primary: var(--ares-evo-azul-profundo, #073b4c);
    --landing-primary-2: #073b4c;
    --landing-data: var(--ares-evo-azul-datos, #4b83ff);
    --landing-cyan: var(--ares-evo-azul-evo, #00d4ff);
    --landing-green: var(--ares-evo-menta-operativa, #06d6a0);
    --landing-electric: var(--ares-evo-verde-electrico, #74e94e);
    --landing-action-dark: var(--landing-cyan);
    --landing-on-action-dark: var(--ares-evo-grafito-nocturno, #14213d);
    --landing-action-light: var(--landing-data);
    --landing-on-action-light: var(--ares-evo-blanco-nube, #f8fafc);
    --landing-primary-soft: #e8f3f7;
    --landing-danger: var(--ares-evo-rojo-alerta, #e63946);
    --landing-shadow: 0 24px 68px rgb(7 59 76 / 16%);
    --landing-header-height: 84px;
    --landing-next-section-peek: 56px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--landing-header-height) + 18px);
}

body {
    margin: 0;
    color: var(--landing-text);
    background: var(--landing-bg);
    font-family: var(--ares-evo-font-ui, "Inter", system-ui, sans-serif);
}

body.is-redirecting {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: var(--landing-header-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4.5vw, 64px);
    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid var(--landing-border);
    backdrop-filter: blur(18px);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.brand-link img {
    display: block;
    width: clamp(190px, 20vw, 280px);
    max-width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}

.site-nav a,
.primary-link,
.secondary-link,
.login-form button,
.register-form button,
.profile-actions button,
.external-login-button {
    border-radius: 8px;
    letter-spacing: 0;
}

.site-nav a {
    padding: 9px 12px;
    color: var(--landing-muted);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--landing-primary);
    background: var(--landing-primary-soft);
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 448px);
    gap: clamp(32px, 5vw, 76px);
    min-height: calc(100vh - var(--landing-header-height) - var(--landing-next-section-peek));
    align-items: center;
    overflow: hidden;
    padding: clamp(42px, 6vw, 82px) clamp(18px, 5.2vw, 78px) clamp(46px, 6vw, 76px);
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgb(0 212 255 / 22%), transparent 31%),
        radial-gradient(circle at 84% 82%, rgb(116 233 78 / 20%), transparent 30%),
        linear-gradient(128deg, #073b4c 0%, #14213d 52%, #06d6a0 100%);
}

.hero-section::before {
    position: absolute;
    inset: 0;
    content: "";
    background: url("/branding/ares-evo-spinner-dark.svg") 46% 50% / min(520px, 42vw) no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

.hero-section::after {
    position: absolute;
    inset: auto -16% -46% 42%;
    height: 58%;
    content: "";
    background: linear-gradient(90deg, transparent, rgb(0 212 255 / 14%), transparent);
    transform: rotate(-7deg);
    pointer-events: none;
}

.hero-content,
.login-panel {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--landing-green);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    margin-bottom: 18px;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    letter-spacing: 0;
    text-transform: none;
}

.hero-logo {
    display: block;
    width: min(100%, 760px);
    height: auto;
    max-height: 198px;
    object-fit: contain;
    object-position: left center;
}

.hero-tagline {
    margin: 22px 0 0;
    color: #ffffff;
    font-family: var(--ares-evo-font-brand, "Manrope", system-ui, sans-serif);
    font-size: clamp(1.52rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1.08;
}

.hero-copy {
    max-width: 660px;
    margin: 18px 0 0;
    color: rgb(255 255 255 / 90%);
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    font-weight: 900;
    text-decoration: none;
}

.primary-link {
    color: var(--landing-on-action-dark);
    background: var(--landing-action-dark);
    box-shadow: 0 14px 34px rgb(0 212 255 / 24%);
}

.primary-link:hover,
.primary-link:focus-visible {
    filter: brightness(1.06);
}

.secondary-link {
    color: var(--landing-cyan);
    border: 1px solid rgb(0 212 255 / 46%);
}

.secondary-link:hover,
.secondary-link:focus-visible {
    background: rgb(255 255 255 / 10%);
}

.hero-network-lockup,
.network-inline-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.18em;
    white-space: nowrap;
}

.hero-network-wordmark,
.network-inline-wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.22em;
}

.hero-network-wordmark img {
    display: inline-block;
    width: clamp(136px, 10.8vw, 184px);
    max-width: 32vw;
    height: auto;
    margin-left: 0;
    opacity: 0.82;
    filter: drop-shadow(0 12px 28px rgb(0 0 0 / 18%));
}

.network-inline-wordmark img {
    display: inline-block;
    width: min(150px, 36vw);
    height: auto;
    margin-left: 0;
}

.login-panel {
    color: var(--landing-text);
    background: var(--landing-surface);
    border: 1px solid rgb(231 238 243 / 88%);
    border-radius: 8px;
    box-shadow: var(--landing-shadow);
    padding: clamp(24px, 3.8vw, 34px);
    scroll-margin-top: calc(var(--landing-header-height) + 22px);
}

.login-panel h2,
.section-heading h2,
.split-band h2 {
    margin: 0;
    font-family: var(--ares-evo-font-brand, "Manrope", system-ui, sans-serif);
    letter-spacing: 0;
}

.login-panel h2 {
    color: var(--landing-text);
    font-size: clamp(1.58rem, 2.6vw, 2rem);
    line-height: 1.12;
}

.login-copy {
    margin: 12px 0 20px;
    color: var(--landing-muted);
    line-height: 1.5;
}

.external-login {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.external-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    width: 100%;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 900;
}

.google-login-button {
    color: #1f1f1f;
    background: #ffffff;
    border-color: #747775;
}

.apple-login-button {
    color: #ffffff;
    background: #000000;
    border-color: #000000;
}

.google-login-button:hover,
.google-login-button:focus-visible {
    border-color: #5f6368;
    box-shadow: 0 8px 20px rgb(60 64 67 / 10%);
}

.apple-login-button:hover,
.apple-login-button:focus-visible {
    background: #111111;
    border-color: #111111;
    box-shadow: 0 8px 20px rgb(0 0 0 / 14%);
}

.external-login-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    box-shadow: none;
}

.external-login-button[aria-busy="true"]:disabled {
    opacity: 1;
}

.external-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
}

.external-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.apple-icon {
    color: #ffffff;
}

.external-button-spinner {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ares-external-button-spin 0.7s linear infinite;
}

.google-login-button .external-button-spinner {
    color: #4285f4;
}

.apple-login-button .external-button-spinner {
    color: #ffffff;
}

@keyframes ares-external-button-spin {
    to {
        transform: rotate(360deg);
    }
}

.external-login-status {
    min-height: 18px;
    margin: -6px 0 12px;
    color: #9b1c1c;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
    color: #14213d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--landing-border);
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form label {
    display: grid;
    gap: 7px;
    color: var(--landing-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.login-form input[type="text"],
.login-form input[type="password"],
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--landing-text);
    background: #f8fafc;
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    outline: none;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.register-form input[type="text"]:focus,
.register-form input[type="email"]:focus,
.register-form input[type="tel"]:focus,
.register-form input[type="password"]:focus {
    border-color: var(--landing-data);
    box-shadow: 0 0 0 3px rgb(17 138 178 / 14%);
}

.checkline {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.checkline input {
    accent-color: var(--landing-data);
}

.login-form button,
.register-form button,
.profile-actions button {
    min-height: 46px;
    color: var(--landing-on-action-light);
    background: var(--landing-action-light);
    border: 1px solid var(--landing-action-light);
    cursor: pointer;
    font-weight: 900;
}

.login-form button:hover,
.login-form button:focus-visible,
.register-form button:hover,
.register-form button:focus-visible,
.profile-actions button:hover,
.profile-actions button:focus-visible {
    background: var(--landing-primary);
    border-color: var(--landing-primary);
}

.login-form button:disabled,
.register-form button:disabled,
.profile-actions button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.registration-prompt {
    margin: 16px 0 0;
    color: var(--landing-muted);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: center;
}

.registration-prompt a {
    color: var(--landing-data);
    text-decoration: none;
}

.registration-prompt a:hover,
.registration-prompt a:focus-visible {
    text-decoration: underline;
}

.is-profile-choice-open {
    overflow: hidden;
}

.is-register-open {
    overflow: hidden;
}

.register-modal[hidden] {
    display: none !important;
}

.register-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgb(7 59 76 / 68%);
    backdrop-filter: blur(12px);
}

.register-modal-card {
    width: min(100%, 560px);
    max-height: min(88vh, 780px);
    overflow: auto;
    padding: clamp(22px, 3.8vw, 32px);
    color: var(--landing-text);
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgb(20 33 61 / 30%);
}

.register-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.register-modal-header h2 {
    margin: 0;
    color: var(--landing-text);
    font-family: var(--ares-evo-font-brand, "Manrope", system-ui, sans-serif);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.register-close-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    color: var(--landing-primary);
    background: var(--landing-primary-soft);
    border: 1px solid var(--landing-border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.register-close-button:hover,
.register-close-button:focus-visible {
    color: var(--landing-on-action-light);
    background: var(--landing-primary);
}

.register-copy {
    margin: 0 0 14px;
    color: var(--landing-muted);
    line-height: 1.45;
}

.register-external-login {
    margin-bottom: 14px;
}

.register-form {
    display: grid;
    gap: 13px;
}

.register-form label {
    display: grid;
    gap: 7px;
    color: var(--landing-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.register-status {
    min-height: 22px;
    margin: 14px 0 0;
    color: var(--landing-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.register-status:empty {
    min-height: 0;
    margin-top: 0;
}

.register-status.is-error {
    color: var(--landing-danger);
}

.profile-choice[hidden] {
    display: none !important;
}

.profile-choice {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgb(7 59 76 / 62%);
    backdrop-filter: blur(10px);
}

.profile-choice-card {
    width: min(100%, 680px);
    padding: clamp(24px, 4vw, 34px);
    background: var(--landing-primary-soft);
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgb(20 33 61 / 28%);
}

.profile-choice p {
    margin: 0 0 12px;
    color: var(--landing-text);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.35;
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.profile-actions button {
    min-height: 68px;
    border-radius: 8px;
    font-size: clamp(1.2rem, 3vw, 1.85rem);
}

.profile-actions button:first-child {
    color: var(--landing-on-action-light);
    background: var(--landing-action-light);
    border-color: var(--landing-action-light);
}

.profile-actions button:first-child:hover,
.profile-actions button:first-child:focus-visible {
    background: var(--landing-primary);
    border-color: var(--landing-primary);
}

.profile-choice-helper {
    margin: 24px 0 0 !important;
    color: var(--landing-text) !important;
    font-size: clamp(1rem, 2.2vw, 1.35rem) !important;
    font-weight: 900 !important;
}

.login-status {
    min-height: 22px;
    margin: 14px 0 0;
    color: var(--landing-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.login-status:empty {
    min-height: 0;
    margin-top: 0;
}

.login-status.is-error {
    color: var(--landing-danger);
}

.content-band {
    scroll-margin-top: calc(var(--landing-header-height) + 22px);
    padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
    background: var(--landing-surface);
    border-bottom: 1px solid var(--landing-border);
}

.content-band:nth-of-type(odd) {
    background: #f8fafc;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.split-band h2 {
    color: var(--landing-primary);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.heading-lockup {
    display: inline;
    white-space: nowrap;
}

.heading-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    margin-left: 0.12em;
    vertical-align: -0.14em;
}

.heading-logo img {
    display: block;
    width: auto;
    height: clamp(42px, 4.8vw, 64px);
}

.feature-grid,
.assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-grid article,
.assurance-grid article,
.metric-list div {
    background: #f8fafc;
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    padding: 22px;
}

.feature-grid > article > span:first-child {
    color: var(--landing-green);
    font-weight: 900;
}

.network-inline-lockup {
    color: var(--landing-text);
    font-weight: inherit;
}

.feature-grid h3,
.assurance-grid h3 {
    margin: 12px 0 8px;
    color: var(--landing-primary);
}

.feature-grid p,
.assurance-grid p,
.split-band p,
.metric-list dd {
    margin: 0;
    color: var(--landing-muted);
    line-height: 1.55;
}

.split-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: start;
}

.metric-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.metric-list dt {
    margin-bottom: 6px;
    color: var(--landing-primary);
    font-size: 1.04rem;
    font-weight: 900;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(18px, 5vw, 72px);
    color: rgb(255 255 255 / 82%);
    background: var(--landing-primary);
}

.site-footer span {
    margin-left: auto;
    text-align: right;
    font-weight: 800;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.site-footer-links a {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
}

.site-footer img {
    display: block;
    width: 170px;
    height: auto;
}

.redirect-overlay[hidden] {
    display: none !important;
}

.redirect-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgb(0 212 255 / 16%), transparent 28%),
        linear-gradient(135deg, rgb(7 59 76 / 96%), rgb(13 86 106 / 94%));
    backdrop-filter: blur(12px);
}

.redirect-overlay img {
    width: 96px;
    height: 96px;
}

@media (max-width: 1040px) {
    .hero-section,
    .split-band {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-section::before {
        background-position: 86% 18%;
        background-size: min(420px, 58vw);
    }

    .login-panel {
        max-width: 560px;
    }

    .feature-grid,
    .assurance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --landing-header-height: 0px;
    }

    .site-header {
        position: static;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 18px;
    }

    .brand-link img {
        width: 206px;
    }

    .site-nav {
        width: 100%;
        padding-bottom: 2px;
    }

    .site-nav a {
        padding-inline: 8px;
        font-size: 0.86rem;
    }

    .hero-section {
        padding: 40px 18px 48px;
    }

    .hero-logo {
        max-height: none;
    }

    .hero-network-wordmark img {
        width: min(142px, 38vw);
        max-width: 38vw;
        margin-left: 0;
    }

    .network-inline-wordmark img {
        width: min(140px, 38vw);
    }

    .heading-logo img {
        height: clamp(38px, 9vw, 48px);
    }

    .profile-actions {
        grid-template-columns: 1fr;
    }

    .primary-link,
    .secondary-link,
    .hero-actions {
        width: 100%;
    }

    .site-footer span {
        margin-left: 0;
        text-align: left;
    }

    .auth-divider span {
        white-space: nowrap;
    }
}
