:root {
    --navy: #0B3B5B;
    --blue: #0E4A6B;
    --sky: #D9EEF8;
    --bg: #F5FAFD;
    --card: #FFFFFF;
    --text: #0F172A;
    --muted: #5B7286;
    --accent: #B84C4C;
    --link: #0E5A7A;
    --border: #D7E4EC;
    --radius: 16px;
    --shadow-soft: 0 8px 24px rgba(7, 30, 52, 0.06);
    --shadow-card: 0 14px 40px rgba(8, 44, 74, 0.08);
    --focus: 0 0 0 3px rgba(14, 90, 122, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

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

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

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

.section {
    padding: 90px 0;
}

.topbar {
    background: var(--navy);
    color: #D3E8F3;
    font-size: 0.86rem;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 250, 253, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E4EDF3;
}

.header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
}

.logo strong {
    font-size: 1.2rem;
    letter-spacing: 0.2px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: #E6F2F9;
}

.logo-mark svg {
    width: 20px;
    height: 20px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.nav a {
    color: #234D68;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--link);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--blue);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    height: 46px;
    padding: 0 24px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all .2s ease;
    white-space: nowrap;
}

.btn:focus-visible,
a:focus-visible,
.menu-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.btn-acceso {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(184, 76, 76, 0.24);
}

.btn-acceso:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.hero {
    background: linear-gradient(160deg, #0E4A6B 0%, #0B3B5B 100%);
    color: #fff;
    padding-top: 84px;
    padding-bottom: 92px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 38px;
    align-items: center;
}

.kicker {
    display: inline-flex;
    margin: 0 0 14px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #B9DAEA;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 14ch;
}

.hero .lead {
    margin: 18px 0 0;
    color: #D0E5F2;
    max-width: 56ch;
    font-size: 1.05rem;
}

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

.btn-primary {
    background: #F2FAFF;
    color: #0C4666;
    border-color: #D3E9F6;
}

.btn-primary:hover {
    background: #fff;
}

.btn-ghost {
    color: #E2F0F8;
    border-color: rgba(226, 240, 248, 0.44);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-media .frame {
    border: 2px solid #8EC3DF;
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px rgba(6, 30, 49, 0.25);
}

.hero-art {
    border-radius: 16px;
}

h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-lead {
    margin: 14px 0 0;
    color: var(--muted);
    max-width: 64ch;
}

.light-pattern {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        repeating-linear-gradient(45deg, rgba(14, 90, 122, 0.03) 0 8px, transparent 8px 16px) border-box;
    border-top: 1px solid #e9f1f6;
    border-bottom: 1px solid #e9f1f6;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: start;
}

.check-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 34px;
    font-weight: 600;
    color: #1E3A4F;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #E9F6FD;
    border: 1px solid #BEE0F1;
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 11px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #0E4A6B;
    border-bottom: 2px solid #0E4A6B;
    transform: rotate(-45deg);
}

.faq-col h3 {
    margin: 0 0 14px;
    font-size: 1.28rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.service-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    margin-bottom: 10px;
}

.service-card:hover {
    border-color: #bfd6e4;
}

.service-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ECF6FB;
    color: #0E5A7A;
}

.service-card .icon svg {
    width: 22px;
    height: 22px;
}

.service-card strong {
    display: block;
    color: #18435e;
}

.service-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.dot-list {
    margin: 18px 0 30px;
    padding-left: 20px;
    color: #20445b;
}

.dot-list li {
    margin-bottom: 10px;
}

.circle-panel {
    display: grid;
    place-items: center;
}

.circle {
    width: min(440px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 28%, #F2FAFF, #D8EDF8);
    border: 1px solid #CFE2EE;
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 32px;
}

.band p {
    margin: 10px 0 0;
    color: var(--muted);
}

.footer {
    background: var(--navy);
    color: #D5E6F0;
    margin-top: 24px;
}

.footer-top {
    padding: 64px 0 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr;
    gap: 30px;
}

.footer-col h4 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: #C7DBE8;
    margin-bottom: 9px;
    font-size: 0.94rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-brand p {
    margin: 12px 0 14px;
    color: #C0D5E3;
    max-width: 30ch;
}

.logo-light {
    color: #E7F3FA;
}

.logo-light .logo-mark {
    background: rgba(231, 243, 250, 0.14);
    color: #E7F3FA;
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(231, 243, 250, 0.28);
    color: #E7F3FA;
    font-size: 0.84rem;
}

.badge svg {
    width: 14px;
    height: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(206, 225, 237, 0.2);
    min-height: 62px;
    display: flex;
    align-items: center;
    color: #AFC8D8;
    font-size: 0.88rem;
}

@media (max-width: 1080px) {
    .header-inner {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-block;
        order: 2;
    }

    .nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 10px);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow-card);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 2px;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .nav a:hover {
        background: #eef6fb;
    }

    .hero-grid,
    .split-grid,
    .wallet-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-media {
        order: -1;
    }

    .band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(1180px, calc(100% - 24px));
    }

    .section {
        padding: 72px 0;
    }

    .header-inner {
        min-height: 72px;
        gap: 10px;
    }

    .btn {
        height: 42px;
        padding: 0 16px;
        font-size: 0.86rem;
    }

    .hero {
        padding-top: 70px;
    }

    .hero .lead {
        font-size: 0.98rem;
    }

    .topbar-inner {
        min-height: 34px;
    }

    .footer-top {
        padding-top: 52px;
    }
}

body.no-scroll {
    overflow: hidden;
}

.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 23, 38, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 210;
}

.offcanvas-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.offcanvas {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: min(400px, 100vw);
    background: linear-gradient(135deg, #0B3B5B, #0E4A6B);
    color: #fff;
    box-shadow: -14px 0 28px rgba(5, 23, 37, 0.24);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 220;
    display: flex;
    flex-direction: column;
}

.offcanvas.open {
    transform: translateX(0);
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 10px;
}

.offcanvas-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.offcanvas-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(217, 238, 248, 0.38);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.offcanvas-close svg {
    width: 18px;
    height: 18px;
}

.offcanvas-body {
    padding: 10px 20px 24px;
    overflow-y: auto;
}

.off-label {
    display: block;
    margin: 10px 0 6px;
    font-size: 0.85rem;
    color: #d6e9f5;
}

.off-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #c8dceb;
    border-radius: 12px;
    background: #fff;
    color: #102536;
    padding: 10px 12px;
    font: inherit;
}

.off-input:focus-visible,
.btn-login:focus-visible,
.off-link:focus-visible,
.offcanvas-close:focus-visible,
.btn-acceso:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 238, 248, 0.35);
}

.btn-login {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #B84C4C;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 18px rgba(184, 76, 76, 0.22);
}

.btn-login:hover {
    filter: brightness(1.04);
}

.off-link {
    display: inline-block;
    margin-top: 12px;
    color: #d9eef8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.off-note {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(217, 238, 248, 0.3);
    border-radius: 14px;
    padding: 12px;
}

.off-note p {
    margin: 6px 0 0;
    color: #d5e7f3;
    font-size: 0.88rem;
}

.off-personal {
    margin-top: 16px;
    border: 1px solid rgba(217, 238, 248, 0.28);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.off-personal span {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #c4deee;
}

.off-personal a {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 680px) {
    .offcanvas {
        width: 100%;
    }
}
.off-alert {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    line-height: 1.4;
}

.off-alert.success {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(134, 239, 172, 0.55);
    color: #d1fae5;
}

.off-alert.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(252, 165, 165, 0.5);
    color: #fee2e2;
}

.off-alert.warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(253, 186, 116, 0.55);
    color: #ffedd5;
}

.off-input[disabled],
.btn-login[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* --- Offcanvas Auth Premium Overrides --- */
.offcanvas {
    width: min(420px, 100vw);
}

.offcanvas-overlay {
    backdrop-filter: blur(2px);
}

.offcanvas-toast {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.22);
    border: 1px solid rgba(186, 230, 253, 0.5);
    color: #e0f2fe;
    font-size: 0.86rem;
}

.pass-wrap {
    position: relative;
}

.pass-wrap .off-input {
    padding-right: 46px;
}

.pass-toggle {
    position: absolute;
    right: 8px;
    top: 7px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4b5f73;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.pass-toggle .eye-open,
.pass-toggle .eye-closed {
    width: 18px;
    height: 18px;
}

.pass-toggle .eye-closed {
    display: none;
}

.pass-toggle.showing .eye-open {
    display: none;
}

.pass-toggle.showing .eye-closed {
    display: block;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s ease, filter .2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
}

.btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .8s linear infinite;
    display: none;
}

.btn-login.loading .btn-spinner {
    display: inline-block;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.off-alert {
    opacity: 0;
    transform: translateY(-3px);
    animation: auth-alert-in .2s ease forwards;
}

@keyframes auth-alert-in {
    to { opacity: 1; transform: translateY(0); }
}

.attempts-box {
    margin-top: 12px;
}

#attemptText {
    margin: 0 0 8px;
    color: #d9ebf6;
    font-size: .84rem;
}

.attempt-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.attempt-bar .seg {
    height: 7px;
    border-radius: 999px;
    background: rgba(217, 238, 248, 0.28);
    border: 1px solid rgba(217, 238, 248, 0.2);
}

.attempt-bar.level-1 .seg:nth-child(1),
.attempt-bar.level-2 .seg:nth-child(-n+2),
.attempt-bar.level-3 .seg:nth-child(-n+3) {
    background: #F59E0B;
    border-color: #F59E0B;
}

.attempt-bar.level-3 .seg {
    background: #EF4444 !important;
    border-color: #EF4444 !important;
}

.blocked-box {
    margin-top: 12px;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(254, 202, 202, 0.5);
    background: rgba(127, 29, 29, 0.32);
}

.blocked-box strong {
    display: block;
    color: #fecaca;
    margin-bottom: 6px;
}

.blocked-box a {
    color: #fff;
    text-decoration: underline;
}

.off-security {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(217, 238, 248, 0.22);
    border-radius: 12px;
    padding: 10px 12px;
    color: #dbeaf4;
    font-size: .88rem;
}

.off-security svg {
    width: 16px;
    height: 16px;
}

.pass-toggle:focus-visible,
.off-input:focus-visible,
.offcanvas-close:focus-visible,
.btn-login:focus-visible,
.btn-acceso:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 238, 248, .35);
}

.off-input:disabled,
.btn-login:disabled,
.pass-toggle:disabled {
    opacity: .65;
    cursor: not-allowed;
}

@media (max-width: 780px) {
    .offcanvas {
        width: 100%;
    }
}
