/* ===== RESET ===== */
* {
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    margin: 0;
    padding: 40px 15px;
}

/* ===== CONTENEDOR ===== */
.container {
    background: #fff;
    max-width: 1000px;
    margin: auto;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

/* ===== FORMULARIO ===== */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.formulario input,
.formulario textarea,
.formulario select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.formulario input:focus,
.formulario textarea:focus,
.formulario select:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
}

.fila {
    display: flex;
    gap: 10px;
}

button[name="crear"] {
    background: #6c63ff;
    border: none;
    color: white;
    padding: 12px;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button[name="crear"]:hover {
    background: #4b48d2;
}

/* ===== TABLA ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead {
    background: #6c63ff;
    color: white;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background: #f7f7ff;
}

tbody tr:hover {
    background: #eef0ff;
}

/* ===== BOTONES ===== */
.btn {
    padding: 7px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

.editar {
    background: #00b894;
    border: none;
}

.editar:hover {
    background: #009874;
}

.eliminar {
    background: #e84118;
}

.eliminar:hover {
    background: #c23616;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .fila {
        flex-direction: column;
    }

    table,
    thead,
    tbody,
    tr,
    td,
    th {
        display: block;
    }

    td {
        padding: 10px;
    }
}