
/*
 * Modo canvas automático para la página que contiene [noesica_inicio], [noesica_home] o [noesica_info_legal].
 * Funciona como una alternativa ligera a Elementor Canvas: sin header, footer, sidebar, título ni márgenes del tema.
 */
html:has(body.noesica-canvas-page),
body.noesica-canvas-page,
body.noesica-canvas-template {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    background: #050816 !important;
}

body.noesica-canvas-page .noesica-canvas-root,
body.noesica-canvas-template .noesica-canvas-root {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
}

body.noesica-canvas-page .nsx-wrap,
body.noesica-canvas-template .nsx-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

body.noesica-canvas-template .nsx-wrap {
    left: auto;
    right: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Respaldo para temas que no permitan reemplazar completamente la plantilla. */
body.noesica-shortcode-page header,
body.noesica-shortcode-page footer,
body.noesica-shortcode-page aside,
body.noesica-shortcode-page .site-header,
body.noesica-shortcode-page .site-footer,
body.noesica-shortcode-page .sidebar,
body.noesica-shortcode-page .widget-area,
body.noesica-shortcode-page .entry-header,
body.noesica-shortcode-page .page-header,
body.noesica-shortcode-page .post-thumbnail,
body.noesica-shortcode-page .breadcrumbs,
body.noesica-shortcode-page .breadcrumb,
body.noesica-shortcode-page .comments-area {
    display: none !important;
}

body.noesica-shortcode-page #page,
body.noesica-shortcode-page .site,
body.noesica-shortcode-page .site-content,
body.noesica-shortcode-page .content-area,
body.noesica-shortcode-page .site-main,
body.noesica-shortcode-page main,
body.noesica-shortcode-page article,
body.noesica-shortcode-page .entry-content,
body.noesica-shortcode-page .wp-site-blocks,
body.noesica-shortcode-page .wp-block-post-content,
body.noesica-shortcode-page .is-layout-constrained,
body.noesica-shortcode-page .is-layout-flow {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.noesica-shortcode-page .entry-content > * {
    max-width: none !important;
}

body.admin-bar.noesica-canvas-template {
    min-height: calc(100vh - 32px) !important;
}

@media (max-width: 782px) {
    body.admin-bar.noesica-canvas-template {
        min-height: calc(100vh - 46px) !important;
    }
}

:root {
    --nsx-bg: #050816;
    --nsx-bg-2: #07111f;
    --nsx-card: rgba(255,255,255,.075);
    --nsx-card-strong: rgba(255,255,255,.115);
    --nsx-border: rgba(255,255,255,.16);
    --nsx-text: #f5f8ff;
    --nsx-muted: rgba(245,248,255,.72);
    --nsx-soft: rgba(245,248,255,.55);
    --nsx-cyan: #39e6ff;
    --nsx-blue: #5877ff;
    --nsx-violet: #b45cff;
    --nsx-green: #3cffb0;
    --nsx-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.nsx-wrap {
    color: var(--nsx-text);
    background: radial-gradient(circle at top left, rgba(57,230,255,.16), transparent 30%),
                radial-gradient(circle at 85% 10%, rgba(180,92,255,.18), transparent 28%),
                linear-gradient(180deg, var(--nsx-bg), var(--nsx-bg-2) 55%, #04050d);
    overflow: hidden;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nsx-wrap * {
    box-sizing: border-box;
}

.nsx-container {
    width: min(1120px, calc(100% - 44px));
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

.nsx-hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    padding: 78px 0 64px;
}

.nsx-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .34;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.nsx-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .75;
    animation: nsxFloat 9s ease-in-out infinite;
}

.nsx-orb-a {
    width: 340px;
    height: 340px;
    left: -90px;
    top: 140px;
    background: rgba(57,230,255,.16);
}

.nsx-orb-b {
    width: 420px;
    height: 420px;
    right: -130px;
    top: 90px;
    background: rgba(180,92,255,.14);
    animation-delay: -2.5s;
}

@keyframes nsxFloat {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(16px,-22px,0) scale(1.03); }
}

.nsx-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .88fr);
    gap: 48px;
    align-items: center;
}

.nsx-kicker,
.nsx-section-tag,
.nsx-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nsx-cyan);
    border: 1px solid rgba(57,230,255,.25);
    background: rgba(57,230,255,.08);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 700;
}

.nsx-hero h1,
.nsx-section h2,
.nsx-final-cta h2 {
    margin: 18px 0 0;
    line-height: 1.04;
    letter-spacing: -.038em;
    font-weight: 820;
}

.nsx-hero h1 {
    font-size: clamp(34px, 4.35vw, 62px);
    max-width: 640px;
}

.nsx-lead {
    margin: 24px 0 0;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.65;
    color: var(--nsx-muted);
    max-width: 640px;
}

.nsx-lead-small,
.nsx-section-head p,
.nsx-richtext p,
.nsx-final-cta p {
    color: var(--nsx-muted);
    line-height: 1.72;
    font-size: 16px;
}

.nsx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

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

.nsx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 750;
    text-decoration: none !important;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.nsx-btn:hover {
    transform: translateY(-2px);
}

.nsx-btn-primary {
    color: #03101a !important;
    background: linear-gradient(135deg, var(--nsx-cyan), var(--nsx-green));
    box-shadow: 0 18px 45px rgba(57,230,255,.20);
}

.nsx-btn-secondary {
    color: var(--nsx-text) !important;
    border: 1px solid var(--nsx-border);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(14px);
}

.nsx-btn-secondary:hover {
    border-color: rgba(57,230,255,.5);
    background: rgba(255,255,255,.1);
}

.nsx-mini-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.nsx-mini-proof span {
    color: var(--nsx-muted);
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.055);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}

.nsx-hero-panel {
    position: relative;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
    border-radius: 34px;
    padding: 18px;
    box-shadow: var(--nsx-shadow);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.nsx-hero-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(57,230,255,.32), transparent 34%, rgba(180,92,255,.28));
    opacity: .68;
    pointer-events: none;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 1px;
    border-radius: inherit;
}

.nsx-panel-top {
    display: flex;
    gap: 8px;
    padding: 8px 4px 18px;
}

.nsx-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,.24);
}

.nsx-code-card,
.nsx-signal-card,
.nsx-metric-row > div {
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(5,8,22,.72);
    border-radius: 24px;
}

.nsx-code-card {
    padding: 24px;
    display: grid;
    gap: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: rgba(255,255,255,.82);
}

.nsx-code-line span {
    color: var(--nsx-cyan);
}

.nsx-signal-card {
    margin-top: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nsx-signal-card strong,
.nsx-metric-row strong {
    display: block;
    font-size: 22px;
}

.nsx-signal-card small,
.nsx-metric-row small {
    display: block;
    color: var(--nsx-soft);
    margin-top: 5px;
}

.nsx-pulse {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--nsx-cyan) 0 20%, rgba(57,230,255,.18) 22% 55%, transparent 57%);
    box-shadow: 0 0 60px rgba(57,230,255,.35);
    animation: nsxPulse 1.8s ease-in-out infinite;
}

@keyframes nsxPulse {
    0%, 100% { transform: scale(.92); opacity: .72; }
    50% { transform: scale(1.08); opacity: 1; }
}

.nsx-metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.nsx-metric-row > div {
    padding: 18px;
}

.nsx-section {
    padding: 82px 0;
    position: relative;
}

.nsx-two-col {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 64px;
    align-items: start;
}

.nsx-two-col-reverse {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
}

.nsx-section h2,
.nsx-final-cta h2 {
    font-size: clamp(28px, 3.05vw, 44px);
}

.nsx-richtext {
    border-left: 1px solid rgba(57,230,255,.28);
    padding-left: 28px;
}

.nsx-richtext em {
    color: var(--nsx-text);
}

.nsx-section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.nsx-section-head-center {
    text-align: center;
    margin-inline: auto;
}

.nsx-cards {
    display: grid;
    gap: 18px;
}

.nsx-cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nsx-card,
.nsx-product-card,
.nsx-step,
.nsx-glass-list > div,
.nsx-final-card {
    border: 1px solid var(--nsx-border);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
    border-radius: 28px;
    box-shadow: 0 18px 60px rgba(0,0,0,.16);
    backdrop-filter: blur(16px);
}

.nsx-card {
    padding: 24px;
    min-height: 220px;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.nsx-card:hover,
.nsx-product-card:hover,
.nsx-step:hover {
    transform: translateY(-4px);
    border-color: rgba(57,230,255,.35);
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
}

.nsx-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(57,230,255,.18), rgba(180,92,255,.18));
    color: var(--nsx-cyan);
    font-size: 22px;
    margin-bottom: 18px;
}

.nsx-card h3,
.nsx-product-card h3,
.nsx-step h3 {
    color: var(--nsx-text);
    font-size: 20px;
    margin: 0 0 10px;
    letter-spacing: -.02em;
}

.nsx-card p,
.nsx-product-card p,
.nsx-step p,
.nsx-glass-list span {
    color: var(--nsx-muted);
    line-height: 1.65;
    margin: 0;
}

.nsx-products {
    background: radial-gradient(circle at 50% 0%, rgba(57,230,255,.12), transparent 42%);
}

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

.nsx-product-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.nsx-product-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -60px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(57,230,255,.09);
}

.nsx-product-badge {
    font-size: 11px;
    margin-bottom: 20px;
}

.nsx-product-card h3 {
    font-size: clamp(26px, 3vw, 38px);
}

.nsx-product-card a {
    display: inline-flex;
    margin-top: 22px;
    color: var(--nsx-cyan) !important;
    font-weight: 750;
    text-decoration: none !important;
}

.nsx-product-card a:hover {
    text-decoration: underline !important;
}

.nsx-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.nsx-step {
    padding: 23px;
}

.nsx-step span {
    display: inline-flex;
    color: var(--nsx-cyan);
    font-weight: 820;
    letter-spacing: .08em;
    margin-bottom: 20px;
}

.nsx-why {
    padding-top: 60px;
}

.nsx-glass-list {
    display: grid;
    gap: 14px;
}

.nsx-glass-list > div {
    padding: 22px;
}

.nsx-glass-list strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.nsx-final-cta {
    padding: 78px 0 92px;
    text-align: center;
    position: relative;
}

.nsx-final-card {
    padding: clamp(30px, 5vw, 58px);
    background: radial-gradient(circle at top, rgba(57,230,255,.16), transparent 38%), rgba(255,255,255,.065);
}

.nsx-final-card p {
    max-width: 640px;
    margin: 18px auto 0;
}


/* Ajuste tipográfico: versión más sobria y legible. */
.nsx-wrap {
    font-size: 16px;
}

.nsx-hero-copy {
    max-width: 740px;
}

.nsx-section-head p {
    max-width: 690px;
}

.nsx-section-head-center p {
    margin-left: auto;
    margin-right: auto;
}

.nsx-code-card {
    font-size: 15px;
}

@media (min-width: 1280px) {
    .nsx-hero h1 {
        font-size: clamp(42px, 4.15vw, 66px);
    }
}

@media (max-width: 980px) {
    .nsx-hero {
        min-height: auto;
        padding-top: 58px;
    }

    .nsx-hero-inner,
    .nsx-two-col,
    .nsx-two-col-reverse {
        grid-template-columns: 1fr;
    }

    .nsx-cards-3,
    .nsx-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .nsx-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nsx-container {
        width: min(100% - 28px, 1180px);
    }

    .nsx-hero h1,
    .nsx-section h2,
    .nsx-final-cta h2 {
        letter-spacing: -.04em;
    }

    .nsx-actions,
    .nsx-actions-center {
        flex-direction: column;
    }

    .nsx-btn {
        width: 100%;
    }

    .nsx-hero-panel {
        border-radius: 24px;
        padding: 14px;
    }

    .nsx-metric-row,
    .nsx-cards-3,
    .nsx-steps {
        grid-template-columns: 1fr;
    }

    .nsx-section {
        padding: 58px 0;
    }

    .nsx-richtext {
        border-left: 0;
        padding-left: 0;
    }
}

/* Menú interno sticky con navegación por anclas. */
html:has(body.noesica-shortcode-page) {
    scroll-behavior: smooth;
}

#inicio-noesica,
#noesis-noesica,
#servicios-noesica,
#productos-noesica,
#metodo-noesica,
#diferencial-noesica,
#contacto-noesica {
    scroll-margin-top: 106px;
}

.nsx-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(5,8,22,.92), rgba(5,8,22,.70));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

body.admin-bar .nsx-nav {
    top: 32px;
}

.nsx-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nsx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: var(--nsx-text) !important;
    text-decoration: none !important;
    font-weight: 820;
    letter-spacing: -.02em;
}

.nsx-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(57,230,255,.38);
    border-radius: 14px;
    color: #041018;
    background: linear-gradient(135deg, var(--nsx-cyan), var(--nsx-green));
    box-shadow: 0 12px 36px rgba(57,230,255,.20);
}

.nsx-brand-text {
    font-size: 17px;
}

.nsx-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nsx-nav-links::-webkit-scrollbar {
    display: none;
}

.nsx-nav-links a,
.nsx-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 9px 13px;
    color: rgba(245,248,255,.78) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}

.nsx-nav-links a:hover {
    color: var(--nsx-text) !important;
    background: rgba(255,255,255,.08);
}

.nsx-nav-cta {
    min-width: max-content;
    border: 1px solid rgba(57,230,255,.30);
    background: rgba(57,230,255,.10);
    color: var(--nsx-cyan) !important;
}

.nsx-nav-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(57,230,255,.56);
    background: rgba(57,230,255,.15);
}

@media (max-width: 782px) {
    body.admin-bar .nsx-nav {
        top: 46px;
    }
}

@media (max-width: 760px) {
    .nsx-nav {
        padding: 10px 0;
    }

    .nsx-nav-inner {
        gap: 10px;
    }

    .nsx-brand-text {
        display: none;
    }

    .nsx-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    .nsx-nav-links {
        justify-content: flex-start;
        flex: 1;
    }

    .nsx-nav-links a,
    .nsx-nav-cta {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .nsx-nav-cta {
        display: none;
    }
}

/* Secciones comerciales y legales requeridas para operación con medios de pago. */
#contratacion-noesica,
#terminos-noesica,
#legal-noesica {
    scroll-margin-top: 106px;
}

.nsx-compliance {
    background: radial-gradient(circle at 20% 0%, rgba(60,255,176,.10), transparent 36%);
}

.nsx-compliance-cards .nsx-card {
    min-height: 250px;
}

.nsx-terms {
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
}

.nsx-terms-list {
    display: grid;
    gap: 14px;
}

.nsx-terms-list article,
.nsx-legal-item,
.nsx-contact-form {
    border: 1px solid var(--nsx-border);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(0,0,0,.16);
    backdrop-filter: blur(16px);
}

.nsx-terms-list article {
    padding: 22px;
}

.nsx-terms-list h3,
.nsx-contact-form h3 {
    margin: 0 0 10px;
    color: var(--nsx-text);
    font-size: 18px;
    letter-spacing: -.02em;
}

.nsx-terms-list p,
.nsx-contact-form p,
.nsx-contact-data a,
.nsx-contact-data span {
    color: var(--nsx-muted);
    line-height: 1.68;
}

.nsx-terms-list p,
.nsx-contact-form p {
    margin: 0;
}

.nsx-legal {
    background: radial-gradient(circle at 50% 0%, rgba(180,92,255,.12), transparent 40%);
}

.nsx-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.nsx-legal-item {
    padding: 22px;
}

.nsx-legal-item span {
    display: block;
    color: var(--nsx-cyan);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
}

.nsx-legal-item strong {
    display: block;
    color: var(--nsx-text);
    font-size: 18px;
    line-height: 1.45;
}

.nsx-legal-wide {
    grid-column: 1 / -1;
}

.nsx-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 24px;
    align-items: stretch;
    text-align: left;
}

.nsx-contact-copy {
    text-align: left;
}

.nsx-contact-copy p {
    margin-left: 0;
    margin-right: 0;
}

.nsx-contact-data {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.nsx-contact-data a {
    color: var(--nsx-cyan) !important;
    text-decoration: none !important;
    font-weight: 750;
}

.nsx-contact-data a:hover {
    text-decoration: underline !important;
}

.nsx-contact-form {
    padding: clamp(24px, 4vw, 36px);
}

.nsx-contact-form label {
    display: block;
    margin: 16px 0 8px;
    color: var(--nsx-text);
    font-weight: 760;
    font-size: 14px;
}

.nsx-contact-form input,
.nsx-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(5,8,22,.62);
    color: var(--nsx-text);
    border-radius: 16px;
    padding: 14px 15px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nsx-contact-form input::placeholder,
.nsx-contact-form textarea::placeholder {
    color: rgba(245,248,255,.44);
}

.nsx-contact-form input:focus,
.nsx-contact-form textarea:focus {
    border-color: rgba(57,230,255,.56);
    background: rgba(5,8,22,.82);
    box-shadow: 0 0 0 4px rgba(57,230,255,.10);
}

.nsx-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.nsx-contact-form button {
    width: 100%;
    border: 0;
    cursor: pointer;
    margin-top: 18px;
}

.nsx-form-alert {
    margin: 18px 0 4px;
    border-radius: 16px;
    padding: 13px 14px;
    font-weight: 700;
    line-height: 1.5;
}

.nsx-form-alert-ok {
    border: 1px solid rgba(60,255,176,.30);
    background: rgba(60,255,176,.11);
    color: rgba(230,255,246,.95);
}

.nsx-form-alert-error {
    border: 1px solid rgba(255,120,120,.34);
    background: rgba(255,120,120,.10);
    color: rgba(255,235,235,.95);
}

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

@media (max-width: 980px) {
    .nsx-contact-grid,
    .nsx-legal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nsx-terms-list article,
    .nsx-legal-item,
    .nsx-contact-form {
        border-radius: 20px;
    }
}

/* Footer legal discreto: reemplaza las secciones legales visibles en portada por enlaces a una página dedicada. */
.nsx-footer {
    border-top: 1px solid rgba(255,255,255,.11);
    background: rgba(3,6,16,.82);
    padding: 26px 0;
}

.nsx-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.nsx-footer-brand {
    display: grid;
    gap: 5px;
}

.nsx-footer-brand strong {
    color: var(--nsx-text);
    font-size: 16px;
    letter-spacing: -.01em;
}

.nsx-footer-brand span {
    color: var(--nsx-soft);
    font-size: 13px;
    line-height: 1.45;
}

.nsx-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nsx-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    padding: 8px 12px;
    color: rgba(245,248,255,.76) !important;
    background: rgba(255,255,255,.045);
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 720;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.nsx-footer-links a:hover {
    color: var(--nsx-cyan) !important;
    border-color: rgba(57,230,255,.35);
    background: rgba(57,230,255,.08);
    transform: translateY(-1px);
}

/* Página dedicada de información comercial y legal. */
.nsx-legal-page {
    min-height: 100vh;
}

.nsx-legal-hero {
    position: relative;
    overflow: hidden;
    padding: 112px 0 78px;
}

.nsx-legal-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -130px;
    top: 60px;
    border-radius: 999px;
    background: rgba(57,230,255,.12);
    filter: blur(22px);
    pointer-events: none;
}

.nsx-legal-hero-inner {
    max-width: 920px;
}

.nsx-legal-hero h1 {
    margin: 18px 0 0;
    color: var(--nsx-text);
    font-size: clamp(34px, 4.1vw, 60px);
    line-height: 1.04;
    letter-spacing: -.038em;
    font-weight: 820;
}

#como-contratar-noesica,
#terminos-condiciones-noesica,
#entrega-devoluciones-noesica,
#informacion-legal-noesica,
#contacto-noesica {
    scroll-margin-top: 106px;
}

@media (max-width: 860px) {
    .nsx-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nsx-footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .nsx-legal-hero {
        padding: 78px 0 56px;
    }

    .nsx-footer {
        padding: 24px 0 28px;
    }

    .nsx-footer-links a {
        width: 100%;
        justify-content: center;
    }
}
