body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #0b1320;
}

/* =========================
   PORTADA PRINCIPAL
========================= */

.hero-educaia {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 35%),
                linear-gradient(135deg, #071d3a, #0b2f2a 60%, #08111d);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.logo-educaia {
    max-width: 180px;
    height: auto;
    display: block;
}

/* =========================
   TEXTOS PRINCIPALES
========================= */

.badge-ia {
    background: rgba(255, 255, 255, 0.95);
    color: #0d6efd;
    font-size: 15px;
    border-radius: 50px;
    font-weight: 700;
}

.text-hero {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.35rem;
    line-height: 1.7;
}

.display-3 {
    letter-spacing: -1px;
}

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

.btn-custom {
    border-radius: 15px;
    font-weight: 700;
    min-width: 170px;
}

.btn-custom-outline {
    border-radius: 15px;
    font-weight: 700;
    min-width: 170px;
}

/* =========================
   TARJETA PRINCIPAL
========================= */

.card-hero {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 28px;
}

.titulo-card {
    color: #0d6efd;
    font-size: 1.7rem;
}

.list-group-item {
    font-size: 1.1rem;
    padding: 16px 10px;
    background: transparent;
}

/* =========================
   SECCIÓN MÓDULOS
========================= */

.seccion-modulos {
    background: linear-gradient(135deg, #0b1320, #10243f);
}

.text-modulos {
    color: rgba(255, 255, 255, 0.75);
}

.modulo-card {
    transition: all 0.3s ease;
}

.modulo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.icono-modulo {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(135deg, #dcfce7, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* =========================
   PIE DE PÁGINA
========================= */

.footer-educaia {
    background: #08111d;
}

/* =========================
   LOGIN
========================= */

.login-educaia {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 35%),
                linear-gradient(135deg, #071d3a, #0b2f2a 60%, #08111d);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 28px;
}

.login-card .form-control,
.login-card .form-select {
    border-radius: 14px;
    border: 1px solid #d6dee8;
}

.login-card .form-control:focus,
.login-card .form-select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.18);
}

.btn-login {
    border-radius: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #16a34a);
    border: none;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0b5ed7, #15803d);
}

/* =========================
   PANEL ADMINISTRADOR GLOBAL
========================= */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f3f6fb;
}

.sidebar-admin {
    width: 290px;
    background: linear-gradient(180deg, #071d3a, #0b2f2a);
    color: #ffffff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 22px 18px;
    overflow-y: auto;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}

.sidebar-logo {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
}

.sidebar-logo img {
    width: 95px;
    background: #ffffff;
    padding: 8px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.sidebar-logo h5 {
    font-weight: 800;
    margin-bottom: 0;
    color: #ffffff;
}

.sidebar-logo span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.menu-link:hover,
.menu-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateX(4px);
}

.menu-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-footer {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: #ffffff;
    color: #0b2f2a;
    padding: 12px 14px;
    border-radius: 15px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.logout-link:hover {
    background: #dcfce7;
    color: #14532d;
}

.admin-main {
    margin-left: 290px;
    width: calc(100% - 290px);
    min-height: 100vh;
}

.admin-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e8eef6;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

.admin-title h4 {
    margin: 0;
    font-weight: 800;
    color: #071d3a;
}

.admin-title span {
    color: #6b7280;
    font-size: 14px;
}

.content-wrapper {
    padding: 32px;
}

.page-card,
.form-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 28px;
    border: 1px solid #eef2f7;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.btn-rounded {
    border-radius: 12px;
    font-weight: 700;
}

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

@media (max-width: 768px) {
    .hero-educaia {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .logo-box {
        margin-top: 20px;
        padding: 8px 12px;
        border-radius: 18px;
    }

    .logo-educaia {
        max-width: 140px;
    }

    .text-hero {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .display-3 {
        font-size: 2.7rem;
    }

    .titulo-card {
        font-size: 1.4rem;
    }

    .list-group-item {
        font-size: 1rem;
    }

    .btn-custom,
    .btn-custom-outline {
        width: 100%;
        margin-bottom: 10px;
    }


	.menu-icon i {
    font-size: 19px;
    line-height: 1;
}

.logout-link i {
    font-size: 18px;
}
}

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

@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar-admin {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}