@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================
   NEXTIA 3D
   ESTILO GENERAL DE LA PLATAFORMA
========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --nextia-bg: #080d1d;
    --nextia-bg-soft: #0d1328;
    --nextia-panel: #151b30;
    --nextia-panel-soft: #11182d;
    --nextia-line: #283251;

    --nextia-text: #ffffff;
    --nextia-muted: #9fa9c6;

    --nextia-primary: #667cff;
    --nextia-primary-2: #896aff;

    --nextia-green: #24b77b;
    --nextia-red: #c94b57;
    --nextia-yellow: #d6a93d;

    --nextia-radius: 16px;
    --nextia-radius-small: 10px;

    --nextia-header-height: 76px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #141c43 0,
            #0a1023 32%,
            #080d1d 72%
        );

    color: var(--nextia-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

a {
    color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.nextia-header {
    width: 100%;
    height: var(--nextia-header-height);

    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        rgba(
            15,
            20,
            42,
            0.96
        );

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    backdrop-filter: blur(14px);
}

.nextia-header-inner {
    width: 100%;
    height: 100%;

    max-width: 1500px;

    margin: auto;

    padding:
        0
        28px;

    display: flex;

    align-items: center;

    gap: 28px;
}


/* =========================================================
   LOGO
========================================================= */

.nextia-logo {
    flex-shrink: 0;

    text-decoration: none;

    color: #ffffff;

    font-size: 25px;

    font-weight: 900;

    letter-spacing: 2px;
}

.nextia-logo span {
    color: #7183ff;
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

.nextia-nav {
    display: flex;

    align-items: center;

    gap: 5px;

    flex: 1;
}

.nextia-nav-link {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        10px
        12px;

    border-radius:
        9px;

    color:
        #aeb8d7;

    text-decoration:
        none;

    font-size:
        14px;

    font-weight:
        700;

    transition:
        background .18s ease,
        color .18s ease;
}

.nextia-nav-link:hover {
    background:
        #1a2240;

    color:
        #ffffff;
}

.nextia-nav-link.active {
    background:
        #20294c;

    color:
        #ffffff;
}

.nextia-nav-link.active::after {
    content: "";

    position:
        absolute;

    left:
        12px;

    right:
        12px;

    bottom:
        4px;

    height:
        2px;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            var(--nextia-primary),
            var(--nextia-primary-2)
        );
}

.nextia-nav-register {
    color:
        #c7ceff;
}


/* =========================================================
   ACCIONES HEADER
========================================================= */

.nextia-header-actions {
    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    margin-left:
        auto;

    flex-shrink:
        0;
}

.nextia-user-name {
    max-width:
        180px;

    overflow:
        hidden;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;

    color:
        #c1cae7;

    font-size:
        13px;

    font-weight:
        700;
}

.nextia-admin-badge {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        5px
        8px;

    border-radius:
        999px;

    background:
        #3d3266;

    color:
        #d8c9ff;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        1px;
}

.nextia-logout,
.nextia-header-login,
.nextia-header-register {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        39px;

    padding:
        0
        13px;

    border-radius:
        9px;

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        800;

    transition:
        transform .18s ease,
        background .18s ease;
}

.nextia-logout {
    background:
        #252d46;

    color:
        #d5daea;
}

.nextia-logout:hover {
    background:
        #343e5d;
}

.nextia-header-login {
    background:
        #1a213b;

    border:
        1px solid
        #34416a;

    color:
        #c6ceff;
}

.nextia-header-register {
    background:
        linear-gradient(
            135deg,
            var(--nextia-primary),
            var(--nextia-primary-2)
        );

    color:
        #ffffff;
}

.nextia-logout:hover,
.nextia-header-login:hover,
.nextia-header-register:hover {
    transform:
        translateY(-1px);
}


/* =========================================================
   MENÚ MÓVIL
========================================================= */

.nextia-menu-button {
    width:
        42px;

    height:
        40px;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    flex-direction:
        column;

    gap:
        5px;

    padding:
        0;

    border:
        1px solid
        #344064;

    border-radius:
        9px;

    background:
        #151c34;

    cursor:
        pointer;
}

.nextia-menu-button span {
    width:
        18px;

    height:
        2px;

    border-radius:
        999px;

    background:
        #d3d9ef;
}


/* =========================================================
   CONTENEDORES
========================================================= */

.nextia-container {
    width:
        100%;

    max-width:
        1300px;

    margin:
        0
        auto;

    padding:
        35px
        22px
        60px;
}

.nextia-page-header {
    margin-bottom:
        28px;
}

.nextia-page-title {
    margin:
        0;

    font-size:
        36px;

    line-height:
        1.1;
}

.nextia-page-subtitle {
    margin:
        9px
        0
        0;

    color:
        var(--nextia-muted);

    font-size:
        16px;

    line-height:
        1.5;
}


/* =========================================================
   TARJETAS
========================================================= */

.nextia-card {
    background:
        var(--nextia-panel);

    border:
        1px solid
        var(--nextia-line);

    border-radius:
        var(--nextia-radius);

    overflow:
        hidden;
}

.nextia-card-body {
    padding:
        20px;
}

.nextia-card-title {
    margin:
        0
        0
        8px;

    font-size:
        20px;
}

.nextia-card-text {
    color:
        var(--nextia-muted);

    line-height:
        1.55;
}


/* =========================================================
   GRID
========================================================= */

.nextia-grid {
    display:
        grid;

    gap:
        20px;
}

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

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


/* =========================================================
   BOTONES GENERALES
========================================================= */

.nextia-btn {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    min-height:
        42px;

    padding:
        0
        16px;

    border:
        0;

    border-radius:
        10px;

    text-decoration:
        none;

    cursor:
        pointer;

    font-size:
        14px;

    font-weight:
        800;

    color:
        #ffffff;

    transition:
        transform .18s ease,
        opacity .18s ease;
}

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

.nextia-btn:disabled {
    opacity:
        .55;

    cursor:
        not-allowed;
}

.nextia-btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--nextia-primary),
            var(--nextia-primary-2)
        );
}

.nextia-btn-green {
    background:
        linear-gradient(
            135deg,
            #19875d,
            #25b77b
        );
}

.nextia-btn-red {
    background:
        linear-gradient(
            135deg,
            #a93e49,
            #c9505d
        );
}

.nextia-btn-gray {
    background:
        #343d58;
}

.nextia-btn-outline {
    background:
        transparent;

    border:
        1px solid
        #3b486f;

    color:
        #c5ceef;
}


/* =========================================================
   FORMULARIOS
========================================================= */

.nextia-form-group {
    margin-bottom:
        17px;
}

.nextia-label {
    display:
        block;

    margin-bottom:
        7px;

    color:
        #d8deef;

    font-size:
        14px;

    font-weight:
        700;
}

.nextia-input,
.nextia-select,
.nextia-textarea {
    width:
        100%;

    border:
        1px solid
        #344164;

    border-radius:
        10px;

    background:
        #0d1428;

    color:
        #ffffff;

    padding:
        12px
        13px;

    font-size:
        15px;

    outline:
        none;
}

.nextia-input:focus,
.nextia-select:focus,
.nextia-textarea:focus {
    border-color:
        #6e7fff;

    box-shadow:
        0
        0
        0
        3px
        rgba(
            105,
            123,
            255,
            .12
        );
}

.nextia-textarea {
    resize:
        vertical;

    min-height:
        110px;
}


/* =========================================================
   ALERTAS
========================================================= */

.nextia-alert {
    padding:
        13px
        15px;

    margin-bottom:
        18px;

    border-radius:
        11px;

    font-size:
        14px;

    line-height:
        1.45;
}

.nextia-alert-success {
    background:
        #143625;

    border:
        1px solid
        #2b7050;

    color:
        #b9f9d5;
}

.nextia-alert-error {
    background:
        #3a1c25;

    border:
        1px solid
        #743746;

    color:
        #ffc6d0;
}

.nextia-alert-info {
    background:
        #182844;

    border:
        1px solid
        #355786;

    color:
        #bdd9ff;
}


/* =========================================================
   ESTADOS
========================================================= */

.nextia-badge {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        5px
        9px;

    border-radius:
        999px;

    font-size:
        11px;

    font-weight:
        900;
}

.nextia-badge-success {
    background:
        #173a2a;

    color:
        #9ef0c5;
}

.nextia-badge-warning {
    background:
        #514217;

    color:
        #f4d56d;
}

.nextia-badge-danger {
    background:
        #452029;

    color:
        #ff9dac;
}

.nextia-badge-info {
    background:
        #1c3557;

    color:
        #a8d4ff;
}


/* =========================================================
   TABLAS
========================================================= */

.nextia-table-wrap {
    width:
        100%;

    overflow-x:
        auto;

    border:
        1px solid
        var(--nextia-line);

    border-radius:
        var(--nextia-radius);
}

.nextia-table {
    width:
        100%;

    border-collapse:
        collapse;

    background:
        var(--nextia-panel);
}

.nextia-table th,
.nextia-table td {
    padding:
        14px
        15px;

    text-align:
        left;

    border-bottom:
        1px solid
        #28304b;

    vertical-align:
        middle;
}

.nextia-table th {
    background:
        #1a223c;

    color:
        #c8d0e7;

    font-size:
        13px;
}

.nextia-table td {
    color:
        #edf0fa;

    font-size:
        14px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.nextia-empty {
    padding:
        45px
        25px;

    text-align:
        center;

    border:
        1px solid
        var(--nextia-line);

    border-radius:
        var(--nextia-radius);

    background:
        var(--nextia-panel);

    color:
        var(--nextia-muted);
}


/* =========================================================
   FOOTER
========================================================= */

.nextia-footer {
    margin-top:
        auto;

    border-top:
        1px solid
        #202943;

    padding:
        28px
        20px;

    color:
        #757f9e;

    text-align:
        center;

    font-size:
        13px;
}


/* =========================================================
   UTILIDADES
========================================================= */

.nextia-muted {
    color:
        var(--nextia-muted);
}

.nextia-text-center {
    text-align:
        center;
}

.nextia-mt-0 {
    margin-top:
        0;
}

.nextia-mt-1 {
    margin-top:
        10px;
}

.nextia-mt-2 {
    margin-top:
        20px;
}

.nextia-mt-3 {
    margin-top:
        30px;
}

.nextia-mb-0 {
    margin-bottom:
        0;
}

.nextia-mb-1 {
    margin-bottom:
        10px;
}

.nextia-mb-2 {
    margin-bottom:
        20px;
}

.nextia-mb-3 {
    margin-bottom:
        30px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1050px) {

    .nextia-user-name {
        display:
            none;
    }

    .nextia-nav {
        gap:
            2px;
    }

    .nextia-nav-link {
        padding:
            10px
            9px;
    }
}


@media(max-width:820px) {

    .nextia-header-inner {
        padding:
            0
            16px;
    }

    .nextia-nav {
        position:
            absolute;

        top:
            var(--nextia-header-height);

        left:
            12px;

        right:
            12px;

        display:
            none;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            4px;

        padding:
            12px;

        background:
            #11172c;

        border:
            1px solid
            #2e395d;

        border-radius:
            14px;

        box-shadow:
            0
            18px
            50px
            rgba(
                0,
                0,
                0,
                .35
            );
    }

    .nextia-nav.open {
        display:
            flex;
    }

    .nextia-nav-link {
        width:
            100%;

        justify-content:
            flex-start;
    }

    .nextia-menu-button {
        display:
            flex;
    }

    .nextia-header-login,
    .nextia-header-register,
    .nextia-logout,
    .nextia-admin-badge {
        display:
            none;
    }

    .nextia-grid-2,
    .nextia-grid-3 {
        grid-template-columns:
            1fr;
    }
}


@media(max-width:600px) {

    .nextia-logo {
        font-size:
            21px;
    }

    .nextia-container {
        padding:
            25px
            14px
            45px;
    }

    .nextia-page-title {
        font-size:
            30px;
    }
}

/* =========================================================
   NEXTIA 3D — IDENTIDAD VISUAL UNIFICADA CON NEXTIA.UK
   Mantiene las clases y lógica existentes; cambia solo estilo.
========================================================= */

:root {
    --nextia-bg: #05070d;
    --nextia-bg-soft: #0b1020;
    --nextia-panel: rgba(255,255,255,.085);
    --nextia-panel-soft: rgba(255,255,255,.045);
    --nextia-line: rgba(255,255,255,.12);

    --nextia-text: #ffffff;
    --nextia-muted: #b8c5eb;

    --nextia-primary: #00eaff;
    --nextia-primary-2: #7857ff;

    --nextia-green: #00eaff;
    --nextia-red: #d85a6a;
    --nextia-yellow: #e3bc55;

    --nextia-radius: 28px;
    --nextia-radius-small: 16px;

    --nextia-header-height: 72px;
}

html {
    background: #05070d;
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 18%, rgba(0,215,255,.20), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(106,90,255,.20), transparent 35%),
        linear-gradient(135deg,#03040a,#0b1020 50%,#020307);
    color: var(--nextia-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

/* Cuadrícula animada como el sitio principal */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0,224,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,224,255,.08) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
    animation: nextiaGridMove 16s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    width: 48vw;
    height: 48vw;
    right: -14vw;
    top: 14vh;
    z-index: -3;
    pointer-events: none;
    border-radius: 50%;
    background: conic-gradient(from 180deg, rgba(0,234,255,.25), rgba(120,87,255,.28), rgba(0,234,255,.25));
    filter: blur(100px);
    opacity: .42;
    animation: nextiaGlowPulse 4s ease-in-out infinite;
}

@keyframes nextiaGridMove {
    to { background-position: 55px 55px; }
}

@keyframes nextiaGlowPulse {
    50% { transform: scale(1.08); opacity: .60; }
}

/* Header */
.nextia-header {
    height: var(--nextia-header-height);
    background: rgba(5,7,13,.72);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nextia-header-inner {
    max-width: 1600px;
    padding: 0 3.5%;
    gap: 22px;
}

.nextia-logo {
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(0,234,255,.18);
}

.nextia-logo span {
    background: linear-gradient(90deg,#00eaff,#ffffff,#8b5cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nextia-nav {
    gap: 6px;
}

.nextia-nav-link {
    padding: 10px 13px;
    border-radius: 999px;
    color: #cfd8ff;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.nextia-nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,.07);
}

.nextia-nav-link.active {
    color: #ffffff;
    background: rgba(0,234,255,.10);
    border: 1px solid rgba(0,234,255,.25);
}

.nextia-nav-link.active::after {
    display: none;
}

.nextia-header-login,
.nextia-header-register,
.nextia-logout {
    min-height: 40px;
    border-radius: 999px;
    padding: 0 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 800;
}

.nextia-header-login,
.nextia-logout {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.16);
    color: #ffffff;
}

.nextia-header-register {
    background: linear-gradient(90deg,#00eaff,#7857ff);
    box-shadow: 0 0 28px rgba(0,234,255,.28);
}

.nextia-header-register:hover,
.nextia-header-login:hover,
.nextia-logout:hover {
    transform: translateY(-2px);
}

.nextia-user-name {
    color: #dce5ff;
}

.nextia-admin-badge {
    background: rgba(120,87,255,.18);
    border: 1px solid rgba(120,87,255,.35);
    color: #ded5ff;
}

/* Contenido */
.nextia-container {
    max-width: 1380px;
    padding: 48px 4% 70px;
}

.nextia-page-title {
    font-family: Montserrat, sans-serif;
    font-size: clamp(34px,4vw,54px);
    font-weight: 900;
    letter-spacing: -.03em;
}

.nextia-page-subtitle {
    color: #c8d1ef;
    font-size: 17px;
    line-height: 1.65;
}

/* Tarjetas */
.nextia-card,
.nextia-empty,
.nextia-table-wrap {
    background: linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    box-shadow: 0 18px 55px rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nextia-card {
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.nextia-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,234,255,.38);
    box-shadow: 0 22px 65px rgba(0,0,0,.32), 0 0 34px rgba(0,234,255,.08);
}

.nextia-card-body {
    padding: 26px;
}

.nextia-card-title {
    font-family: Montserrat, sans-serif;
    font-size: 21px;
    font-weight: 800;
}

.nextia-card-text {
    color: #c3ccea;
    line-height: 1.65;
}

/* Botones */
.nextia-btn {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.nextia-btn:hover {
    transform: translateY(-3px);
}

.nextia-btn-primary,
.nextia-btn-green {
    background: linear-gradient(90deg,#00eaff,#7857ff);
    box-shadow: 0 0 28px rgba(0,234,255,.28);
}

.nextia-btn-red {
    background: linear-gradient(90deg,#bb4054,#e06a78);
}

.nextia-btn-gray,
.nextia-btn-outline {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.18);
    color: #ffffff;
}

/* Formularios */
.nextia-label {
    color: #dce5ff;
    font-family: Montserrat, sans-serif;
}

.nextia-input,
.nextia-select,
.nextia-textarea {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(2,4,12,.72);
    color: #ffffff;
}

.nextia-input:focus,
.nextia-select:focus,
.nextia-textarea:focus {
    border-color: #00eaff;
    box-shadow: 0 0 0 3px rgba(0,234,255,.12), 0 0 28px rgba(0,234,255,.06);
}

/* Tablas */
.nextia-table {
    background: transparent;
}

.nextia-table th {
    background: rgba(255,255,255,.06);
    color: #dce5ff;
    font-family: Montserrat, sans-serif;
}

.nextia-table th,
.nextia-table td {
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.nextia-table td {
    color: #edf2ff;
}

/* Badges */
.nextia-badge {
    border: 1px solid rgba(255,255,255,.10);
}

.nextia-badge-info {
    background: rgba(0,234,255,.10);
    color: #aaf9ff;
}

.nextia-badge-success {
    background: rgba(30,190,125,.15);
    color: #adf5d4;
}

.nextia-badge-warning {
    background: rgba(227,188,85,.15);
    color: #ffe49a;
}

.nextia-badge-danger {
    background: rgba(216,90,106,.15);
    color: #ffbdc6;
}

/* Alertas */
.nextia-alert {
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.nextia-alert-info {
    background: rgba(0,234,255,.08);
    border: 1px solid rgba(0,234,255,.20);
    color: #c8faff;
}

.nextia-alert-success {
    background: rgba(36,183,123,.10);
    border: 1px solid rgba(36,183,123,.25);
}

.nextia-alert-error {
    background: rgba(201,75,87,.12);
    border: 1px solid rgba(201,75,87,.28);
}

/* Footer */
.nextia-footer {
    color: #9da9cf;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(5,7,13,.30);
}

/* Móvil */
@media(max-width:820px) {
    .nextia-nav {
        background: rgba(8,11,23,.96);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 20px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .nextia-menu-button {
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 14px;
    }
}

@media(max-width:600px) {
    .nextia-container {
        padding: 30px 16px 50px;
    }

    .nextia-page-title {
        font-size: 34px;
    }
}
