/*
Deuteranopia
Eva Soto Peral
*/

/* Estilos base y reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f5f5f5;
    max-width: 1920px;
    margin: 0 auto;
}

/* Contenedor principal */

#contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Introduccion y encabezados */

#intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0066cc;
}

#titulo h1 {
    font-size: 2.5em;
    color: #0066cc;
    margin-bottom: 10px;
    font-weight: bold;
}

#titulo h2 {
    font-size: 1.3em;
    color: #4d4d4d;
    font-weight: normal;
    margin-bottom: 20px;
}

/* Resumen y comentario */

#resumen,
#comentario {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
}

#resumen p,
#comentario p {
    margin-bottom: 12px;
}

#resumen ul {
    margin-left: 25px;
    margin-bottom: 12px;
}

#resumen li {
    margin-bottom: 8px;
}

/* Enlaces */

a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #003d7a;
    background-color: #fff5b8;
    outline: 3px solid #003d7a;
    outline-offset: 2px;
}

a:visited {
    color: #7a3eb8;
}

/* Enlaces intra */

#enlacesintra {
    background-color: #e6f2ff;
    padding: 15px;
    margin-bottom: 30px;
    border: 2px solid #0066cc;
    border-radius: 5px;
}

#enlacesintra h3 {
    font-size: 1.2em;
    color: #0066cc;
    margin-bottom: 12px;
    font-weight: bold;
}

#enlacesintra ul {
    list-style: none;
}

#enlacesintra li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

#enlacesintra li:before {
    content: "\00BB\0020";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

/* Apartados principales */

#apartados {
    margin-bottom: 30px;
}

#apartados > div {
    margin-bottom: 35px;
    padding: 20px;
    background-color: #fafafa;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
}

#apartados h3 {
    font-size: 1.8em;
    color: #0066cc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #99ccff;
    font-weight: bold;
}

#apartados p {
    margin-bottom: 12px;
    text-align: justify;
}

#apartados ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

#apartados li {
    margin-bottom: 10px;
}

/* Profesores y bibliografia */

dl {
    margin-left: 0;
}

dt {
    font-weight: bold;
    color: #0066cc;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.1em;
}

dd {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #333333;
}

.autores {
    font-style: italic;
    color: #4d4d4d;
}

.editorial {
    color: #666666;
}

.isbn {
    font-size: 0.9em;
    color: #808080;
}

/* Seccion de enlaces lateral */

#enlaces {
    background-color: #f0f7ff;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #99ccff;
    border-radius: 5px;
}

#enlaces > div {
    margin-bottom: 25px;
}

#enlaces h3 {
    font-size: 1.3em;
    color: #0066cc;
    margin-bottom: 12px;
    font-weight: bold;
    border-bottom: 1px solid #99ccff;
    padding-bottom: 8px;
}

#enlaces ul {
    list-style: none;
}

#enlaces li {
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

#enlaces li:before {
    content: "\00B7\0020";
    position: absolute;
    left: 0;
    color: #0066cc;
}

/* Versiones anteriores */

#enlacesversiones {
    background-color: #fff8e6;
    padding: 15px;
    border: 1px solid #ffcc66;
    border-radius: 5px;
    margin-bottom: 20px;
}

#enlacesversiones h3 {
    font-size: 1.2em;
    color: #cc6600;
    margin-bottom: 12px;
    font-weight: bold;
}

#enlacesversiones ul {
    list-style: none;
}

#enlacesversiones li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
}

#enlacesversiones li:after {
    content: " |";
    margin-left: 15px;
    color: #cc6600;
}

#enlacesversiones li:last-child:after {
    content: "";
}

/* Divs extras */

#extraDiv1, #extraDiv2, #extraDiv3,
#extraDiv4, #extraDiv5, #extraDiv6 {
    display: none;
}

/* Responsive */

/* Pantallas medianas (640px - 1024px) */
@media screen and (min-width: 640px) and (max-width: 1024px) {
    body {
        font-size: 15px;
    }
    
    #contenedor {
        width: 95%;
        padding: 15px;
    }
    
    #titulo h1 {
        font-size: 2em;
    }
    
    #titulo h2 {
        font-size: 1.2em;
    }
    
    #apartados h3 {
        font-size: 1.5em;
    }
    
    #enlaces {
        padding: 15px;
    }
}

/* Pantallas pequenas (640px - 768px) */
@media screen and (min-width: 640px) and (max-width: 768px) {
    #titulo h1 {
        font-size: 1.8em;
    }
    
    #apartados > div {
        padding: 15px;
    }
    
    #enlacesintra ul {
        display: block;
    }
    
    #enlacesintra li {
        display: block;
        margin-bottom: 10px;
    }
}

/* Pantallas grandes (1440px - 1920px)ñ */
@media screen and (min-width: 1440px) {
    body {
        font-size: 18px;
    }
    
    #titulo h1 {
        font-size: 3em;
    }
    
    #titulo h2 {
        font-size: 1.5em;
    }
    
    #apartados h3 {
        font-size: 2em;
    }
}

/* Enfoque del teclado */
*:focus {
    outline: 3px solid #003d7a;
    outline-offset: 2px;
}

/* Contenido para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Impresion */

@media print {
    body {
        background-color: #ffffff;
        color: #000000;
        font-size: 12pt;
    }
    
    #contenedor {
        width: 100%;
        box-shadow: none;
    }
    
    #enlaces,
    #enlacesversiones {
        display: none;
    }
    
    a {
        text-decoration: underline;
        color: #000000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}