/* ======== ESTILO GENERAL ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    color: #333;
}

/* ======== CONTENEDOR PRINCIPAL ======== */
.container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ======== TÍTULO ======== */
h1 {
    text-align: center;
    color: #fff;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* ======== FORMULARIO ======== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

form input,
form textarea,
form select {
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.6);
}

form button {
    background: #6a11cb;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
}

/* ======== TABLA ======== */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: #6a11cb;
    color: #fff;
}

th,
td {
    padding: 14px;
    text-align: left;
    font-size: 15px;
}

tbody tr:nth-child(even) {
    background: rgba(240, 240, 255, 0.8);
}

tbody tr:hover {
    background: rgba(226, 220, 255, 0.9);
}

/* ======== BOTONES DE ACCIÓN ======== */
.acciones a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    margin-right: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.editar {
    background: #ff9f43;
}

.editar:hover {
    background: #e67e22;
    transform: scale(1.05);
}

.eliminar {
    background: #eb4d4b;
}

.eliminar:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 700px) {
    table {
        font-size: 14px;
    }

    form {
        gap: 10px;
    }

    form input,
    form textarea,
    form select {
        font-size: 14px;
    }
}