*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    height: 100%;
}

body{
    background: linear-gradient(135deg, #bbbfca, #dfe3ea);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* HEADER */
#encabezado{
    display: grid;
    place-items: center;
    padding: 30px;
    background: linear-gradient(90deg, #0e2342, #1b3b6f);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#encabezado h1{
    font-size: 32px;
    letter-spacing: 2px;
}

/* NAV */
.menu{
    display: flex;
    justify-content: center;
    gap: 40px;
    background-color: #2f3e52;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.menu a{
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.menu a:hover{
    color: #aab7c4;
    transform: scale(1.1);
}

/* MAIN */
main{
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    flex-wrap: wrap;
    flex: 1;
}

/* SECTIONS */
section{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

section h2{
    width: 100%;
    margin-bottom: 10px;
    color: #0e2342;
}

/* CARDS */
section li{
    background: white;
    padding: 15px;
    margin: 10px;
    width: 230px;
    border-radius: 15px;
    text-align: left;
    color: #1b2738;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    line-height: 1.5;
    border-left: 6px solid #0e2342;
    transition: 0.3s;
}

section li:hover{
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}

/* LINKS */
section a{
    font-weight: bold;
}

a{
    color: #1b2738;
    font-weight: bold;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

section a:hover{
    color: #410208;
    background-color: rgba(0,0,0,0.05);
}

/* ANIMACION */
section:target{
    animation: mostrar 2s ease forwards;
    border-radius: 20px;
}

@keyframes mostrar{
    0%{
        background-color: rgba(16,32,57,0.2);
    }
    100%{
        background-color: transparent;
    }
}

/* DESCRIPCION */
.Descripcion{
    font-size: 13px;
    color: #444;
    text-align: justify;
}

/* LISTAS */
li{
    list-style: none;
}

/* FOOTER */
#pie{
    background: linear-gradient(90deg, #0e2342, #1b3b6f);
    color: white;
    padding: 25px 10px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}

#pie h4{
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.5px;
    padding: 5px;
}
