/* =========================================================
   STELLARMINDS - DISEÑO PROFESIONAL GENERAL
   Solo CSS, no requiere tocar Layout ni vistas
   ========================================================= */

:root {
    --sm-primary: #2563eb;
    --sm-primary-dark: #1d4ed8;
    --sm-secondary: #7c3aed;
    --sm-dark: #0f172a;
    --sm-dark-soft: #1e293b;
    --sm-bg: #f4f7fb;
    --sm-card: #ffffff;
    --sm-text: #111827;
    --sm-muted: #6b7280;
    --sm-border: #e5e7eb;
    --sm-success: #16a34a;
    --sm-danger: #dc2626;
    --sm-warning: #f59e0b;
}

html {
    font-size: 15px;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%), radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 30%), linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--sm-text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================
   NAVBAR EXISTENTE
   ========================= */

.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%) !important;
    border-bottom: none !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    min-height: 72px;
}

    .navbar .container-fluid,
    .navbar .container {
        padding-left: 28px;
        padding-right: 28px;
    }

.navbar-brand {
    color: #ffffff !important;
    font-weight: 850;
    font-size: 22px;
    letter-spacing: 0.3px;
}

    .navbar-brand::before {
        content: "SM";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-right: 10px;
        border-radius: 14px;
        background: linear-gradient(135deg, #60a5fa, #a78bfa);
        color: white;
        font-size: 14px;
        font-weight: 900;
        vertical-align: middle;
        box-shadow: 0 10px 22px rgba(96, 165, 250, 0.35);
    }

.navbar-light .navbar-nav .nav-link,
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    padding: 8px 12px !important;
    border-radius: 12px;
    transition: all 0.18s ease;
}

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar .nav-link:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.12);
    }

.navbar .text-danger {
    color: #fecaca !important;
}

    .navbar .text-danger:hover {
        color: #ffffff !important;
        background: rgba(220, 38, 38, 0.35);
    }

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* =========================
   CONTENEDOR PRINCIPAL
   ========================= */

.container {
    max-width: 1180px;
}

main {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 30px !important;
    margin-top: 28px;
    margin-bottom: 36px;
    animation: smFadeIn 0.35s ease;
}

h1,
h2,
h3,
h4 {
    color: var(--sm-text);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    margin-bottom: 22px;
}

p,
.text-muted {
    color: var(--sm-muted) !important;
}

/* =========================
   BOTONES
   ========================= */

.btn {
    border-radius: 12px;
    font-weight: 650;
    padding: 9px 15px;
    transition: all 0.18s ease;
}

.btn-sm {
    padding: 6px 11px;
    border-radius: 10px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sm-primary), var(--sm-secondary));
    border: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        background: linear-gradient(135deg, var(--sm-primary-dark), #6d28d9);
        box-shadow: 0 14px 26px rgba(37, 99, 235, 0.32);
    }

.btn-warning {
    background: #f59e0b;
    border: none;
    color: #111827;
}

    .btn-warning:hover {
        background: #d97706;
        color: white;
    }

.btn-danger {
    background: #dc2626;
    border: none;
}

    .btn-danger:hover {
        background: #b91c1c;
    }

.btn-secondary {
    background: #64748b;
    border: none;
}

    .btn-secondary:hover {
        background: #475569;
    }

/* =========================
   FORMULARIOS
   ========================= */

.form-label,
label {
    font-weight: 700;
    color: #374151;
    margin-bottom: 7px;
}

.form-control,
.form-select,
select,
textarea {
    min-height: 45px;
    border-radius: 13px !important;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    padding: 9px 13px;
    color: #111827;
    transition: all 0.18s ease;
}

    .form-control:focus,
    .form-select:focus,
    select:focus,
    textarea:focus {
        border-color: #6366f1;
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
    }

input[type="date"],
input[type="number"],
input[type="text"],
input[type="password"],
input[type="email"] {
    border-radius: 13px !important;
}

.text-danger,
.validation-summary-errors {
    font-size: 14px;
    font-weight: 500;
}

/* =========================
   TABLAS
   ========================= */

.table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
    margin-top: 18px;
    border: 1px solid var(--sm-border);
}

    .table thead th,
    .table-dark th {
        background: #111827 !important;
        color: white !important;
        border: none !important;
        font-size: 14px;
        letter-spacing: 0.02em;
        padding: 14px;
    }

    .table tbody td {
        padding: 13px 14px;
        vertical-align: middle;
        border-color: #eef2f7;
    }

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #f8fafc;
}

.table tbody tr:hover td {
    background: #eef2ff;
}

/* =========================
   ALERTAS
   ========================= */

.alert {
    border-radius: 16px;
    border: none;
    font-weight: 500;
    padding: 14px 17px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* =========================
   CARDS
   ========================= */

.card {
    border-radius: 20px;
    border: 1px solid var(--sm-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.card-body {
    padding: 24px;
}

/* =========================
   LOGIN
   Funciona si tu Login tiene clases login-page/login-card,
   y también mejora formularios normales.
   ========================= */

.login-page {
    min-height: calc(100vh - 190px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.20), transparent 35%), radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.22), transparent 35%), linear-gradient(135deg, #0f172a 0%, #111827 45%, #1e1b4b 100%);
    border-radius: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 26px;
    padding: 40px 36px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--sm-primary), var(--sm-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

.login-header h1 {
    font-size: 31px;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.login-input {
    height: 48px;
}

.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--sm-primary), var(--sm-secondary));
    color: white;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 38px rgba(37, 99, 235, 0.36);
    }

.login-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: var(--sm-muted);
    font-size: 13px;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    background: transparent;
    color: #64748b !important;
    font-size: 14px;
    padding: 20px 0;
}

/* =========================
   RESPONSIVE
   ========================= */

@keyframes smFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    main {
        padding: 22px 18px !important;
        border-radius: 20px;
    }

    .navbar .container-fluid,
    .navbar .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar-brand {
        font-size: 18px;
    }

        .navbar-brand::before {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            font-size: 12px;
        }

    .table {
        font-size: 14px;
    }
}
/* =========================================================
   LOGIN STELLARMINDS - ESTILO AZUL CENTRADO
   ========================================================= */

.stellar-login-page {
    min-height: calc(100vh - 150px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 20% 20%, rgba(95, 78, 255, 0.35), transparent 18%), radial-gradient(circle at 80% 25%, rgba(0, 183, 255, 0.22), transparent 18%), radial-gradient(circle at 70% 75%, rgba(163, 94, 255, 0.24), transparent 22%), radial-gradient(circle at 30% 80%, rgba(255, 110, 199, 0.16), transparent 18%), linear-gradient(135deg, #050816 0%, #0b1026 35%, #111b3a 65%, #1c2252 100%);
}

    .stellar-login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.95), transparent), radial-gradient(1.5px 1.5px at 90px 80px, rgba(255,255,255,0.9), transparent), radial-gradient(2px 2px at 160px 140px, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 240px 40px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 320px 120px, rgba(255,255,255,0.95), transparent), radial-gradient(1.5px 1.5px at 420px 60px, rgba(255,255,255,0.75), transparent), radial-gradient(2px 2px at 520px 160px, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 620px 90px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 740px 40px, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 860px 180px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 960px 70px, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 1040px 130px, rgba(255,255,255,0.75), transparent);
        background-size: 1100px 260px;
        opacity: 0.8;
        pointer-events: none;
    }

    .stellar-login-page::after {
        content: "";
        position: absolute;
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(120, 80, 255, 0.22) 0%, rgba(80, 40, 200, 0.10) 28%, transparent 60%);
        left: -180px;
        top: -180px;
        filter: blur(8px);
        pointer-events: none;
    }

.stellar-login-page {
    min-height: calc(100vh - 150px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 20% 20%, rgba(95, 78, 255, 0.35), transparent 18%), radial-gradient(circle at 80% 25%, rgba(0, 183, 255, 0.22), transparent 18%), radial-gradient(circle at 70% 75%, rgba(163, 94, 255, 0.24), transparent 22%), radial-gradient(circle at 30% 80%, rgba(255, 110, 199, 0.16), transparent 18%), linear-gradient(135deg, #050816 0%, #0b1026 35%, #111b3a 65%, #1c2252 100%);
}

    .stellar-login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.95), transparent), radial-gradient(1.5px 1.5px at 90px 80px, rgba(255,255,255,0.9), transparent), radial-gradient(2px 2px at 160px 140px, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 240px 40px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 320px 120px, rgba(255,255,255,0.95), transparent), radial-gradient(1.5px 1.5px at 420px 60px, rgba(255,255,255,0.75), transparent), radial-gradient(2px 2px at 520px 160px, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 620px 90px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 740px 40px, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 860px 180px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 960px 70px, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 1040px 130px, rgba(255,255,255,0.75), transparent);
        background-size: 1100px 260px;
        opacity: 0.8;
        pointer-events: none;
    }

    .stellar-login-page::after {
        content: "";
        position: absolute;
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(120, 80, 255, 0.22) 0%, rgba(80, 40, 200, 0.10) 28%, transparent 60%);
        left: -180px;
        top: -180px;
        filter: blur(8px);
        pointer-events: none;
    }.stellar-login-card {
    width: 100%;
    max-width: 760px;
    min-height: 360px;
    background: rgba(32, 58, 170, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(6, 12, 36, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 28px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

    .stellar-login-card::before {
        content: "";
        position: absolute;
        width: 380px;
        height: 180px;
        background: rgba(19, 57, 166, 0.22);
        border-radius: 50%;
        left: -70px;
        bottom: -60px;
        transform: rotate(12deg);
    }

    .stellar-login-card::after {
        content: "";
        position: absolute;
        width: 340px;
        height: 190px;
        background: rgba(26, 68, 178, 0.20);
        border-radius: 50%;
        right: -80px;
        top: 40px;
        transform: rotate(-10deg);
    }

.stellar-login-icon,
.stellar-login-title,
.stellar-login-subtitle,
.stellar-login-form,
.stellar-login-help,
.stellar-login-error {
    position: relative;
    z-index: 3;
}

.stellar-login-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: white;
    font-size: 26px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.telescope-icon {
    font-size: 28px;
    line-height: 1;
}

.stellar-login-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
}

.stellar-login-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    margin: 5px 0 22px;
    letter-spacing: 0.5px;
}

.stellar-login-form {
    width: 100%;
    max-width: 230px;
}

.stellar-input-group {
    width: 100%;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.18s ease;
}

    .stellar-input-group:focus-within {
        border-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
    }

.stellar-input-icon {
    width: 34px;
    text-align: center;
    font-size: 11px;
    opacity: 0.82;
    color: white;
    filter: grayscale(1) brightness(2);
}

.stellar-input {
    flex: 1;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: white !important;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 0 8px 0 0 !important;
    box-shadow: none !important;
}

    .stellar-input::placeholder {
        color: rgba(255, 255, 255, 0.62);
        font-size: 9px;
        letter-spacing: 0.6px;
    }

    .stellar-input:-webkit-autofill,
    .stellar-input:-webkit-autofill:hover,
    .stellar-input:-webkit-autofill:focus {
        -webkit-text-fill-color: white;
        -webkit-box-shadow: 0 0 0 1000px #2c55ca inset;
        transition: background-color 9999s ease-in-out 0s;
    }

.stellar-login-button {
    width: 100%;
    height: 32px;
    border: none;
    border-radius: 4px;
    background: #ffffff;
    color: #2b55c7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-top: 8px;
    transition: all 0.18s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

    .stellar-login-button:hover {
        transform: translateY(-1px);
        background: #eef2ff;
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
    }

.stellar-login-help {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    text-align: center;
}

.stellar-login-error {
    width: 100%;
    max-width: 300px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #b91c1c;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

.stellar-login-form .text-danger {
    display: block;
    color: #fee2e2 !important;
    font-size: 10px;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* Para que el main no arruine el login si tenés un diseño global */
main:has(.stellar-login-page) {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .stellar-login-card {
        max-width: 92%;
        min-height: 380px;
        padding: 38px 22px;
    }

    .stellar-login-page {
        min-height: calc(100vh - 120px);
        padding: 28px 10px;
    }
}


/* =========================================================
   LOGIN FULL BACKGROUND GALAXY
   Hace que el login no quede dentro de un cuadrado blanco
   sin tocar el layout
   ========================================================= */

/* Cuando la página tiene el login, sacamos el "card" blanco del main */
body:has(.stellar-login-page) {
    background: #050816 !important;
}

    body:has(.stellar-login-page) main {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }

    body:has(.stellar-login-page) .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

/* El login pasa a ocupar todo el ancho visual */
.stellar-login-page {
    min-height: calc(100vh - 72px - 60px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: radial-gradient(circle at 18% 20%, rgba(119, 92, 255, 0.30), transparent 16%), radial-gradient(circle at 82% 24%, rgba(0, 195, 255, 0.18), transparent 18%), radial-gradient(circle at 70% 78%, rgba(170, 90, 255, 0.20), transparent 22%), radial-gradient(circle at 28% 82%, rgba(255, 100, 190, 0.12), transparent 16%), linear-gradient(135deg, #040712 0%, #0a1024 35%, #101a38 65%, #1a2250 100%);
}

    /* Capa de estrellas */
    .stellar-login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(2px 2px at 40px 60px, rgba(255,255,255,0.95), transparent), radial-gradient(1.5px 1.5px at 120px 140px, rgba(255,255,255,0.85), transparent), radial-gradient(2px 2px at 240px 80px, rgba(255,255,255,0.90), transparent), radial-gradient(1.5px 1.5px at 360px 200px, rgba(255,255,255,0.75), transparent), radial-gradient(2px 2px at 520px 120px, rgba(255,255,255,0.90), transparent), radial-gradient(1.5px 1.5px at 700px 70px, rgba(255,255,255,0.80), transparent), radial-gradient(2px 2px at 880px 180px, rgba(255,255,255,0.95), transparent), radial-gradient(1.5px 1.5px at 1040px 110px, rgba(255,255,255,0.80), transparent), radial-gradient(2px 2px at 1180px 220px, rgba(255,255,255,0.88), transparent), radial-gradient(1.5px 1.5px at 1340px 90px, rgba(255,255,255,0.75), transparent), radial-gradient(2px 2px at 1500px 160px, rgba(255,255,255,0.90), transparent);
        background-size: 1600px 320px;
        opacity: 0.85;
        pointer-events: none;
    }

    /* Nebulosa suave */
    .stellar-login-page::after {
        content: "";
        position: absolute;
        width: 900px;
        height: 900px;
        left: -220px;
        top: -220px;
        background: radial-gradient(circle, rgba(105, 85, 255, 0.20) 0%, rgba(77, 46, 180, 0.10) 28%, transparent 60%);
        filter: blur(10px);
        pointer-events: none;
    }

/* Tarjeta del login */
.stellar-login-card {
    width: 100%;
    max-width: 760px;
    min-height: 360px;
    background: rgba(36, 79, 198, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(6, 12, 36, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 28px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

@media (max-width: 768px) {
    .stellar-login-page {
        min-height: calc(100vh - 120px);
        padding: 24px 10px;
    }

    .stellar-login-card {
        max-width: 92%;
        min-height: 380px;
        padding: 36px 20px;
    }
}

/* =========================================================
   TEXTOS + INPUTS MÁS PROFESIONALES
   Pegar al final de site.css
   ========================================================= */

/* Fuente y suavizado general */
body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Títulos más modernos */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin-bottom: 18px;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

/* Subtítulos y párrafos */
p,
.text-muted {
    color: #64748b !important;
    font-size: 15px;
    line-height: 1.6;
}

/* Labels de formularios */
label,
.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}

/* Inputs generales */
input,
select,
textarea,
.form-control,
.form-select {
    min-height: 46px;
    border-radius: 14px !important;
    border: 1px solid #dbe1ea !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px !important;
    box-shadow: none !important;
    transition: all 0.18s ease;
}

    /* Placeholder más lindo */
    input::placeholder,
    textarea::placeholder {
        color: #94a3b8 !important;
        font-weight: 400;
    }

    /* Focus profesional */
    input:focus,
    select:focus,
    textarea:focus,
    .form-control:focus,
    .form-select:focus {
        background: #ffffff !important;
        border-color: #6366f1 !important;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14) !important;
        outline: none !important;
    }

/* Select más prolijo */
select,
.form-select {
    cursor: pointer;
}

/* Formularios con más aire */
form .mb-3,
form .form-group {
    margin-bottom: 18px !important;
}

/* Mensajes de error */
.text-danger,
.field-validation-error,
.validation-summary-errors {
    color: #dc2626 !important;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

/* Botones más finos */
.btn {
    border-radius: 13px !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 10px 16px;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

/* Tablas: textos más lindos */
.table {
    font-size: 15px;
}

    .table thead th {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-weight: 800;
    }

    .table tbody td {
        font-weight: 500;
        color: #334155;
    }

/* Login: textos e inputs más parecidos al diseño que querés */
.stellar-login-title {
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.stellar-login-subtitle {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stellar-input-group {
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.05);
}

.stellar-input {
    min-height: 0 !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    padding: 0 10px 0 0 !important;
    box-shadow: none !important;
}

    .stellar-input::placeholder {
        color: rgba(255, 255, 255, 0.58) !important;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.10em;
    }

    .stellar-input:focus {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

.stellar-login-button {
    height: 34px;
    border-radius: 6px;
    background: #ffffff;
    color: #2b55c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.stellar-login-help {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.68);
}

/* =========================================================
   AJUSTE FINAL LOGIN GALAXIA - SIN BORDES NEGROS + CARD VIOLETA
   Pegar al FINAL de site.css
   ========================================================= */

/* Sacamos fondos/bordes raros solo cuando está el login */
body:has(.stellar-login-page) {
    background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.32), transparent 22%), radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.25), transparent 24%), radial-gradient(circle at 70% 82%, rgba(217, 70, 239, 0.18), transparent 25%), linear-gradient(135deg, #050816 0%, #0b1026 42%, #17113d 72%, #240b45 100%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

    /* El main deja de parecer una caja blanca o negra */
    body:has(.stellar-login-page) main {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    /* El contenedor ocupa todo el ancho */
    body:has(.stellar-login-page) .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* El footer no genera franja negra */
    body:has(.stellar-login-page) footer,
    body:has(.stellar-login-page) .footer {
        background: transparent !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.65) !important;
    }

/* Fondo galaxia full, sin bordes negros */
.stellar-login-page {
    min-height: calc(100vh - 72px);
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 55px 16px !important;
    border-radius: 0 !important;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 18% 22%, rgba(139, 92, 246, 0.35), transparent 18%), radial-gradient(circle at 85% 20%, rgba(96, 165, 250, 0.22), transparent 20%), radial-gradient(circle at 72% 80%, rgba(217, 70, 239, 0.22), transparent 22%), radial-gradient(circle at 28% 82%, rgba(236, 72, 153, 0.13), transparent 18%), linear-gradient(135deg, #050816 0%, #0b1026 38%, #17113d 68%, #2a0f4f 100%) !important;
}

    /* Estrellas */
    .stellar-login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(2px 2px at 60px 80px, rgba(255,255,255,0.95), transparent), radial-gradient(1.5px 1.5px at 180px 140px, rgba(255,255,255,0.85), transparent), radial-gradient(2px 2px at 300px 60px, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 430px 210px, rgba(255,255,255,0.75), transparent), radial-gradient(2px 2px at 570px 130px, rgba(255,255,255,0.9), transparent), radial-gradient(1.5px 1.5px at 730px 90px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 910px 190px, rgba(255,255,255,0.92), transparent), radial-gradient(1.5px 1.5px at 1090px 110px, rgba(255,255,255,0.78), transparent), radial-gradient(2px 2px at 1260px 240px, rgba(255,255,255,0.88), transparent), radial-gradient(1.5px 1.5px at 1420px 80px, rgba(255,255,255,0.78), transparent);
        background-size: 1500px 320px;
        opacity: 0.85;
        pointer-events: none;
    }

    /* Nebulosa violeta */
    .stellar-login-page::after {
        content: "";
        position: absolute;
        width: 950px;
        height: 950px;
        left: -250px;
        top: -250px;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.24) 0%, rgba(99, 102, 241, 0.12) 28%, transparent 62%);
        filter: blur(12px);
        pointer-events: none;
    }

/* Card más violeta y menos azul chillón */
.stellar-login-card {
    width: 100%;
    max-width: 760px;
    min-height: 365px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 28%), linear-gradient(135deg, rgba(79, 70, 229, 0.82), rgba(124, 58, 237, 0.78) 55%, rgba(91, 33, 182, 0.82)) !important;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 50px rgba(10, 8, 35, 0.55) !important;
}

    /* Para que los pseudoelementos viejos de la card no hagan manchas feas */
    .stellar-login-card::before,
    .stellar-login-card::after {
        opacity: 0.35 !important;
    }

/* Inputs más finos y combinados */
.stellar-input-group {
    height: 35px !important;
    border-radius: 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.52) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

    .stellar-input-group:focus-within {
        border-color: #ffffff !important;
        background: rgba(255, 255, 255, 0.11) !important;
        box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.20) !important;
    }

.stellar-login-button {
    border-radius: 7px !important;
    color: #5b21b6 !important;
    background: #ffffff !important;
}

    .stellar-login-button:hover {
        background: #f3e8ff !important;
    }

/* Textos más elegantes en el login */
.stellar-login-title {
    color: #ffffff !important;
    letter-spacing: 0.03em !important;
}

.stellar-login-subtitle,
.stellar-login-help {
    color: rgba(255, 255, 255, 0.72) !important;
}
/* =========================================================
   HOME / INICIO - DISEÑO PROFESIONAL
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 56px 28px;
    text-align: center;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 18%), radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.14), transparent 22%), radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.12), transparent 25%), linear-gradient(135deg, #f8fbff 0%, #f5f3ff 50%, #eef2ff 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    margin-bottom: 28px;
}

.home-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 15%, rgba(99, 102, 241, 0.10), transparent 24%), radial-gradient(circle at 20% 85%, rgba(59, 130, 246, 0.10), transparent 18%), radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08), transparent 18%);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.home-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.20);
    margin-bottom: 18px;
}

.home-title {
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #0f172a;
    margin-bottom: 14px;
}

.home-subtitle {
    font-size: 22px;
    color: #475569 !important;
    font-weight: 500;
    margin-bottom: 10px;
}

.home-welcome {
    font-size: 16px;
    color: #64748b !important;
    max-width: 700px;
    margin: 0 auto 26px;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.home-action-btn {
    min-width: 180px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .home-action-btn.primary {
        background: linear-gradient(135deg, #2563eb, #7c3aed);
        color: white;
        box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    }

        .home-action-btn.primary:hover {
            transform: translateY(-2px);
            color: white;
            box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
        }

    .home-action-btn.secondary {
        background: #ffffff;
        color: #334155;
        border: 1px solid #dbe4f0;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }

        .home-action-btn.secondary:hover {
            color: #0f172a;
            transform: translateY(-2px);
            background: #f8fafc;
        }

.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    transition: all 0.18s ease;
}

    .home-info-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.09);
    }

.home-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.14));
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.home-info-card h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
    color: #0f172a;
}

.home-info-card p {
    text-align: center;
    font-size: 14px;
    color: #64748b !important;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .home-title {
        font-size: 46px;
    }

    .home-subtitle {
        font-size: 19px;
    }

    .home-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 38px 18px;
        border-radius: 22px;
    }

    .home-title {
        font-size: 38px;
    }

    .home-subtitle {
        font-size: 17px;
    }

    .home-actions {
        flex-direction: column;
        align-items: center;
    }

    .home-action-btn {
        width: 100%;
        max-width: 320px;
    }
}
