.dia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  background: #0f0f1a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.dia-nav {
  font-size: 20px;
  color: #333345;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.dia-nav:hover {
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.1);
}

.dia-titulo {
  text-align: center;
}

.dia-titulo h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.dia-titulo p {
  font-size: 11px;
  color: #444458;
  margin-top: 2px;
}

.horas {
  display: flex;
  flex-direction: column;
}

.hora-fila {
  display: flex;
  min-height: 52px;
  border-top: 1px solid #0f0f1a;
  transition: background 0.15s;
}

.hora-fila:hover {
  background: #0d0d18;
}

.hora-fila.hora-actual {
  border-top: 1px solid #7c3aed;
}
.hora-fila.hora-actual .hora-label {
  color: #a78bfa;
  font-weight: 600;
}

.hora-label {
  width: 48px;
  flex-shrink: 0;
  font-size: 10px;
  color: #2a2a3e;
  padding: 8px 10px 0 0;
  text-align: right;
}

.hora-slot {
  flex: 1;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hora-add-btn {
  display: none;
  font-size: 11px;
  color: #2a2a3e;
  background: transparent;
  border: 1px dashed #1e1e2e;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}

.hora-fila:hover .hora-add-btn {
  display: block;
}
.hora-add-btn:hover {
  color: #a78bfa;
  border-color: #3d2070;
}

.tarea-bloque {
  border-radius: 8px;
  padding: 6px 10px;
  border-left: 3px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.2s;
}

.tarea-bloque.alta {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
}
.tarea-bloque.media {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #f59e0b;
}
.tarea-bloque.baja {
  background: rgba(124, 58, 237, 0.08);
  border-left-color: #7c3aed;
}
.tarea-bloque.completada {
  opacity: 0.3;
}

.tarea-bloque-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tarea-bloque-hora {
  font-size: 9px;
  color: #444458;
}

.tarea-bloque-acciones {
  display: flex;
  gap: 4px;
}

.bloque-check-btn {
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #2a2a3e;
  background: transparent;
  color: #555570;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bloque-check-btn:hover {
  border-color: #7c3aed;
  color: #a78bfa;
}
.bloque-check-btn.checked {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

.bloque-borrar-btn {
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: transparent;
  color: #2a2a3e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bloque-borrar-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.tarea-bloque-nombre {
  font-size: 12px;
  color: #d0d0e0;
  font-weight: 500;
}

.tarea-bloque-nombre.tachado {
  text-decoration: line-through;
  color: #333345;
}

.oculto {
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.oculto {
  display: none;
}

.modal {
  background: #0f0f1a;
  border: 1px solid #2a2a3e;
  border-radius: 16px;
  padding: 1.5rem;
  width: 320px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(124, 58, 237, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.modal-cerrar {
  background: transparent;
  border: none;
  color: #333345;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-cerrar:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.tarea-bloque-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.aviso-select-dia {
  font-size: 9px;
  padding: 1px 4px;
  height: 20px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 4px;
  color: #a78bfa;
  cursor: pointer;
  outline: none;
}
