/* ======== ESTILOS GLOBALES ======== */
* {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #eef1f7;
    margin: 0;
    padding: 40px 10px;
    color: #333;
}

/* ======== CONTENEDOR ======== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #2b2b52;
}

/* ======== FORMULARIO ======== */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.formulario input,
.formulario textarea,
.formulario select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.formulario input:focus,
.formulario textarea:focus,
.formulario select:focus {
    border-color: #4c6ef5;
    box-shadow: 0 0 5px rgba(76, 110, 245, 0.3);
}

.fila {
    display: flex;
    gap: 10px;
}

button[name="crear"] {
    background: #4c6ef5;
    border: none;
    color: #fff;
    padding: 12px;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button[name="crear"]:hover {
    background: #364fc7;
}

/* ======== TABLA ======== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead {
    background: #4c6ef5;
    color: white;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background: #f9f9f9;
}

tbody tr:hover {
    background: #f1f4ff;
}

/* ======== BOTONES ======== */
.btn {
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.btn.editar {
    background: #00b894;
    border: none;
}

.btn.editar:hover {
    background: #019874;
}

.btn.eliminar {
    background: #d63031;
}

.btn.eliminar:hover {
    background: #b71c1c;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 800px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    td {
        padding: 8px;
    }

    .fila {
        flex-direction: column;
    }
}