body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f3f4f6;
}

.container {
  display: flex;
  min-height: 100vh;
}

.resumen {
  background: #1f2937;
  color: white;
  padding: 20px;
  width: 250px;
}

.resumen h2 {
  margin-bottom: 15px;
}

.lista {
  flex: 1;
  padding: 30px;
}

.formulario {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.formulario input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.formulario button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
}

.formulario button:hover {
  background: #1e40af;
}

#tareas {
  list-style: none;
  padding: 0;
}

.tarea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tarea p {
  margin: 0;
}

.tarea.realizada p {
  text-decoration: line-through;
  color: gray;
}

.tarea button {
  margin-left: 5px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-completar {
  background: #10b981;
  color: white;
}

.btn-completar:hover {
  background: #047857;
}

.btn-eliminar {
  background: #ef4444;
  color: white;
}

.btn-eliminar:hover {
  background: #b91c1c;
}
