html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================= */
/* STELLARMINDS - ESTÉTICA FINAL */
/* ============================= */

:root {
    --space-dark: #050816;
    --space-blue: #0f172a;
    --deep-blue: #1e3a8a;
    --sky-blue: #38bdf8;
    --soft-blue: #dbeafe;
    --card-bg: rgba(255, 255, 255, 0.94);
    --text-main: #111827;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 32%), radial-gradient(circle at top right, rgba(30, 58, 138, 0.35), transparent 35%), linear-gradient(180deg, #050816 0%, #0f172a 38%, #f4f7fb 38%, #f4f7fb 100%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Navbar */
.navbar {
    background: rgba(5, 8, 22, 0.94) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 0.5px;
}

    .navbar-brand::before {
        content: "✦ ";
        color: var(--sky-blue);
    }

.navbar .nav-link {
    color: #dbeafe !important;
    font-weight: 500;
    margin: 0 4px;
    border-radius: 999px;
    padding: 8px 13px !important;
    transition: all 0.2s ease;
}

    .navbar .nav-link:hover {
        color: #ffffff !important;
        background: rgba(56, 189, 248, 0.16);
        transform: translateY(-1px);
    }

/* Contenedor general */
main {
    background: var(--card-bg);
    margin-top: 28px;
    padding: 32px;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Títulos */
h1, h2, h3 {
    color: #0f172a;
    font-weight: 800;
}

h1 {
    margin-bottom: 24px;
    position: relative;
}

    h1::after {
        content: "";
        display: block;
        width: 78px;
        height: 4px;
        margin-top: 10px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--deep-blue), var(--sky-blue));
    }

/* Hero Home */
.hero-section {
    padding: 95px 28px;
    margin: -32px -32px 36px -32px;
    color: white;
    text-align: center;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.35), transparent 25%), radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.28), transparent 25%), linear-gradient(135deg, #020617, #0f172a 42%, #1e3a8a);
    border-radius: 26px 26px 36px 36px;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: "✦ ✧ ✦ ✧ ✦";
        position: absolute;
        top: 22px;
        right: 36px;
        color: rgba(255, 255, 255, 0.55);
        letter-spacing: 14px;
        font-size: 18px;
    }

    .hero-section h1 {
        color: white;
        font-size: clamp(2.4rem, 5vw, 4.4rem);
    }

        .hero-section h1::after {
            margin-left: auto;
            margin-right: auto;
            background: linear-gradient(90deg, #ffffff, var(--sky-blue));
        }

    .hero-section p {
        max-width: 760px;
        margin: 0 auto;
        color: #dbeafe;
        font-size: 1.18rem;
    }

/* Cards */
.card,
.dashboard-card {
    border: none;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.11);
    transition: all 0.22s ease;
}

    .card:hover,
    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    }

.card-title {
    color: var(--deep-blue);
    font-weight: 800;
}

/* Formularios */
.form-control,
.form-select,
select {
    border-radius: 14px !important;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
}

    .form-control:focus,
    .form-select:focus,
    select:focus {
        border-color: var(--sky-blue);
        box-shadow: 0 0 0 0.22rem rgba(56, 189, 248, 0.22);
    }

label {
    font-weight: 650;
    color: #1e293b;
    margin-bottom: 6px;
}

/* Botones */
.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 9px 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-blue), #2563eb);
    border: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #172554, #1d4ed8);
        transform: translateY(-1px);
    }

.btn-outline-primary {
    border-color: var(--deep-blue);
    color: var(--deep-blue);
}

    .btn-outline-primary:hover {
        background: var(--deep-blue);
        border-color: var(--deep-blue);
    }

.btn-danger {
    background: #dc2626;
    border: none;
}

.btn-warning {
    background: #f59e0b;
    border: none;
    color: #111827;
}

/* Tablas */
.table {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

    .table thead {
        background: linear-gradient(135deg, #0f172a, #1e3a8a);
        color: white;
    }

        .table thead th {
            border: none;
            padding: 14px;
        }

    .table tbody td {
        padding: 13px 14px;
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background-color: #eff6ff;
    }

/* Alertas */
.alert {
    border: none;
    border-radius: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #050816;
    color: #cbd5e1 !important;
    border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
}

    .footer a {
        color: var(--sky-blue);
    }

/* Links generales */
a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 22px;
        border-radius: 18px;
    }

    .hero-section {
        margin: -22px -22px 28px -22px;
        padding: 70px 18px;
    }

    .navbar .nav-link {
        margin: 4px 0;
    }
}

.stellar-body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.28), transparent 28%), radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.25), transparent 30%), radial-gradient(circle at 50% 90%, rgba(14, 165, 233, 0.16), transparent 35%), linear-gradient(180deg, #020617 0%, #0f172a 45%, #111827 100%);
    color: #e5e7eb;
}

    .stellar-body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, rgba(255,255,255,0.85) 1px, transparent 1px), radial-gradient(circle, rgba(56,189,248,0.55) 1px, transparent 1px);
        background-size: 90px 90px, 140px 140px;
        opacity: 0.16;
    }

.stellar-header {
    padding: 34px 24px 22px;
    text-align: center;
}

.stellar-brand a {
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-decoration: none;
}

.stellar-brand p {
    margin-top: 6px;
    color: #bae6fd;
    font-size: 0.98rem;
}

.stellar-nav {
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .stellar-nav a,
    .stellar-user {
        color: #dbeafe;
        font-weight: 650;
        font-size: 0.92rem;
        text-decoration: none;
        padding: 9px 13px;
        border-radius: 999px;
        transition: all 0.2s ease;
    }

        .stellar-nav a:hover {
            background: rgba(56, 189, 248, 0.18);
            color: #ffffff;
            transform: translateY(-1px);
        }

.stellar-user {
    color: #7dd3fc;
}

.stellar-page {
    width: 100%;
    padding: 26px 18px 70px;
}

.stellar-main {
    max-width: 1180px;
    margin: 0 auto;
    background: rgba(248, 250, 252, 0.93);
    color: #111827;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(186, 230, 253, 0.32);
}

.stellar-footer {
    text-align: center;
    color: #93c5fd;
    padding: 22px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stellar-brand a {
        font-size: 1.6rem;
    }

    .stellar-nav {
        border-radius: 24px;
    }

    .stellar-main {
        padding: 22px;
        border-radius: 22px;
    }
}