﻿body {
    background-color: #f5f8fb;
    font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
}


h1{
    font-size: 200%;
}

h2 {
    font-size: 170%;
}

h3 {
    font-size: 150%;
}

h4 {
    font-size: 120%;
}


/* Layout */
.layout-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.layout-content {
    flex: 1; /* ocupa el espacio disponible entre cabecera y pie */
    overflow-y: auto; /* activa el scroll vertical */
    padding: 1rem;
}

header, footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

footer {
    border-top: 1px solid #ddd;
}


/* Cabecera */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 1rem;
    height: 60px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logoCabecera {
    height: 40px;
    width: auto;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-icon {
    font-size: 1.5rem;
    color: #555;
}

.username {
    font-weight: 500;
}


/* Pie */
.app-footer {
    display: grid;
    grid-auto-columns: 1fr; /* Cada columna ocupa la misma proporción */
    grid-auto-flow: column; /* Distribuye en columnas automáticas */
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    padding: 0.5rem 0;
    text-align: center;
}

.footer-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    font-weight: 500;
    color: #aaa;
}

.menuSelected {
    color: #333;
}

.footer-cell:hover {
    background-color: #e9ecef;
    cursor: pointer;
}


/* General */
.center {
    margin: 0;
    height: Calc(100vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
}


.caja {
    border: 1px solid gray;
    border-radius: 5px;
    background-color: white;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    padding: 20px;
}


.btnIcono {
    width: 200px;
}

    .btnIcono img {
        width: 32px;
    }


.gridHorizontal {
    display: flex;
    align-items: start;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
}

.gridCelda {
    flex: 1 1 80%;
    padding: 10px;
}

.procesando {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #000000ab;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Formularios */
.form {
    padding: 20px;
    text-align: left;
}

    .form label {
        font-weight: bold;
        font-size: 120%;
    }

    .form input {
        padding: 4px;
        margin-bottom: 10px;
        width: 100%;
    }

.is-invalid {
    background-color: #dbb0b0;
}


/* Lecciones */
.leccion-tema {
    border: 1px solid gray;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    margin: 20px 10px;
    padding: 10px;
    background-color: white;
}

.leccion-tema-icono {
    float: left;
    font-size: 150%;
    border-radius: 50%;
    background-color: #dfe8f7;
    padding: 5px;
    margin: 5px;
}

.leccion-tema-titulo{
    font-size: 120%;
    font-weight: bold;
}

.leccion-tema-descripcion{

}

.lecction-tema-progreso {
    font-size: 90%;
}

.leccion-tema-expandir {
    float: right;
    font-size: 200%;
    font-weight: bold;
    cursor: pointer;
}