/* === RESET GENERAL === */
html, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    font-family: sans-serif;
    background-color: #fff;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body, div, header, h1, main, section, p, a, ul, li, input, label, select, button {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    text-decoration: none;
}
footer{
    display: flex;
    background-color: #ccf;
    bottom: 0;
    width: 100%;
    height: 60px;
    align-items: center;
}

/* === ENLACES === */
a {
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 20px;
    color: #000;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
a:hover {
    background-color: #ccc;
}

/* === ESTRUCTURA PRINCIPAL === */
body {
    display: flex;
    flex-direction: column;
}

/* === ENCABEZADO === */
.header {
    display: flex;
    width: 100%;
    text-align: center;
    flex-direction: row;
}

.encabezado {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
}

/* === MENÚ DE NAVEGACIÓN === */
.menu{
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #ccf;
}
.lista {
    font-size: 1rem;
    margin: 10px;
}

/* === CONTENIDO PRINCIPAL CON GRID === */
.cuerpo {
    display: grid;
    flex:1;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 10px;
    padding: 20px;
}

/* === PUBLICIDAD / SIDEBARS === */
.lb {
    display: flex;
    border: 2px solid #060;
    align-items: center;
    justify-content: center;
}

.publicidad-1 {
    grid-column: 1;
}

.publicidad-2 {
    grid-column: 3;
}

.area-publicitaria {
    width: 90%;
    height: 90%;
    background-color: #fff;
}

/* === CONTENIDO PRINCIPAL === */
main {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main > section {
    width: 100%;
    max-width: 800px;
}

p {
    display: flex;
    text-align: left;
    margin: 1rem auto;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* === FORMULARIOS Y BOTONES === */
form, .form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

label {
    padding-bottom: 5px;
}

input {
    width: 100%;
    padding: 10px;
    border-bottom: #ccf solid 2px;
    border-left: #ccf solid 2px;
    border-radius: 5px;
}

select {
    padding: 5px;
}

button, .buttom {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #060;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* === RESULTADOS DEL FORMULARIO === */
.result.excelente { color: green; font-weight: bold; }
.result.bueno     { color: orange; font-weight: bold; }
.result.regular   { color: darkorange; font-weight: bold; }
.result.malo      { color: red; font-weight: bold; }

.no-respondida {
    border: 2px solid red !important;
}

/* === TABLAS === */
th, td {
    padding: 10px;
    background-color: #fff;
}

/* === SECCIÓN DE AGRADECIMIENTO / DONACIÓN === */
.gracias {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.gracias > p {
    text-align: center;
}

.gracias > a > img {
    height: 60px;
}

/* === MEDIA QUERIES PARA MÓVILES === */
@media screen and (max-width: 768px) {
    .menu > ul {
        flex-direction: row;
    }

    .lista {
        margin: 5px 0;
    }

    .cuerpo {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .publicidad-1,
    .publicidad-2 {
        order: 2;
        margin: 10px 0;
    }

    main {
        order: 1;
        width: 100%;
    }

    a {
        justify-content: center;
    }

    .form, form {
        width: 90%;
    }

    .area-publicitaria {
        width: 100%;
        height: auto;
    }

    input {
        width: 100%;
    }
}

.asignatura{
    display: flex;
    width: auto;
}

.publicitario{
    display: flex;
    position: absolute;
    border: 2px solid #000;
    width: 400px;
    height: 200px;

}

.pl{
    right:0 ;
}