/* ====== GENERAL ====== */
body {
    font-family: 'Poppins', sans-serif;
    background: #e0e5ec;
    color: #222;
    margin: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ====== TITULOS ====== */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* ====== FORMULARIO ====== */
form {
    background: #e0e5ec;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 7px 7px 14px #c1c7d1,
                -7px -7px 14px #ffffff;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ====== INPUTS HUNDIDOS ====== */
form input {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #c1c7d1,
                inset -4px -4px 8px #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

form input:focus {
    box-shadow: inset 3px 3px 6px #c1c7d1,
                inset -3px -3px 6px #ffffff,
                0 0 6px #4db8ff;
}

/* ====== BOTONES ====== */
button, #borrarCurso {
    background: #e0e5ec;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin: 10px auto;
    display: block;
    box-shadow: 5px 5px 10px #c1c7d1,
                -5px -5px 10px #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

/* === Hover con efecto flotante y brillo === */
button:hover, #borrarCurso:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 8px 8px 16px #c1c7d1,
                -8px -8px 16px #ffffff,
                0 0 12px rgba(255, 255, 255, 0.6);
}

/* === Presionado === */
button:active, #borrarCurso:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: inset 5px 5px 10px #c1c7d1,
                inset -5px -5px 10px #ffffff;
}

/* ====== MENSAJE CURSO ====== */
#mensajeCurso {
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    background: #e0e5ec;
    box-shadow: inset 6px 6px 12px #c1c7d1,
                inset -6px -6px 12px #ffffff;
    width: 320px;
    text-align: center;
    font-weight: 500;
    color: #444;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ====== ANIMACIÓN SOLO AL GUARDAR ====== */
#mensajeCurso:not(:empty) {
    opacity: 1;
    transform: scale(1);
    animation: aparecerFuturo 0.9s ease;
}

/* ====== KEYFRAMES 3D FUTURISTA ====== */
@keyframes aparecerFuturo {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(90deg) scale(0.5);
        filter: blur(8px);
    }
    50% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) scale(1.05);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) scale(1);
        filter: blur(0);
    }
}
/* ====== TABLA NEUMÓRFICA ====== */
#tabla-cursos {
    width: 90%;
    margin: 30px auto;
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
    background: #e0e5ec;
    font-family: 'Poppins', sans-serif;
    box-shadow: 8px 8px 16px #b8bcc2, 
                -8px -8px 16px #ffffff;
}

/* Encabezados */
#tabla-cursos thead {
    background: #e0e5ec;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    box-shadow: inset 4px 4px 8px #b8bcc2, 
                inset -4px -4px 8px #ffffff;
}

#tabla-cursos thead td {
    padding: 15px;
    text-align: center;
}

/* Celdas */
#tabla-cursos td {
    padding: 12px 15px;
    text-align: center;
    color: #222;
    border-bottom: 1px solid #d6dae1;
}

/* Filas */
#tabla-cursos tbody tr {
    transition: all 0.3s ease;
}

#tabla-cursos tbody tr:hover {
    background: #f0f3f7;
    transform: scale(1.01);
    box-shadow: 4px 4px 8px #b8bcc2, 
                -4px -4px 8px #ffffff;
}

/* Última fila sin borde */
#tabla-cursos tbody tr:last-child td {
    border-bottom: none;
}
