:root {
    --nexo-bg: #07110d;
    --nexo-bg-soft: #0e1d16;
    --nexo-card: rgba(12, 28, 21, 0.82);
    --nexo-card-solid: #10231a;
    --nexo-line: rgba(255, 255, 255, 0.12);
    --nexo-text: #f4fff8;
    --nexo-muted: rgba(244, 255, 248, 0.72);
    --nexo-soft: rgba(244, 255, 248, 0.56);
    --nexo-green: #1a8215;
    --nexo-green-light: #58c45a;
    --nexo-blue: #2f7df6;
    --nexo-gold: #f3c969;
    --nexo-danger: #ff5a66;
    --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.home-360nexo {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-sans);
    color: var(--nexo-text);
    background:
        radial-gradient(circle at 8% 10%, rgba(26, 130, 21, 0.34), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(47, 125, 246, 0.22), transparent 34%),
        linear-gradient(135deg, #06100c 0%, #0a1711 46%, #07110d 100%);
    overflow-x: hidden;
}

body.home-360nexo::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 72%);
}

.nexo-header {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nexo-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--nexo-text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 22px;
}

.nexo-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(26, 130, 21, 0.24);
}

.nexo-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nexo-nav-link,
.nexo-nav-login {
    border: 1px solid var(--nexo-line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--nexo-text);
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.nexo-nav-login {
    background: linear-gradient(135deg, var(--nexo-green), var(--nexo-green-light));
    border-color: transparent;
    color: #041007;
}

.nexo-page {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto 0;
}

.nexo-hero {
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.62fr);
    gap: 34px;
    align-items: center;
}

.nexo-hero-copy {
    padding: 36px 0;
}

.nexo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nexo-green-light);
    background: rgba(26, 130, 21, 0.14);
    border: 1px solid rgba(88, 196, 90, 0.24);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
}

.nexo-title {
    margin: 26px 0 16px;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.92;
    letter-spacing: -0.08em;
    color: var(--nexo-text);
    max-width: 760px;
}

.nexo-title span {
    background: linear-gradient(135deg, var(--nexo-green-light), var(--nexo-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nexo-subtitle {
    margin: 0;
    max-width: 720px;
    font-size: clamp(21px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: var(--nexo-text);
}

.nexo-description {
    margin: 18px 0 0;
    max-width: 680px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--nexo-muted);
}

.nexo-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.nexo-primary-action,
.nexo-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.nexo-primary-action {
    border: none;
    background: linear-gradient(135deg, var(--nexo-green-light), var(--nexo-green));
    color: #041007;
    box-shadow: 0 18px 44px rgba(26, 130, 21, 0.26);
}

.nexo-secondary-action {
    border: 1px solid var(--nexo-line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--nexo-text);
}

.nexo-trust {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nexo-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--nexo-line);
    color: var(--nexo-muted);
    font-size: 13px;
    font-weight: 700;
}

.nexo-login-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)),
        var(--nexo-card);
    border: 1px solid var(--nexo-line);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.nexo-login-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.nexo-login-head img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
}

.nexo-login-head h2 {
    margin: 0;
    font-size: 24px;
    color: var(--nexo-text);
    letter-spacing: -0.04em;
}

.nexo-login-head p {
    margin: 4px 0 0;
    color: var(--nexo-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.nexo-hidden-tabs {
    display: none !important;
}

.home-360nexo .tab-content {
    margin: 0;
}

.home-360nexo .tab-panel {
    display: none;
}

.home-360nexo .tab-panel.active {
    display: block;
}

.home-360nexo .input-group {
    width: 100%;
    min-height: 52px;
    margin: 0 0 14px;
    border-radius: 17px;
    border: 1px solid var(--nexo-line);
    background: rgba(255, 255, 255, 0.07);
}

.home-360nexo .input-group i {
    color: var(--nexo-green-light);
}

.home-360nexo .input-group input {
    color: var(--nexo-text);
    font-size: 14px;
}

.home-360nexo .input-group input::placeholder {
    color: rgba(244,255,248,0.48);
}

.home-360nexo .password-toggle {
    width: 42px;
    height: 42px;
    margin-right: 5px;
    color: var(--nexo-muted);
    background: transparent !important;
}

.nexo-login-button,
.home-360nexo #loginBtn {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--nexo-green-light), var(--nexo-green));
    color: #041007;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(26, 130, 21, 0.25);
}

.home-360nexo #forgotPasswordLink {
    display: inline-block;
    margin-top: 16px;
    color: var(--nexo-muted);
    font-size: 13px;
    text-decoration: none;
}

.home-360nexo #forgotPasswordLink:hover {
    color: var(--nexo-green-light);
}

.nexo-access-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--nexo-line);
    color: var(--nexo-soft);
    font-size: 12.5px;
    line-height: 1.55;
}

.nexo-signup-disabled {
    display: none !important;
}

.nexo-modules {
    margin: 20px 0 60px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nexo-modules article {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--nexo-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
}

.nexo-modules i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: rgba(88,196,90,0.12);
    color: var(--nexo-green-light);
    font-size: 20px;
}

.nexo-modules h3 {
    margin: 16px 0 8px;
    font-size: 18px;
    color: var(--nexo-text);
}

.nexo-modules p {
    margin: 0;
    color: var(--nexo-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.nexo-footer {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--nexo-soft);
    font-size: 13px;
}

.nexo-footer a {
    color: var(--nexo-green-light);
    text-decoration: none;
}

#supportBtn[hidden],
[hidden] {
    display: none !important;
}

@media (max-width: 940px) {
    .nexo-header {
        width: min(100% - 28px, 1180px);
    }

    .nexo-page {
        width: min(100% - 28px, 1180px);
        margin-top: 8px;
    }

    .nexo-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .nexo-login-card {
        max-width: 520px;
    }

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

@media (max-width: 620px) {
    .nexo-header {
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .nexo-nav {
        width: 100%;
        justify-content: space-between;
    }

    .nexo-nav-link,
    .nexo-nav-login {
        flex: 1;
        text-align: center;
    }

    .nexo-hero-copy {
        padding-top: 18px;
    }

    .nexo-title {
        font-size: 54px;
    }

    .nexo-subtitle {
        font-size: 24px;
    }

    .nexo-login-card {
        padding: 22px;
        border-radius: 24px;
    }

    .nexo-modules {
        grid-template-columns: 1fr;
    }

    .nexo-footer {
        flex-direction: column;
    }
}

/* 360Nexo auth secondary pages: forgot/reset password */
body.nexo-auth-flow {
    min-height: 100vh;
    display: block;
}

.nexo-auth-page {
    width: min(100% - 28px, 480px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 40px 0;
}

.nexo-auth-card {
    width: 100%;
    border: 1px solid var(--nexo-line);
    border-radius: 30px;
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)),
        var(--nexo-card);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.nexo-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--nexo-text);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 22px;
}

.nexo-auth-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
}

.nexo-auth-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    margin: 0 0 18px;
    background: rgba(88,196,90,0.12);
    color: var(--nexo-green-light);
    font-size: 26px;
}

.nexo-auth-card h1 {
    margin: 0 0 10px;
    color: var(--nexo-text);
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.nexo-auth-card p {
    margin: 0 0 22px;
    color: var(--nexo-muted);
    font-size: 14px;
    line-height: 1.65;
}

.nexo-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--nexo-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.nexo-auth-back:hover {
    color: var(--nexo-green-light);
}

.nexo-auth-note {
    margin: 18px 0 0 !important;
    padding-top: 16px;
    border-top: 1px solid var(--nexo-line);
    color: var(--nexo-soft) !important;
    font-size: 12.5px !important;
}

/* 360Nexo password flow polish — layout aligned, not modal-centered */
@media (min-width: 941px) {
    body.nexo-auth-flow {
        background:
            radial-gradient(circle at 8% 10%, rgba(26, 130, 21, 0.34), transparent 30%),
            radial-gradient(circle at 82% 8%, rgba(47, 125, 246, 0.22), transparent 34%),
            linear-gradient(135deg, #06100c 0%, #0a1711 46%, #07110d 100%);
    }

    .nexo-auth-page {
        width: min(1180px, calc(100% - 40px));
        min-height: 100vh;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 54px 0;
    }

    .nexo-auth-card {
        width: min(100%, 560px);
        margin-left: clamp(0px, 4vw, 72px);
    }
}

.nexo-auth-card {
    text-align: left;
}

.nexo-auth-card .input-group {
    max-width: none;
}

.nexo-auth-card .nexo-login-button {
    justify-content: center;
}

.nexo-auth-note a,
.nexo-auth-card a[href*="360crecimiento.com"] {
    color: var(--nexo-green-light);
    text-decoration: none;
    font-weight: 800;
}

/* 360Nexo access polish — brand consistency and alignment */
:root {
    --nexo-blue: #84c318;
    --nexo-lime: #a6d719;
}

.nexo-title span {
    background: linear-gradient(135deg, var(--nexo-green-light), var(--nexo-lime));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nexo-secondary-action {
    display: none !important;
}

.nexo-trust {
    display: none !important;
}

.home-360nexo #forgotPasswordLink {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 18px;
}

.nexo-access-note {
    text-align: center;
}

.nexo-footer {
    justify-content: center;
    text-align: center;
}

.nexo-footer a {
    color: var(--nexo-green-light);
    text-decoration: none;
    font-weight: 800;
}

.nexo-footer a:hover {
    text-decoration: underline;
}

/* Recentrar password pages sin volverlas una caja genérica chica */
@media (min-width: 941px) {
    .nexo-auth-page {
        width: min(100% - 40px, 1180px);
        min-height: 100vh;
        margin: 0 auto;
        display: grid;
        place-items: center;
        padding: 54px 0;
    }

    .nexo-auth-card {
        width: min(100%, 560px);
        margin-left: 0 !important;
    }
}

.nexo-auth-card {
    text-align: left;
}

.nexo-auth-card h1,
.nexo-auth-card p.nexo-auth-note {
    text-align: left;
}

.nexo-auth-note {
    text-align: left;
}

/* 360Nexo polish 2 — cleaner hero, no redundant nav, centered copy */
.nexo-header {
    justify-content: flex-start;
}

.nexo-nav,
.nexo-kicker {
    display: none !important;
}

.nexo-hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nexo-title {
    max-width: 820px;
}

.nexo-subtitle,
.nexo-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.nexo-actions {
    justify-content: center;
}

.nexo-title span {
    background: linear-gradient(135deg, #58c45a, #a6d719);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nexo-primary-action {
    min-width: min(100%, 520px);
}

.home-360nexo #forgotPasswordLink {
    display: block;
    text-align: center;
}

/* Password pages: keep card centered and make content intentionally centered */
body.nexo-auth-flow .nexo-auth-page {
    display: grid;
    place-items: center;
    width: min(100% - 40px, 1180px);
}

body.nexo-auth-flow .nexo-auth-card {
    width: min(100%, 560px);
    margin-left: 0 !important;
    text-align: center;
}

body.nexo-auth-flow .nexo-auth-brand {
    width: 100%;
    justify-content: center;
}

body.nexo-auth-flow .nexo-auth-icon {
    margin-left: auto;
    margin-right: auto;
}

body.nexo-auth-flow .nexo-auth-card h1,
body.nexo-auth-flow .nexo-auth-card p {
    text-align: center;
}

body.nexo-auth-flow .input-group {
    text-align: left;
}

body.nexo-auth-flow .nexo-auth-back {
    width: 100%;
    justify-content: center;
}

body.nexo-auth-flow .nexo-auth-note {
    text-align: center !important;
}
