/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

/* Fondo */
body {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  color: #333;
}

/* Títulos */
h1 {
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

h2 {
  margin: 20px 0;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-weight: 600;
}

/* Formulario */
form {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inputs */
form input {
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 15px;
  transition: border 0.3s ease;
}

form input:focus {
  border-color: #4facfe;
  outline: none;
}

/* Botón Guardar */
form button {
  padding: 12px;
  background: #4facfe;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #3a8dde;
}

/* Botón borrar */
#borrar {
  padding: 10px 20px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: 0.3s;
}

#borrar:hover {
  background: #e63939;
}

/* Link */
a {
  margin-top: 15px;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

a:hover {
  text-decoration: underline;
}


/* Tabla */
#tablaCursos {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* Encabezados */
#tablaCursos thead {
  background: #2c3e50;
  color: #fff;
  text-align: left;
}

#tablaCursos thead td {
  padding: 12px 15px;
  font-weight: bold;
}

/* Filas */
#tablaCursos tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

#tablaCursos tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* Hover en filas */
#tablaCursos tbody tr:hover {
  background: #e8f4ff;
  transition: background 0.3s;
}