:root{--navy:#122849;--blue:#2857a4;--pale:#f2f6fc;--ink:#1e293b;--muted:#64748b;--line:#e2e8f0;--green:#16805d}*{box-sizing:border-box}body{margin:0;background:#f7f9fc;color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55}a{color:#2457a6;text-decoration:none}a:hover{text-decoration:underline}.top{background:var(--navy);color:white;padding:15px max(20px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-weight:800;font-size:1.15rem;color:white}.top nav{display:flex;align-items:center;gap:17px;flex-wrap:wrap}.top nav a{color:white}.container{max-width:1120px;margin:32px auto;padding:0 20px;min-height:65vh}.hero{padding:64px 48px;background:linear-gradient(125deg,#122849,#2857a4);color:white;border-radius:24px;margin-bottom:38px}.hero h1{font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.08;margin:12px 0}.hero p{max-width:620px;color:#e0eaff;font-size:1.1rem;margin-bottom:28px}.eyebrow{font-size:.8rem;font-weight:800;letter-spacing:.16em}.page-head{margin-bottom:22px}.page-head h1{margin:0 0 4px;font-size:2rem}.page-head p,.muted,small{color:var(--muted)}h2{margin-top:0}h3{margin:8px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;margin:18px 0 34px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px;margin-bottom:16px;box-shadow:0 4px 14px #152b4a08}.card p{color:#475569}.tag{display:inline-block;border-radius:999px;background:#eaf1ff;color:#214b8c;padding:4px 10px;font-size:.75rem;font-weight:750}.button{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);border:0;border-radius:9px;padding:10px 16px;color:white;font-weight:700;cursor:pointer;font-size:.94rem}.button:hover{background:#1b4388;text-decoration:none}.button:disabled{opacity:.5;cursor:not-allowed}.button.secondary{background:#e9eff8;color:#203e6c}.button.secondary:hover{background:#dce7f7}.actions,.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:17px}.section{margin:34px 0}.section-title{display:flex;justify-content:space-between;align-items:center}.item{display:flex;justify-content:space-between;align-items:center;gap:18px}.form-card{max-width:820px}label{display:block;font-weight:650;font-size:.92rem;margin:14px 0 6px}input,textarea,select{font:inherit;color:var(--ink);width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:8px;background:white}input[type=checkbox],input[type=radio]{width:auto}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}form .button{margin-top:17px}.auth{max-width:460px;margin:7vh auto;padding:30px}.auth h1{margin-top:12px}.alert{background:#e6f7ef;color:#126044;border-radius:9px;padding:12px 15px;margin:15px 0}.alert.error{background:#fff0f0;color:#9b2525}.question-box{border:1px solid var(--line);padding:18px;border-radius:12px;margin:16px 0}.question-box h4{margin:0 0 12px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.radio-option{display:flex;align-items:flex-start;gap:9px;font-weight:400;padding:7px 0}.radio-option input{margin-top:5px}.grade-form{display:grid;grid-template-columns:150px 1fr auto;gap:12px;align-items:end}.grade-form .button{margin:0}.user-form{display:contents}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px;border-bottom:1px solid var(--line)}th{background:#f4f7fb}footer{text-align:center;color:var(--muted);padding:28px 20px;border-top:1px solid var(--line);margin-top:40px}.certificate{background:white;border:12px double #c5a45d;padding:18px;max-width:900px;margin:25px auto;box-shadow:0 8px 25px #12284912}.cert-inner{text-align:center;border:1px solid #d9c58b;padding:50px 28px}.cert-mark{font-size:2.5rem;color:#b08b39}.cert-kicker{letter-spacing:.22em;font-weight:800;color:#8d6d25}.cert-inner h1{font-family:Georgia,serif;font-size:2.6rem;color:var(--navy);margin:8px}.cert-inner h2{font-family:Georgia,serif;font-size:2.1rem;color:#946f20;border-bottom:1px solid #d8c58d;display:inline-block;padding:0 25px 10px}.cert-inner h3{font-size:1.5rem;color:var(--navy)}.cert-bottom{display:flex;justify-content:space-around;gap:25px;margin-top:45px}.cert-bottom div{display:flex;flex-direction:column}.cert-bottom span{font-size:.85rem;color:var(--muted)}@media(max-width:650px){.hero{padding:36px 24px}.top{align-items:flex-start;flex-direction:column}.item{align-items:flex-start;flex-direction:column}.two,.grade-form{grid-template-columns:1fr}.cert-inner{padding:28px 12px}.cert-inner h1{font-size:1.8rem}.cert-inner h2{font-size:1.5rem}.cert-bottom{flex-direction:column;gap:15px}.container{margin-top:20px}}@media print{body{background:white}.top,footer,.no-print,.toolbar{display:none!important}.container{max-width:none;margin:0;padding:0}.certificate{margin:0;border:10px double #c5a45d;box-shadow:none;max-width:none;page-break-inside:avoid}.cert-inner{padding:45px 20px}}

/* Encabezado gris claro en toda la plataforma */
header.top {
    background: linear-gradient(
        230deg,
        #d1d5db  30%,
        #9ca3af 40%,
        #4b5563 230%
    );
    color: #ffffff;
    border-bottom: 1px solid #9ca3af;
}

header a[href*="profile"],
header .user-name,
header .username {
    color: #00FFFF !important;
}



/* Enlaces del encabezado */
header.top a {
    color: #243247 !important;
}

/* Botones del encabezado */
header.top a.button {
    background: #2857a4 !important;
    color: #ffffff !important;
    border-radius: 8px;
}

/* Efecto al pasar el cursor */
header.top a.button:hover {
    background: #1d437f !important;
}

/* Mantener el logo correctamente alineado */
header.top .brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

header.top .brand img {
    height: auto;
    object-fit: contain;
}
/* Logo uniforme en todas las páginas del aula */
header.top {
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
    padding: 12px 8.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
}

header.top .brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 1;
    min-width: 0;
    text-decoration: none;
}

header.top .brand img,
header.top img.logo-capacitec {
    display: block;
    width: 205px;
    max-width: 100%;
    height: 90px;
    object-fit: contain;
    object-position: left center;
}

header.top .brand span {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

header.top nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

@media (max-width: 650px) {
    header.top {
        padding: 10px 4%;
        gap: 10px;
        min-height: 75px;
    }

    header.top .brand img,
    header.top img.logo-capacitec {
        width: 125px;
        height: 55px;
    }

    header.top .brand span {
        font-size: 13px;
    }

    header.top nav {
        gap: 8px;
    }
}
/* Catálogo de cursos: resumen a la izquierda e imagen a la derecha */
.cursos-catalogo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.curso-resumen {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    box-sizing: border-box;
}

.curso-texto {
    flex: 1;
    min-width: 0;
}

.curso-texto h3 {
    margin: 12px 0;
}

.curso-texto p {
    margin: 0 0 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.curso-ver-mas {
    display: inline-block;
    color: #2457a7;
    font-weight: 700;
    text-decoration: none;
}

.curso-ver-mas:hover {
    text-decoration: underline;
}

.curso-imagen {
    width: 5cm;
    height: 5cm;
    flex: 0 0 5cm;
    overflow: hidden;
    border-radius: 8px;
    background: #edf1f7;
}

.curso-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.curso-sin-imagen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #52647a;
    text-align: center;
}

.curso-sin-imagen span {
    font-size: 32px;
}

.curso-sin-imagen small {
    font-size: 11px;
}

@media (max-width: 520px) {
    .curso-resumen {
        gap: 12px;
        padding: 16px;
    }

    .curso-imagen {
        width: 3.5cm;
        height: 3.5cm;
        flex-basis: 3.5cm;
    }
}
/* Portada en la esquina superior derecha de la descripción */
.course-description {
    display: flow-root;
}

.course-description h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

.course-cover {
    float: right;
    width: 5cm;
    height: 5cm;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 0 20px 24px;
    border: 1px solid #dce3ed;
}

.course-description-text {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .course-cover {
        width: 3.5cm;
        height: 3.5cm;
        margin-left: 12px;
    }
}

/* ==========================================
   AULA VIRTUAL CAPACITEC
   HEADER CELESTE PASTEL
   ========================================== */

/* Fondo del encabezado */
header,
.site-header,
.main-header,
.navbar,
.topbar,
.header,
header.site-header {
    background: #E3F2FD !important;
    background-image: none !important;
    border-bottom: 1px solid #D1E4F5;
    box-shadow: 0 3px 12px rgba(20, 55, 95, 0.08);
}

/* Contenedores internos transparentes */
header .container,
.site-header .container,
.main-header .container,
.navbar .container,
.header-inner {
    background: transparent !important;
}

/* Texto del encabezado */
header h1,
header h2,
header p,
header a,
.site-header a,
.navbar a {
    color: #193557;
}

/* Botón Ingresar */
header .btn,
header a.btn,
.site-header .btn,
.navbar .btn {
    background-color: #2857A4 !important;
    color: #FFFFFF !important;
    border-color: #2857A4;
    border-radius: 9px;
}

/* Efecto hover del botón */
header .btn:hover,
header a.btn:hover,
.site-header .btn:hover,
.navbar .btn:hover {
    background-color: #193557 !important;
    color: #FFFFFF !important;
}

/* Logo */
header img,
.site-header img,
.navbar img {
    object-fit: contain;
}

/* Mantener el encabezado encima del contenido */
header,
.site-header,
.main-header,
.navbar {
    position: relative;
    z-index: 1000;
}

/* Adaptación para celulares */
@media (max-width: 768px) {
    header,
    .site-header,
    .main-header,
    .navbar,
    .topbar {
        background: #E3F2FD !important;
    }
}

/* ==========================================
   LOGIN CAPACITEC - DEGRADADO AZUL Y NEGRO
   ========================================== */

/* Panel izquierdo del inicio de sesión */
.login-panel,
.login-brand,
.login-sidebar,
.login-left,
.auth-brand,
.auth-sidebar,
.auth-left,
.login-visual {
    background: linear-gradient(
        145deg,
        #164B91 0%,
        #102B50 45%,
        #080D18 100%
    ) !important;
    color: #FFFFFF !important;
}

/* Textos del panel */
.login-panel h1,
.login-panel h2,
.login-panel h3,
.login-panel p,
.login-brand h1,
.login-brand h2,
.login-brand h3,
.login-brand p,
.login-sidebar h1,
.login-sidebar h2,
.login-sidebar h3,
.login-sidebar p,
.auth-brand h1,
.auth-brand h2,
.auth-brand h3,
.auth-brand p {
    color: #FFFFFF !important;
}

/* Elementos decorativos circulares */
.login-panel::before,
.login-panel::after,
.login-brand::before,
.login-brand::after,
.login-sidebar::before,
.login-sidebar::after {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Caja inferior del panel */
.login-panel .login-note,
.login-brand .login-note,
.login-sidebar .login-note,
.auth-brand .login-note {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #FFFFFF;
    border-radius: 12px;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .login-panel,
    .login-brand,
    .login-sidebar,
    .login-left,
    .auth-brand,
    .auth-sidebar,
    .auth-left,
    .login-visual {
        background: linear-gradient(
            145deg,
            #164B91,
            #080D18
        ) !important;
    }
}

/* Fondo azul degradado del panel izquierdo del login */
.login-page .login-left,
.login-page .login-panel,
.login-page .login-brand,
.login-page .auth-left,
.login-page .auth-brand,
.login-left,
.login-panel,
.login-brand,
.auth-left,
.auth-brand,
.login-visual {
    background: linear-gradient(
        145deg,
        #1769C2 0%,
        #123E78 45%,
        #071426 100%
    ) !important;
    background-color: #123E78 !important;
}

/* Mantener los textos blancos */
.login-left h1,
.login-left h2,
.login-left h3,
.login-left p,
.login-panel h1,
.login-panel h2,
.login-panel h3,
.login-panel p,
.login-brand h1,
.login-brand h2,
.login-brand h3,
.login-brand p,
.auth-left h1,
.auth-left h2,
.auth-left h3,
.auth-left p,
.auth-brand h1,
.auth-brand h2,
.auth-brand h3,
.auth-brand p {
    color: #FFFFFF !important;
}

/* Cajas decorativas translúcidas */
.login-left .login-note,
.login-panel .login-note,
.login-brand .login-note,
.auth-left .login-note,
.auth-brand .login-note {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
    color: #FFFFFF !important;
}
/* ===== CAPACITEC: HEADER PARA MÓVILES ===== */
@media (max-width: 768px) {

    .site-header .nav-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        min-height: 110px !important;
        box-sizing: border-box !important;
    }

    /* Logo: aumentar 10 px */
    .site-header .brand-logo {
        flex: 0 1 200px !important;
        width: 200px !important;
        height: 90px !important;
        max-width: calc(100% - 110px) !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .site-header .brand-logo img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    /* Botón Ingresar a la misma altura del logo */
    .site-header .main-nav {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .main-nav .nav-aula {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        margin: 0 !important;
        font-size: 15px !important;
        white-space: nowrap !important;
        border-radius: 12px !important;
    }
}
