/* =========================
   ESTILOS GENERALES
========================= */
body{
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    font-family: 'Quicksand', sans-serif;
}

/* =========================
   HEADER
========================= */
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    background-color: white;
    border-bottom: 1px solid #D5D9D9;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.header a{
    font-size: 1em;
    color: #7B2D8B;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: 0.3s;
    border-radius: 5px;
}

.header a:hover{
    color: white;
    background-color: #7B2D8B;
}

/* =========================
   LOGO
========================= */
.logo{
    display: flex;
    align-items: center;
}

.logo img{
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* =========================
   MENÚ
========================= */
.header ul{
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.header ul li{
    margin-left: 10px;
}

/* =========================
   TABLA
========================= */
.tablita{
    width: 95%;
    margin: 30px auto;
    overflow-x: auto;
}

.tabla{
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}

.tabla th{
    background-color: #7B2D8B;
    color: white;
    padding: 12px;
    border: 1px solid #D5D9D9;
}

.tabla td{
    padding: 10px;
    text-align: center;
    border: 1px solid #D5D9D9;
}

.tabla tr:nth-child(even){
    background-color: #f2f2f2;
}

.tabla tr:hover{
    background-color: #f5eaff;
}

/* =========================
   FORMULARIO
========================= */
form{
    width: 90%;
    max-width: 700px;
    margin: auto;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}

.caja{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.caja label{
    text-align: left;
    font-weight: bold;
    color: #7B2D8B;
}

.caja input{
    width: 100%;
    height: 40px;
    padding: 5px;
    border: 1px solid #D5D9D9;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
}

/* =========================
   BOTONES
========================= */
.submit,
button{
    width: auto;
    min-width: 100px;
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: #7B2D8B;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    margin: 3px;
}

.submit:hover,
button:hover{
    background-color: #9B3DAB;
}

.btn-editar{
    background-color: #e09a00 !important;
}

.btn-editar:hover{
    background-color: #c07800 !important;
}

.btn-borrar{
    background-color: #cc2e2e !important;
}

.btn-borrar:hover{
    background-color: #a82020 !important;
}

/* =========================
   FOOTER
========================= */
.footer{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
    background-color: white;
    border-top: 1px solid #D5D9D9;
}

/* =========================
   ICONOS SOCIALES
========================= */
.social{
    width: 40px;
    height: 40px;
    display: inline-block;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* IMPORTANTE:
   VERIFICA QUE ESTAS IMÁGENES EXISTAN
   EN:
   proyecto/images/
*/

.footer-fb{
    background-image: url('../images/facebook.png');
}

.footer-twitter{
    background-image: url('../images/twitter.png');
}

.footer-instagram{
    background-image: url('../images/instagram.png');
}

.footer-linkedin{
    background-image: url('../images/linkedin.png');
}

/* =========================
   LINKS
========================= */
a{
    text-decoration: none;
}

.logo span {
    font-size: 1.2em;
    font-weight: bold;
    color: #7B2D8B;
}