/*
Web 2.0
Rocío Marcos Guzmán
mailto:rmg170@alu.ua.es
*/

/* ----- CONFIGURACIÓN GENERAL ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #333;
    margin: 0;
    padding: 0;
}

#contenedor {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 10px;
}

/* ----- CABECERA ----- */

#intro {
    background: #3A7BD5;
    color: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

#titulo h1 span {
    font-size: 2.5em;
    font-weight: 600;
    color: #fff;
}
#titulo h2 span {
    font-size: 1.2em;
    color: #e7f0ff;
}

/* Imagen INTRO usando pseudo-elemento */
#intro::after {
    content: "";
    display: block;
    width: 90%;
    max-width: 700px;
    height: 300px;
    margin: 20px auto 0 auto;
    background-image: url("progra.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* ----- MENÚ HORIZONTAL SUPERIOR ----- */

#enlacesintra ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    background: #7FB3FF;
    border-radius: 6px;
}

#enlacesintra ul li a {
    display: block;
    padding: 10px 15px;
    color: #003366;
    font-weight: bold;
    text-decoration: none;
}

#enlacesintra ul li a:hover {
    background: #3A7BD5;
    color: white;
    border-radius: 4px;
}

/* ----- DISTRIBUCIÓN DE CONTENIDO ----- */

#apartados {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 900px) {
    #apartados {
        grid-template-columns: 2fr 2fr;
    }
}

/* ----- BLOQUES PRINCIPALES ----- */
#objetivos, #contenidos, #profesores, #bibliografia {
    background: #ffffff;
    padding: 15px;
    border-left: 6px solid #3A7BD5;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
    position: relative;
}

h3 span {
    font-size: 1.4em;
    color: #3A7BD5;
}

/* ------------------------------
   IMÁGENES DE LOS APARTADOS CON PSEUDO-ELEMENTOS
   ----------------------------- */

/* OBJETIVOS ? objetivos.avif */
#objetivos::after {
    content: "";
    display: block;
    width: 90%;
    max-width: 650px;
    height: 500px;
    margin: 20px auto 0 auto;
    background-image: url("objetivos.avif");
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

/* PROFESORES ? profes.avif */
#profesores::after {
    content: "";
    display: block;
    width: 90%;
    max-width: 650px;
    height: 350px;
    margin: 20px auto 0 auto;
    background-image: url("profes.avif");
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

/* BIBLIOGRAFÍA ? bibliografia.avif */
#bibliografia::after {
    content: "";
    display: block;
    width: 90%;
    max-width: 650px;
    height: 165px;  
    margin: 20px auto 0 auto;
    background-image: url("biblio.avif");
    background-size: contain;
    background-position: center;
    border-radius: 6px;
}

/* ----- COLUMNAS LATERALES ----- */
#enlaces, #enlacesversiones {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

#enlaces ul, #enlacesversiones ul {
    list-style: none;
    padding: 0;
}

#enlaces a, #enlacesversiones a {
    text-decoration: none;
    font-weight: bold;
    color: #004a99;
}

#enlaces a:hover, #enlacesversiones a:hover {
    color: #3A7BD5;
}

/* Ocultamos los div extra que no se usan */
#extraDiv1, #extraDiv2, #extraDiv3, #extraDiv4, #extraDiv5, #extraDiv6 {
    display: none;
}


