/* Background animado */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    position: relative;
    /* Se ha quitado overflow: hidden para habilitar el scroll */
    background: #FFD54F; /* Color base */
}

/* Capa animada de degradado lineal */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFD54F, #FFB74D, #FFA726, #FF9800);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

/* Capa animada de degradado radial rotativo */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 213, 79, 0.4) 0%, rgba(255, 152, 0, 0.4) 70%, transparent 80%);
    animation: rotateBg 20s linear infinite;
    z-index: -1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Título mejorado */
h1 {
    color: #333;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Campo de búsqueda mejorado */
#search {
    width: 300px;
    padding: 10px 15px;
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #FFB74D;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
}

#search:focus {
    border-color: #FFA726;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

/* Diseño mejorado para la tabla */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin: auto;
    max-width: 1000px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 8px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #2660ff;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

tbody tr:hover {
    background-color: #ffe0b2;
}

td {
    text-align: center;
}

.editable {
    background-color: #f9f9f9;
}

button {
    padding: 6px 10px;
    margin-right: 4px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.btnEditar {
    background-color: #007bff;
    color: #fff;
}

.btnGuardar {
    background-color: #28a745;
    color: #fff;
}

.btnCancelar {
    background-color: #dc3545;
    color: #fff;
}
