*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body{
    min-height: 100vh;
}

h3{
    color:white;
}

body{
    font-family: 'Quicksand', sans-serif;
    background-color: #f6f1e9;
    color: #1e1b2e;
    display: flex;
    flex-direction: column;
}

.header{
    width: 100%;
    height: 75px;
    background-color: #1f1d36;
    border-bottom: 2px solid #3f3351;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img{
    width: 55px;
    height: 55px;
}

.menu ul{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu li{
    display: inline-block;
}

.header a{
    text-decoration: none;
    color: #f6f1e9;
    padding: 12px 18px;
    border-radius: 8px;
    transition: 0.3s ease;
    font-weight: 600;
}

.link:hover{
    background-color: #864879;
    color: #ffffff;
}

main{
    width: 100%;
    padding: 40px 20px;
    flex: 1;
}

.tabla-section{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tablita{
    width: 100%;
    overflow-x: auto;
}

.tabla{
    width: 100%;
    border-collapse: collapse;
    background-color: #fffdf9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 18px rgba(31, 29, 54, 0.12);
}

.tabla thead{
    background-color: #3f3351;
}

.tabla th{
    color: #f6f1e9;
    padding: 15px;
    text-align: center;
    font-size: 15px;
}

.tabla td{
    padding: 14px;
    border-bottom: 1px solid #e7dccf;
    text-align: center;
    font-size: 14px;
    background-color: #fffdf9;
}

.form-section{
    display: flex;
    justify-content: center;
}

form{
    width: 100%;
    max-width: 950px;
    background-color: #fffdf9;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0px 4px 18px rgba(31, 29, 54, 0.12);
}

.caja{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.campo{
    display: flex;
    flex-direction: column;
}

.campo label{
    margin-bottom: 8px;
    color: #3f3351;
    font-weight: 600;
}

.campo input{
    width: 100%;
    height: 45px;
    padding: 10px;
    border: 1px solid #d6cfc7;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    font-family: 'Quicksand', sans-serif;
    background-color: #fdf8f2;
    color: #1e1b2e;
}

.campo input:focus{
    border-color: #864879;
    box-shadow: 0px 0px 5px rgba(134, 72, 121, 0.4);
}

.boton-container{
    margin-top: 30px;
    text-align: center;
}

.submit{
    min-width: 110px;
    height: 42px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background-color: #1f1d36;
    color: #f6f1e9;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    transition: 0.3s;
}

.submit:hover{
    background-color: #864879;
    transform: translateY(-2px);
}

.delete-btn{
    background-color: #5c2e4f;
}

.delete-btn:hover{
    background-color: #864879;
}

.footer{
    width: 100%;
    height: 80px;
    border-top: 2px solid #3f3351;
    background-color: #1f1d36;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: auto;
}

.social{
    width: 35px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.3s ease;
}

.social:hover{
    transform: scale(1.15);
}

.footer-fb, 
.footer-twitter, 
.footer-instagram, 
.footer-linkedin {
    filter: drop-shadow(1px 1px 0 white) 
            drop-shadow(-1px -1px 0 white) 
            drop-shadow(1px -1px 0 white) 
            drop-shadow(-1px 1px 0 white);
}

.footer-fb {
    background-image: url('../images/fb.ico');
}

.footer-twitter {
    background-image: url('../images/twitter.ico');
}

.footer-instagram {
    background-image: url('../images/instagram.ico');
}

.footer-linkedin {
    background-image: url('../images/linkedin.ico');
}

@media screen and (max-width: 768px){

    .header{
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }

    .menu ul{
        flex-wrap: wrap;
        justify-content: center;
    }

    form{
        padding: 25px;
    }

    .tabla th,
    .tabla td{
        font-size: 13px;
        padding: 10px;
    }
}