@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,500;0,900;1,900&display=swap');

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

::selection { background-color: #980379; color: #d1c9b1; }

html, body { height: 100%; }

body {
    background: #D1C9B1;
    font-family: 'Work Sans', sans-serif;
    color: #580c65;
    display: flex;
    flex-direction: column;
}

div#flex-wrap {
    flex: 1 0 auto;
    margin: 0 auto;
    text-align: center;
    padding: 0 4em;
    box-shadow: 0 0 30px rgba(0,0,0,.1);
}

a { color: #580c65; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-style: italic; text-transform: uppercase; }
h1 { font-size: 3rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.7rem; margin-bottom: 0.3rem; } 

/* ==== HEADER ==== */
header {
    background: url('../img/avatar.jpg') center left no-repeat;
    background-size: 40px;
    text-align: left;
    margin: 2rem auto 0;
    padding-left: 70px;
}


/* ==== MENÚ ==== */
nav { font-size: 1.1rem; margin: 3rem 0 1rem; }

nav ul li {
    display: inline-block;
    margin: 0 0.3rem 2rem; 
    text-transform: uppercase;
}

nav ul li:first-child { margin-left: 0; }

nav ul li a {
    padding: 0.6rem 1rem;
    border: 2px solid;
    border-color: transparent;
    border-radius: 2rem;
    transition: border-color 0.25s;
}

nav ul li a:hover,
nav ul li a:focus { border-color: #580c65; }

.link-activo { background-color: #580c65; color: #d1c9b1; }


/* ==== CONTENIDO PRINCIPAL ==== */
main {
    font-size: 1.1rem;
    line-height: 1.8rem;
}


/* ==== FOOTER ==== */
footer {
    background: #580c65;
    background: linear-gradient(90deg, #790992, #980379);
    color: #d1c9b1;
    padding: 1rem 2rem;
    line-height: 1.2rem;
    flex-shrink: 0;
}


/* ==== DISEÑO PARA CELULAR ==== */
@media screen and (max-width:767px) {
        
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { 
        font-size: 1.3rem;
        font-weight: 500;
        text-transform: uppercase;
        margin-bottom: 0.3rem;
    }
    
    header {
        background-position: top center;
        text-align: center;
        padding: 70px 2rem 0;
    }
    
    nav {
        font-size: 0.9rem;
        margin: 1.5rem 0;
        text-align: center;
    }
    
    main {
        font-size: 0.9rem;
        line-height: 1.5rem;
        margin: 2rem;
    }
    
    footer {
        font-size: 0.8rem;
        line-height: 1rem;
        padding: 1rem 2rem; 
        margin: 0;
    }
}