body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: #f4f7fb;
    color: #263238;
    text-align: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
    background-color: #0f172a;
    border-bottom: 4px solid #38bdf8;
}

.logo {
    margin: 0;
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
}

.menu li {
    display: inline-block;
}

.link {
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.link:hover {
    background-color: #38bdf8;
    color: #0f172a;
}

main {
    padding: 30px 20px;
}

h1 {
    margin-bottom: 25px;
    color: #0f172a;
}

.tablita {
    display: inline-block;
    overflow-x: auto;
    max-width: 95%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.tabla {
    border-collapse: collapse;
    min-width: 1000px;
}

.tabla th {
    background-color: #0f172a;
    color: white;
    padding: 12px;
    border: 1px solid #cbd5e1;
}

.tabla td {
    padding: 10px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
}

.tabla tr:nth-child(even) td {
    background-color: #eaf6ff;
}

form {
    margin: 30px auto;
    max-width: 900px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.caja {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: left;
}

.caja label {
    color: #0f172a;
}

.caja input {
    width: 100%;
    height: 38px;
    padding: 5px 8px;
    box-sizing: border-box;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    font-family: 'Quicksand', sans-serif;
}

.caja input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 4px #38bdf8;
}

.submit {
    min-width: 100px;
    height: 36px;
    margin: 10px 4px 0;
    padding: 0 14px;
    font-family: 'Quicksand', sans-serif;
    color: white;
    background-color: #0284c7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.submit:hover {
    background-color: #0369a1;
}

.editar {
    background-color: #16a34a;
}

.editar:hover {
    background-color: #15803d;
}

.borrar {
    background-color: #dc2626;
}

.borrar:hover {
    background-color: #b91c1c;
}

.limpiar {
    background-color: #64748b;
}

.limpiar:hover {
    background-color: #475569;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 60px;
    padding: 1em;
    background-color: #0f172a;
    border-top: 4px solid #38bdf8;
}

.social {
    width: 32px;
    height: 32px;
    display: inline-block;
    background-size: cover;
}

.footer-fb {
    background-image: url('../images/fb.ico');
}

.footer-twitter {
    background-image: url('../images/twitter.ico');
}

.footer-instagram {
    background-image: url('../images/instagram.ico');
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }

    .caja {
        grid-template-columns: 1fr;
    }

    .tabla {
        min-width: 900px;
    }
}