/*
Revista Universitaria
Noelia Almeida Ibáñez
mailto:nai1@ arroba @ua.es
*/

/* RESET  */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */

body {
    font-family: "Times New Roman", Times, serif;
    background-color: #f3f3f3;
    background-image: url("https://www.transparenttextures.com/patterns/paper.png");
    color: #2b2b2b;
    line-height: 1.7;
}

/* ANIMACION BASE */

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor general (HOJA) */

#contenedor {
    max-width: 1200px;
    margin: 2em auto;
    padding: 3em 3em 3em 4.8em;
    background-color: #fffdf5;

    background-image:
        linear-gradient(to right, #c0392b 2px, transparent 2px),
        url("https://www.transparenttextures.com/patterns/paper-fibers.png");
    background-position: 3em 0, 0 0;
    background-repeat: no-repeat, repeat;

    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    animation: aparecer 0.8s ease;
    position: relative;
}

/* clearfix */
#contenedor::after {
    content: "";
    display: block;
    clear: both;
}

/* Anillas principales */

#contenedor::before {
    content: "";
    position: absolute;
    top: 3em;
    left: 1.4em;
    width: 18px;
    height: calc(100% - 6em);
    background-image: radial-gradient(circle, #999 36%, transparent 37%);
    background-size: 18px 34px;
    pointer-events: none;
}




/* Cabecera */

#titulo h1 {
    font-family: "Palatino Linotype", "Book Antiqua", serif;
    font-size: 2.9em;
    letter-spacing: 0.1em;
    text-align: center;
    color: #1f3a5f;
    text-transform: uppercase;
}

#titulo h2 {
    font-family: Georgia, serif;
    font-size: 1.25em;
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 0.6em;
}

/* Resumen / comentario */

#resumen,
#comentario {
    margin: 2.5em 0;
    padding: 2.2em 2.6em;
    background-color: #fffefc;
    border-left: 6px solid #c0392b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Navegación interna */

#enlacesintra {
    margin-bottom: 3em;
    padding: 2em;
    background-color: #f7f5ec;
    border: 1px solid #d0c8b8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: "Trebuchet MS", Verdana, sans-serif;
}

/* Layout principal */

#apartados {
    width: 68%;
    float: left;
}

/* Apartados (libreta) */

#apartados > div {
    background-color: #fffefc;
    padding: 2.8em 3.2em;
    margin-bottom: 3.8em;
    border-left: 6px solid #c0392b;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}

#apartados > div::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0.045) 0px,
        rgba(0,0,0,0.045) 1px,
        transparent 1px,
        transparent 30px
    );
    pointer-events: none;
}

#apartados > div::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-top: 42px solid #f1ede2;
    border-left: 42px solid transparent;
    box-shadow: -3px 3px 6px rgba(0,0,0,0.18);
}

#apartados h3 {
    font-family: Georgia, serif;
    font-size: 1.7em;
    color: #1f3a5f;
    border-bottom: 1px dashed #aaa;
    margin-bottom: 1em;
}

/* Sidebar */

#enlaces {
    width: 28%;
    float: right;
    background-color: #f9f7f0;
    padding: 2.6em 2em 2.6em 3.6em;
    border-left: 4px solid #ccc;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

#enlaces::before {
    content: "";
    position: absolute;
    top: 2em;
    left: 1.2em;
    width: 14px;
    height: calc(100% - 4em);
    background-image: radial-gradient(circle, #aaa 36%, transparent 37%);
    background-size: 14px 32px;
}

/* Versiones anteriores (BOTONES) */

#enlacesversiones {
    clear: both;
    margin-top: 3.5em;
    padding: 2.4em 2.4em 2.4em 4.8em;
    background-color: #f5f3ea;
    border-top: 2px solid #999;
    position: relative;
}

/* anillas en esta zona */
#enlacesversiones::before {
    content: "";
    position: absolute;
    top: 2em;
    left: 1.6em;
    width: 14px;
    height: calc(100% - 4em);
    background-image: radial-gradient(circle, #aaa 36%, transparent 37%);
    background-size: 14px 32px;
}

#enlacesversiones ul {
    list-style: none;
}

#enlacesversiones li {
    display: inline-block;
    margin: 0 0.8em 0.8em 0;
}

#enlacesversiones a {
    display: inline-block;
    padding: 0.45em 1.2em;
    border-radius: 22px;
    background: linear-gradient(to bottom, #ffffff, #e6e2d6);
    border: 1px solid #b0b0b0;
    color: #333;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

#enlacesversiones a:hover {
    background: linear-gradient(to bottom, #c0392b, #a93226);
    color: #fff;
    border-color: #c0392b;
}

/* Enlaces */

a {
    color: #333;
    border-bottom: 1px dotted #999;
    text-decoration: none;
}

a:hover {
    color: #c0392b;
    border-color: #c0392b;
}

/* Responsive */

@media screen and (max-width: 900px) {

    #apartados,
    #enlaces {
        width: 100%;
        float: none;
    }

    #enlaces {
        margin-top: 2.5em;
        border-left: none;
        border-top: 3px solid #ccc;
        padding-left: 2em;
    }

    #contenedor::before,
    #enlaces::before,
    #enlacesversiones::before {
        display: none;
    }
}

/* Extras */

#extraDiv1,
#extraDiv2,
#extraDiv3,
#extraDiv4,
#extraDiv5,
#extraDiv6 {
    display: none;
}
