/* ======== CONFIGURACIÓN GENERAL ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    color: #333;
}

/* ======== ENCABEZADO ======== */
h2 {
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    font-size: 2em;
}

/* ======== FORMULARIO DE CREACIÓN ======== */
form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 80%;
    max-width: 800px;
    margin-bottom: 25px;
    transition: transform 0.2s ease-in-out;
}

form:hover {
    transform: scale(1.02);
}

input[type="text"],
textarea,
select {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    max-width: 220px;
    font-size: 14px;
    transition: 0.2s;
}

textarea {
    resize: none;
    height: 40px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #4facfe;
    outline: none;
    box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
}

/* ======== BOTONES ======== */
button,
a.button {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

button:hover,
a.button:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ======== TABLA DE TAREAS ======== */
table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 90%;
    max-width: 900px;
    border-collapse: collapse;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

th {
    background: #4facfe;
    color: white;
    padding: 12px;
    text-transform: uppercase;
    font-size: 14px;
}

td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #eaf7ff;
    transition: 0.2s;
}

/* ======== ACCIONES ======== */
a {
    color: #4facfe;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* ======== FORMULARIO DE EDICIÓN ======== */
.editar-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 500px;
    margin-top: 50px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.editar-container input,
.editar-container textarea,
.editar-container select {
    width: 90%;
    margin: 10px 0;
}

.editar-container button {
    width: 50%;
}

/* ======== ANIMACIÓN ======== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}