
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #333;
    text-align: center;
    padding: 20px;
}

header{
    background: #2c3e50;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.menu ul{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.menu a:hover{
    color: #c6a3e7;
}

.tablita{
    width: 95%;
    margin: auto;
    overflow-x: auto;
}

.tabla{
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    border-radius: 10px;
    overflow: hidden;
}

.tabla thead{
    background:#c6a3e7;
    color: white;
}

.tabla th,
.tabla td{
    padding: 12px;
    border: 1px solid #ddd;
}

.tabla tbody tr:nth-child(even){
    background: #f8f9fa;
}

.tabla tbody tr:hover{
    background: #d6eaf8;
}

form{
    width: 500px;
    max-width: 90%;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.caja{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.caja label{
    text-align: left;
    font-weight: bold;
}

.caja input{
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: .3s;
}

.caja input:focus{
    border-color:#c6a3e7;
    box-shadow: 0 0 5px rgb(165, 212, 243);
}

.submit{
    background: #c6a3e7;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
    margin: 2px;
}

.submit:hover{
    background: #c6a3e7;
}

input[value="Borrar"]{
    background: #d88e85;
}

input[value="Borrar"]:hover{
    background: #e78e84;
}

@media (max-width: 768px){

    .menu ul{
        flex-direction: column;
        gap: 10px;
    }

    .tabla th,
    .tabla td{
        padding: 8px;
        font-size: 14px;
    }

    form{
        width: 95%;
    }
}

